Tutorial https://zhuanlan.zhihu.com/p/571737575
CentOS7 installation oracle19c tutorial
https://zhuanlan.zhihu.com/p/571737575
One: Preparatory work
1 Create an oracle user, and use this user instead of root to operate the database in the future.
[root@rhel ~]# vi /etc/hosts
[root@rhel ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.7 (Maipo)
[root@rhel ~]# /usr/sbin/groupadd -g 54321 oinstall
[root@rhel ~]# /usr/sbin/groupadd -g 54322 dba
[root@rhel ~]# /usr/sbin/groupadd -g 54323 oper
[root@rhel ~]# /usr/sbin/useradd -u 54321 -g oinstall -G dba,oper oracle
2 Modify user password:
[root@rhel ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfull
3 Turn off the firewall and selinux
[root@rhel ~]# systemctl stop firewalld.service
[root@rhel ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@rhel ~]#
4 Modify SELINUX=disabled
[root@rhel ~]# vi /etc/selinux/config
[root@rhel ~]# more /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are pro
tected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
4 Create a working directory, and then grant corresponding permissions.
[root@rhel ~]# mkdir -p /u01/app/oracle/product/19.2.0/db_1
[root@rhel ~]#
[root@rhel ~]# chown -R oracle:oinstall /u01/
[root@rhel ~]#
[root@rhel ~]# chmod -R 775 /u01/
5 Configure Oracle environment variables
first
su - oracle
[oracle@rhel ~]$ vi .bash_profile
[oracle@rhel ~]$ more .bash_profile
[oracle@rhel ~]$ more .bash_profile
Modify oracle environment variables
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
ORACLE_SID=sanshi;export ORACLE_SID
ORACLE_UNQNAME=sanshi;export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/19.2.0/db_1; export ORACLE_HOME
NLS_DATE_FORMAT="YYYY:MM:DDHH24:MI:SS"; export NLS_DATE_FORMAT
NLS_LANG=american_america.ZHS16GBK; export NLS_LANG
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11
PATH=.:${
JAVA_HOME}/bin:${
PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin
PATH=${
PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${
LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${
LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE
CLASSPATH=${
CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${
CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${
CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH
THREADS_FLAG=native; export THREADS_FLAG
export TEMP=/tmp
export TMPDIR=/tmp
umask 022
6 Modify kernel parameters
[root@rhel /]# vi /etc/sysctl.conf
[root@rhel /]# more /etc/sysctl.conf
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
[root@rhel /]#
take effect
[root@rhel /]# sysctl -p
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
or
[root@rhel /]# sysctl --system
* Applying /usr/lib/sysctl.d/00-system.conf ...
* Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ...
kernel.yama.ptrace_scope = 0
* Applying /usr/lib/sysctl.d/50-default.conf ...
kernel.sysrq = 16
kernel.core_uses_pid = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /usr/lib/sysctl.d/60-libvirtd.conf ...
fs.aio-max-nr = 1048576
* Applying /etc/sysctl.d/99-sysctl.conf ...
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
- Modify environment variables
[root@rhel db]# vi /etc/profile
[root@rhel db]# more /etc/profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.
pathmunge () {
case ":${PATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}
if [ -x /usr/bin/id ]; then
if [ -z "$EUID" ]; then
# ksh workaround
EUID=`/usr/bin/id -u`
UID=`/usr/bin/id -ru`
fi
USER="`/usr/bin/id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /usr/sbin
pathmunge /usr/local/sbin
else
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
fi
HOSTNAME=`/usr/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
export HISTCONTROL=ignoreboth
else
export HISTCONTROL=ignoredups
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
umask 002
else
umask 022
fi
#oracle
export ORACLE_HOME=/u01/app/oracle/product/19.3.0/db_1
export ORACLE_SID=orcl
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; do
if [ -r "$i" ]; then
if [ "${-#*i}" != "$-" ]; then
. "$i"
else
. "$i" >/dev/null
fi
fi
done
unset i
- Modify user login authentication
vim /etc/pam.d/login
###############Add the following content
session required /lib64/security/pam_limits.so
session required pam_limits.so
[root@rhel db]# vim /etc/pam.d/login
[root@rhel db]# more /etc/pa
pam.d/ papersize passwd passwd-
[root@rhel db]# more /etc/pam.d/login
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the
user context
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
session include postlogin
-session optional pam_ck_connector.so
session required pam_limits.so
session required /lib/security/pam_limits.so
[root@rhel db]#
9yum configuration
Create a directory and mount the CD to the directory
[root@rhel ~]# mkdir -p /mnt/cdrom
[root@rhel ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs tmpfs 3.9G 13M 3.9G 1% /run
tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/rhel-root xfs 29G 4.7G 24G 17% /
/dev/sda1 xfs 1.9G 169M 1.8G 9% /boot
/dev/mapper/rhel-u01 xfs 20G 33M 20G 1% /u01
tmpfs tmpfs 797M 12K 797M 1% /run/user/42
tmpfs tmpfs 797M 0 797M 0% /run/user/0
[root@rhel ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs tmpfs 3.9G 13M 3.9G 1% /run
tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/rhel-root xfs 29G 4.7G 24G 17% /
/dev/sda1 xfs 1.9G 169M 1.8G 9% /boot
/dev/mapper/rhel-u01 xfs 20G 33M 20G 1% /u01
tmpfs tmpfs 797M 12K 797M 1% /run/user/42
tmpfs tmpfs 797M 44K 797M 1% /run/user/0
/dev/sr0 iso9660 4.2G 4.2G 0 100% /run/media/root/RHEL-7.7 Server.x86_64
[root@rhel ~]# mount /dev/sr0 /mnt/cdrom/
mount: /dev/sr0 is write-protected, mounting read-only
[root@rhel yum.repos.d]# cat localyum.repo
[media]
name=media
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
[root@rhel yum.repos.d]# yum clean all
[root@rhel yum.repos.d]# yum repolist all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
repo id repo name status
media media enabled: 5,229
repolist: 5,229
- Modify the authentication module
[root@rhel app]# vim /etc/security/limits.conf
[root@rhel app]# more /etc/security/limits.conf
# /etc/security/limits.conf
#
#ftp hard nproc 0
#@student - maxlogins 4
###################添加如下内容
oracle soft nproc 131072
oracle hard nproc 131072
oracle soft nofile 131072
oracle hard nofile 131072
oracle soft core unlimited
oracle hard core unlimited
oracle soft memlock 50000000
oracle hard memlock 50000000
# End of file
[root@rhel app]#
11 Start to install the dependency package below
[root@rhel yum.repos.d]# yum install bc \
> gcc \
> gcc-c++ \
> binutils \
> compat-libcap1 \
> compat-libstdc++ \
> dtrace-modules \
> dtrace-modules-headers \
> dtrace-modules-provider-headers \
> dtrace-utils \
> elfutils-libelf \
> elfutils-libelf-devel \
> fontconfig-devel \
> glibc \
> glibc-devel \
> ksh \
> libaio \
> libaio-devel \
> libdtrace-ctf-devel \
> libX11 \
> libXau \
> libXi \
> libXtst \
> libXrender \
> libXrender-devel \
> libgcc \
> librdmacm-devel \
> libstdc++ \
> libstdc++-devel \
> libxcb \
> make \
> smartmontools \
> sysstat
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package bc-1.06.95-13.el7.x86_64 already installed and latest version
Package gcc-4.8.5-39.el7.x86_64 already installed and latest version
Package gcc-c++-4.8.5-39.el7.x86_64 already installed and latest version
Package binutils-2.27-41.base.el7.x86_64 already installed and latest version
Package compat-libcap1-1.10-7.el7.x86_64 already installed and latest version
No package compat-libstdc++ available.
No package dtrace-modules available.
No package dtrace-modules-headers available.
No package dtrace-modules-provider-headers available.
No package dtrace-utils available.
Package elfutils-libelf-0.176-2.el7.x86_64 already installed and latest version
Package glibc-2.17-292.el7.x86_64 already installed and latest version
Package glibc-devel-2.17-292.el7.x86_64 already installed and latest version
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
No package libdtrace-ctf-devel available.
Package libX11-1.6.7-2.el7.x86_64 already installed and latest version
Package libXau-1.0.8-2.1.el7.x86_64 already installed and latest version
Package libXi-1.7.9-1.el7.x86_64 already installed and latest version
Package libXtst-1.2.3-1.el7.x86_64 already installed and latest version
Package libXrender-0.9.10-1.el7.x86_64 already installed and latest version
Package libgcc-4.8.5-39.el7.x86_64 already installed and latest version
Package libstdc++-4.8.5-39.el7.x86_64 already installed and latest version
Package libstdc++-devel-4.8.5-39.el7.x86_64 already installed and latest version
Package libxcb-1.13-1.el7.x86_64 already installed and latest version
Package 1:make-3.82-24.el7.x86_64 already installed and latest version
Package 1:smartmontools-7.0-1.el7.x86_64 already installed and latest version
Package sysstat-10.1.5-18.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package elfutils-libelf-devel.x86_64 0:0.176-2.el7 will be installed
--> Processing Dependency: pkgconfig(zlib) for package: elfutils-libelf-devel-0.176-2.el7.x86_64
---> Package fontconfig-devel.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: pkgconfig(freetype2) >= 20.0.14 for package: fontconfig-devel-2.13.0-4.3.el7.x86_64
--> Processing Dependency: freetype-devel >= 2.8-7 for package: fontconfig-devel-2.13.0-4.3.el7.x86_64
--> Processing Dependency: pkgconfig(uuid) for package: fontconfig-devel-2.13.0-4.3.el7.x86_64
--> Processing Dependency: pkgconfig(expat) for package: fontconfig-devel-2.13.0-4.3.el7.x86_64
---> Package ksh.x86_64 0:20120801-139.el7 will be installed
---> Package libXrender-devel.x86_64 0:0.9.10-1.el7 will be installed
---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed
---> Package rdma-core-devel.x86_64 0:22.1-3.el7 will be installed
--> Processing Dependency: libibumad = 22.1-3.el7 for package: rdma-core-devel-22.1-3.el7.x86_64
--> Processing Dependency: ibacm = 22.1-3.el7 for package: rdma-core-devel-22.1-3.el7.x86_64
--> Processing Dependency: libibumad.so.3()(64bit) for package: rdma-core-devel-22.1-3.el7.x86_64
--> Running transaction check
---> Package expat-devel.x86_64 0:2.1.0-10.el7_3 will be installed
---> Package freetype-devel.x86_64 0:2.8-14.el7 will be installed
--> Processing Dependency: pkgconfig(libpng) for package: freetype-devel-2.8-14.el7.x86_64
---> Package ibacm.x86_64 0:22.1-3.el7 will be installed
---> Package libibumad.x86_64 0:22.1-3.el7 will be installed
---> Package libuuid-devel.x86_64 0:2.23.2-61.el7 will be installed
---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
--> Running transaction check
---> Package libpng-devel.x86_64 2:1.5.13-7.el7_2 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
elfutils-libelf-devel x86_64 0.176-2.el7 media 39 k
fontconfig-devel x86_64 2.13.0-4.3.el7 media 138 k
ksh x86_64 20120801-139.el7 media 885 k
libXrender-devel x86_64 0.9.10-1.el7 media 17 k
libaio-devel x86_64 0.3.109-13.el7 media 13 k
rdma-core-devel x86_64 22.1-3.el7 media 253 k
Installing for dependencies:
expat-devel x86_64 2.1.0-10.el7_3 media 57 k
freetype-devel x86_64 2.8-14.el7 media 447 k
ibacm x86_64 22.1-3.el7 media 82 k
libibumad x86_64 22.1-3.el7 media 24 k
libpng-devel x86_64 2:1.5.13-7.el7_2 media 122 k
libuuid-devel x86_64 2.23.2-61.el7 media 92 k
zlib-devel x86_64 1.2.7-18.el7 media 50 k
Transaction Summary
================================================================================
Install 6 Packages (+7 Dependent packages)
Total download size: 2.2 M
Installed size: 7.3 M
Is this ok [y/d/N]: y
Downloading packages:
--------------------------------------------------------------------------------
Total 13 MB/s | 2.2 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zlib-devel-1.2.7-18.el7.x86_64 1/13
Installing : libibumad-22.1-3.el7.x86_64 2/13
Installing : ibacm-22.1-3.el7.x86_64 3/13
Installing : 2:libpng-devel-1.5.13-7.el7_2.x86_64 4/13
Installing : freetype-devel-2.8-14.el7.x86_64 5/13
Installing : expat-devel-2.1.0-10.el7_3.x86_64 6/13
Installing : libuuid-devel-2.23.2-61.el7.x86_64 7/13
Installing : fontconfig-devel-2.13.0-4.3.el7.x86_64 8/13
Installing : rdma-core-devel-22.1-3.el7.x86_64 9/13
Installing : elfutils-libelf-devel-0.176-2.el7.x86_64 10/13
Installing : libaio-devel-0.3.109-13.el7.x86_64 11/13
Installing : ksh-20120801-139.el7.x86_64 12/13
Installing : libXrender-devel-0.9.10-1.el7.x86_64 13/13
Verifying : libXrender-devel-0.9.10-1.el7.x86_64 1/13
Verifying : rdma-core-devel-22.1-3.el7.x86_64 2/13
Verifying : fontconfig-devel-2.13.0-4.3.el7.x86_64 3/13
Verifying : 2:libpng-devel-1.5.13-7.el7_2.x86_64 4/13
Verifying : ksh-20120801-139.el7.x86_64 5/13
Verifying : zlib-devel-1.2.7-18.el7.x86_64 6/13
Verifying : libuuid-devel-2.23.2-61.el7.x86_64 7/13
Verifying : elfutils-libelf-devel-0.176-2.el7.x86_64 8/13
Verifying : libaio-devel-0.3.109-13.el7.x86_64 9/13
Verifying : libibumad-22.1-3.el7.x86_64 10/13
Verifying : ibacm-22.1-3.el7.x86_64 11/13
Verifying : freetype-devel-2.8-14.el7.x86_64 12/13
Verifying : expat-devel-2.1.0-10.el7_3.x86_64 13/13
media/productid | 1.6 kB 00:00
Installed:
elfutils-libelf-devel.x86_64 0:0.176-2.el7
fontconfig-devel.x86_64 0:2.13.0-4.3.el7
ksh.x86_64 0:20120801-139.el7
libXrender-devel.x86_64 0:0.9.10-1.el7
libaio-devel.x86_64 0:0.3.109-13.el7
rdma-core-devel.x86_64 0:22.1-3.el7
Dependency Installed:
expat-devel.x86_64 0:2.1.0-10.el7_3 freetype-devel.x86_64 0:2.8-14.el7
ibacm.x86_64 0:22.1-3.el7 libibumad.x86_64 0:22.1-3.el7
libpng-devel.x86_64 2:1.5.13-7.el7_2 libuuid-devel.x86_64 0:2.23.2-61.el7
zlib-devel.x86_64 0:1.2.7-18.el7
Complete!
install kmod
[root@rhel yum.repos.d]# yum install -y kmod*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package kmod-20-25.el7.x86_64 already installed and latest version
Package kmod-kvdo-6.1.2.41-5.el7.x86_64 already installed and latest version
Package kmod-libs-20-25.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package kmod-oracleasm.x86_64 0:2.0.8-26.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
kmod-oracleasm x86_64 2.0.8-26.el7 media 38 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 38 k
Installed size: 119 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kmod-oracleasm-2.0.8-26.el7.x86_64 1/1
Verifying : kmod-oracleasm-2.0.8-26.el7.x86_64 1/1
Installed:
kmod-oracleasm.x86_64 0:2.0.8-26.el7
Complete!
install ksh
[root@rhel yum.repos.d]# yum install -y ksh*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package ksh-20120801-139.el7.x86_64 already installed and latest version
Nothing to do
[root@rhel yum.repos.d
[root@rhel yum.repos.d]# yum install -y ksh*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package ksh-20120801-139.el7.x86_64 already installed and latest version
Nothing to do
Install libaio
[root@rhel yum.repos.d]# yum install -y libaio*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
Package libaio-devel-0.3.109-13.el7.x86_64 already installed and latest version
Nothing to do
[root@rhel yum.repos.d]# yum install -y compat*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package compat-db-headers-4.7.25-28.el7.noarch already installed and latest version
Package compat-cheese314-3.14.2-1.el7.x86_64 already installed and latest version
Package compat-libtiff3-3.9.4-12.el7.x86_64 already installed and latest version
Package 1:compat-glibc-headers-2.12-4.el7.x86_64 already installed and latest version
Package compat-db47-4.7.25-28.el7.x86_64 already installed and latest version
Package compat-libical1-1.0.1-2.el7.x86_64 already installed and latest version
Package compat-exiv2-026-0.26-1.el7.x86_64 already installed and latest version
Package 1:compat-glibc-2.12-4.el7.x86_64 already installed and latest version
Package compat-libgfortran-41-4.1.2-45.el7.x86_64 already installed and latest version
Package 1:compat-openldap-2.3.43-5.el7.x86_64 already installed and latest version
Package compat-libf2c-34-3.4.6-32.el7.x86_64 already installed and latest version
Package compat-exiv2-023-0.23-2.el7.x86_64 already installed and latest version
Package compat-libcap1-1.10-7.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package compat-dapl.x86_64 1:1.2.19-4.el7 will be installed
---> Package compat-gcc-44.x86_64 0:4.4.7-8.el7 will be installed
---> Package compat-gcc-44-c++.x86_64 0:4.4.7-8.el7 will be installed
---> Package compat-glade315.x86_64 0:3.15.0-1.el7 will be installed
---> Package compat-gnome-desktop314.x86_64 0:3.14.2-1.el7 will be installed
---> Package compat-grilo02.x86_64 0:0.2.12-1.el7 will be installed
---> Package compat-libcogl-pango12.x86_64 0:1.14.0-3.el7 will be installed
---> Package compat-libcogl12.x86_64 0:1.14.0-3.el7 will be installed
---> Package compat-libcolord1.x86_64 0:1.0.4-1.el7 will be installed
---> Package compat-libgdata13.x86_64 0:0.13.3-1.el7 will be installed
---> Package compat-libgnome-bluetooth11.x86_64 1:3.8.2.1-2.el7 will be installed
---> Package compat-libgnome-desktop3-7.x86_64 0:3.8.4-2.el7 will be installed
---> Package compat-libgweather3.x86_64 0:3.8.2-1.el7 will be installed
---> Package compat-libmediaart0.x86_64 0:0.7.0-1.el7 will be installed
---> Package compat-libpackagekit-glib2-16.x86_64 0:0.8.9-1.el7 will be installed
---> Package compat-libupower-glib1.x86_64 0:0.9.20-1.el7 will be installed
---> Package compat-libxcb.x86_64 0:1.9-1.el7 will be installed
---> Package compat-openmpi16.x86_64 0:1.6.4-10.7.2.el7 will be installed
--> Processing Dependency: environment-modules for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
--> Processing Dependency: libpsm_infinipath.so.1()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
--> Processing Dependency: libosmcomp.so.4()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
--> Processing Dependency: libhwloc.so.5()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
--> Processing Dependency: libesmtp.so.6()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
---> Package compat-opensm-libs.x86_64 0:3.3.15-3.el7 will be installed
---> Package compat-poppler022.x86_64 0:0.22.5-4.el7 will be installed
---> Package compat-poppler022-glib.x86_64 0:0.22.5-4.el7 will be installed
---> Package compat-poppler022-qt.x86_64 0:0.22.5-4.el7 will be installed
--> Running transaction check
---> Package environment-modules.x86_64 0:3.2.10-10.el7 will be installed
--> Processing Dependency: libtcl8.5.so()(64bit) for package: environment-modules-3.2.10-10.el7.x86_64
---> Package hwloc-libs.x86_64 0:1.11.8-4.el7 will be installed
---> Package infinipath-psm.x86_64 0:3.3-26_g604758e_open.2.el7 will be installed
---> Package libesmtp.x86_64 0:1.0.6-7.el7 will be installed
---> Package opensm-libs.x86_64 0:3.3.21-2.el7 will be installed
--> Running transaction check
---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
compat-dapl x86_64 1:1.2.19-4.el7 media 110 k
compat-gcc-44 x86_64 4.4.7-8.el7 media 10 M
compat-gcc-44-c++ x86_64 4.4.7-8.el7 media 6.3 M
compat-glade315 x86_64 3.15.0-1.el7 media 243 k
compat-gnome-desktop314 x86_64 3.14.2-1.el7 media 108 k
compat-grilo02 x86_64 0.2.12-1.el7 media 102 k
compat-libcogl-pango12 x86_64 1.14.0-3.el7 media 27 k
compat-libcogl12 x86_64 1.14.0-3.el7 media 282 k
compat-libcolord1 x86_64 1.0.4-1.el7 media 96 k
compat-libgdata13 x86_64 0.13.3-1.el7 media 217 k
compat-libgnome-bluetooth11 x86_64 1:3.8.2.1-2.el7 media 63 k
compat-libgnome-desktop3-7 x86_64 3.8.4-2.el7 media 88 k
compat-libgweather3 x86_64 3.8.2-1.el7 media 57 k
compat-libmediaart0 x86_64 0.7.0-1.el7 media 33 k
compat-libpackagekit-glib2-16 x86_64 0.8.9-1.el7 media 112 k
compat-libupower-glib1 x86_64 0.9.20-1.el7 media 33 k
compat-libxcb x86_64 1.9-1.el7 media 44 k
compat-openmpi16 x86_64 1.6.4-10.7.2.el7 media 2.5 M
compat-opensm-libs x86_64 3.3.15-3.el7 media 39 k
compat-poppler022 x86_64 0.22.5-4.el7 media 722 k
compat-poppler022-glib x86_64 0.22.5-4.el7 media 87 k
compat-poppler022-qt x86_64 0.22.5-4.el7 media 150 k
Installing for dependencies:
environment-modules x86_64 3.2.10-10.el7 media 107 k
hwloc-libs x86_64 1.11.8-4.el7 media 1.6 M
infinipath-psm x86_64 3.3-26_g604758e_open.2.el7 media 186 k
libesmtp x86_64 1.0.6-7.el7 media 63 k
opensm-libs x86_64 3.3.21-2.el7 media 68 k
tcl x86_64 1:8.5.13-8.el7 media 1.9 M
Transaction Summary
================================================================================
Install 22 Packages (+6 Dependent packages)
Total download size: 25 M
Installed size: 69 M
Downloading packages:
--------------------------------------------------------------------------------
Total 104 MB/s | 25 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : compat-poppler022-0.22.5-4.el7.x86_64 1/28
Installing : hwloc-libs-1.11.8-4.el7.x86_64 2/28
Installing : infinipath-psm-3.3-26_g604758e_open.2.el7.x86_64 3/28
Installing : compat-libcogl12-1.14.0-3.el7.x86_64 4/28
Installing : libesmtp-1.0.6-7.el7.x86_64 5/28
Installing : opensm-libs-3.3.21-2.el7.x86_64 6/28
Installing : 1:tcl-8.5.13-8.el7.x86_64 7/28
Installing : environment-modules-3.2.10-10.el7.x86_64 8/28
Installing : compat-openmpi16-1.6.4-10.7.2.el7.x86_64 9/28
Installing : compat-libcogl-pango12-1.14.0-3.el7.x86_64 10/28
Installing : compat-poppler022-glib-0.22.5-4.el7.x86_64 11/28
Installing : compat-poppler022-qt-0.22.5-4.el7.x86_64 12/28
Installing : 1:compat-libgnome-bluetooth11-3.8.2.1-2.el7.x86_64 13/28
Installing : 1:compat-dapl-1.2.19-4.el7.x86_64 14/28
Installing : compat-libmediaart0-0.7.0-1.el7.x86_64 15/28
Installing : compat-libgweather3-3.8.2-1.el7.x86_64 16/28
Installing : compat-libupower-glib1-0.9.20-1.el7.x86_64 17/28
Installing : compat-libxcb-1.9-1.el7.x86_64 18/28
Installing : compat-grilo02-0.2.12-1.el7.x86_64 19/28
Installing : compat-gnome-desktop314-3.14.2-1.el7.x86_64 20/28
Installing : compat-glade315-3.15.0-1.el7.x86_64 21/28
Installing : compat-libpackagekit-glib2-16-0.8.9-1.el7.x86_64 22/28
Installing : compat-libgnome-desktop3-7-3.8.4-2.el7.x86_64 23/28
Installing : compat-libcolord1-1.0.4-1.el7.x86_64 24/28
Installing : compat-libgdata13-0.13.3-1.el7.x86_64 25/28
Installing : compat-opensm-libs-3.3.15-3.el7.x86_64 26/28
Installing : compat-gcc-44-4.4.7-8.el7.x86_64 27/28
Installing : compat-gcc-44-c++-4.4.7-8.el7.x86_64 28/28
Verifying : 1:tcl-8.5.13-8.el7.x86_64 1/28
Verifying : compat-gcc-44-c++-4.4.7-8.el7.x86_64 2/28
Verifying : compat-opensm-libs-3.3.15-3.el7.x86_64 3/28
Verifying : compat-libgdata13-0.13.3-1.el7.x86_64 4/28
Verifying : opensm-libs-3.3.21-2.el7.x86_64 5/28
Verifying : compat-gcc-44-4.4.7-8.el7.x86_64 6/28
Verifying : compat-libcolord1-1.0.4-1.el7.x86_64 7/28
Verifying : libesmtp-1.0.6-7.el7.x86_64 8/28
Verifying : compat-libgnome-desktop3-7-3.8.4-2.el7.x86_64 9/28
Verifying : compat-libpackagekit-glib2-16-0.8.9-1.el7.x86_64 10/28
Verifying : compat-glade315-3.15.0-1.el7.x86_64 11/28
Verifying : compat-libcogl-pango12-1.14.0-3.el7.x86_64 12/28
Verifying : compat-libcogl12-1.14.0-3.el7.x86_64 13/28
Verifying : compat-gnome-desktop314-3.14.2-1.el7.x86_64 14/28
Verifying : compat-grilo02-0.2.12-1.el7.x86_64 15/28
Verifying : compat-openmpi16-1.6.4-10.7.2.el7.x86_64 16/28
Verifying : compat-libxcb-1.9-1.el7.x86_64 17/28
Verifying : compat-libupower-glib1-0.9.20-1.el7.x86_64 18/28
Verifying : compat-libgweather3-3.8.2-1.el7.x86_64 19/28
Verifying : infinipath-psm-3.3-26_g604758e_open.2.el7.x86_64 20/28
Verifying : compat-poppler022-0.22.5-4.el7.x86_64 21/28
Verifying : environment-modules-3.2.10-10.el7.x86_64 22/28
Verifying : compat-poppler022-glib-0.22.5-4.el7.x86_64 23/28
Verifying : compat-libmediaart0-0.7.0-1.el7.x86_64 24/28
Verifying : hwloc-libs-1.11.8-4.el7.x86_64 25/28
Verifying : 1:compat-dapl-1.2.19-4.el7.x86_64 26/28
Verifying : 1:compat-libgnome-bluetooth11-3.8.2.1-2.el7.x86_64 27/28
Verifying : compat-poppler022-qt-0.22.5-4.el7.x86_64 28/28
Installed:
compat-dapl.x86_64 1:1.2.19-4.el7
compat-gcc-44.x86_64 0:4.4.7-8.el7
compat-gcc-44-c++.x86_64 0:4.4.7-8.el7
compat-glade315.x86_64 0:3.15.0-1.el7
compat-gnome-desktop314.x86_64 0:3.14.2-1.el7
compat-grilo02.x86_64 0:0.2.12-1.el7
compat-libcogl-pango12.x86_64 0:1.14.0-3.el7
compat-libcogl12.x86_64 0:1.14.0-3.el7
compat-libcolord1.x86_64 0:1.0.4-1.el7
compat-libgdata13.x86_64 0:0.13.3-1.el7
compat-libgnome-bluetooth11.x86_64 1:3.8.2.1-2.el7
compat-libgnome-desktop3-7.x86_64 0:3.8.4-2.el7
compat-libgweather3.x86_64 0:3.8.2-1.el7
compat-libmediaart0.x86_64 0:0.7.0-1.el7
compat-libpackagekit-glib2-16.x86_64 0:0.8.9-1.el7
compat-libupower-glib1.x86_64 0:0.9.20-1.el7
compat-libxcb.x86_64 0:1.9-1.el7
compat-openmpi16.x86_64 0:1.6.4-10.7.2.el7
compat-opensm-libs.x86_64 0:3.3.15-3.el7
compat-poppler022.x86_64 0:0.22.5-4.el7
compat-poppler022-glib.x86_64 0:0.22.5-4.el7
compat-poppler022-qt.x86_64 0:0.22.5-4.el7
Dependency Installed:
environment-modules.x86_64 0:3.2.10-10.el7
hwloc-libs.x86_64 0:1.11.8-4.el7
infinipath-psm.x86_64 0:3.3-26_g604758e_open.2.el7
libesmtp.x86_64 0:1.0.6-7.el7
opensm-libs.x86_64 0:3.3.21-2.el7
tcl.x86_64 1:8.5.13-8.el7
Complete
Install compat-libstdc++ error
[root@rhel yum.repos.d]# yum compat-libstdc++ install -y
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No such command: compat-libstdc++. Please use /usr/bin/yum --help
[root@rhel yum.repos.d]# yum install -y compat-libstdc++
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No package compat-libstdc++ available.
Error: Nothing to do
[root@rhel yum.repos.d]#
Note: Since starting from 7, the compat-libstdc++ package is no longer included in the system image, you need to download and install it yourself.
Of course, if you don't use the Oracle Text function, you don't need to install this package. But it is recommended to install, because you cannot guarantee that you will not use it in the future.
手动上传compat-libstdc+±33-3.2.3安装
### 这个安装包,貌似直接装不了,可以根据下方链接进行下载,通过 rpm -ivh 安装。链接:https://pan.baidu.com/s/17hu6ahLyJijaH_ookUQgWA?pwd=pmb9
提取码:pmb9
rpm install
[root@rhel db]# rpm -ivh compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
warning: compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:compat-libstdc++-33-3.2.3-72.el7 ################################# [100%]
[root@rhel db]#
Two: Install oracle 19c software
1 Upload the oracle19c installation package to the server
Last login: Mon Jul 3 15:05:31 2023
[root@rhel ~]# cd /home/db/
[root@rhel db]# unzip LINUX.X64_193000_db_home.zip
Core problem
Starting from 12C, the oracle installation package must be placed in the oracle_home directory.
Move the installation package to /u01/app/oracle/product/19.2.0/db_1
2Switch the oracle user
[root@rhel app]# su - oracle
Last login: Mon Jul 3 16:46:37 CST 2023 on pts/0
[oracle@rhel ~]$
Switch to the ORACLE_HOME path to view the installation package.
[oracle@rhel ~]$ cd $ORACLE_HOME
[oracle@rhel ~]$ chown -R oracle:oinstall $ORACLE_HOME
[oracle@rhel ~]$ chown -R +x $ORACLE_HOME
chown: invalid user: ‘+x’
[oracle@rhel ~]$ chmod -R +x $ORACLE_HOME
[oracle@rhel ~]$
[oracle@rhel db_1]$ ls
addnode deinstall javavm OPatch R sqlj
apex demo jdbc opmn racg sqlpatch
assistants diagnostics jdk oracore rdbms sqlplus
bin dmu jlib ord relnotes srvm
clone drdaas ldap ords root.sh suptools
crs dv lib oss root.sh.old ucp
css env.ora md oui root.sh.old.1 usm
ctx has mgw owm runInstaller utl
cv hs network perl schagent.conf wwg
data install nls plsql sdk xdk
dbjava instantclient odbc precomp slax
dbs inventory olap QOpatch sqldeveloper
3 Configure the graphical interface
Because it is a graphical installation, we need to configure the graphical interface in advance, otherwise the installation window will not appear. I installed oracle with the vmware virtual machine. If you want to call up the graphical interface, you must install Xmanager on the physical machine and turn on Xmanager passive.
Switch to root and install the xorg-x11-apps* package
[root@rhel db]#
[root@rhel db]# yum install xorg-x11-apps*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/cdrom/repodata/repomd.xml"
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.7-7.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
xorg-x11-apps x86_64 7.7-7.el7 media 307 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 307 k
Installed size: 772 k
Is this ok [y/d/N]: y
Downloading packages:
Error downloading packages:
xorg-x11-apps-7.7-7.el7.x86_64: [Errno 256] No more mirrors to try.
[root@rhel db]#
Switch to oracle, configure the DISPLAY variable
[oracle@rhel db_1]$ export DISPLAY=192.168.182.1:0.0
[oracle@rhel db_1]$ echo $DISPLAY
192.168.182.1:0.0
[oracle@rhel db_1]$
- Execute runInstaller
[oracle@rhel db_1]$
[oracle@rhel db_1]$ ./runInstaller
Launching Oracle Database Setup Wizard...