Download 21.3 C from
https://www.oracle.com/database/technologies/oracle21c-linux-downloads.html#license-lightbox
set corect hostname –
hostnamectl hostname dbs
add record in /etc/hosts – local ip to dns name.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.3 dbs
disable selinux -> restart
kernel parameters sysctl and apply .
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
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
set limits in /etc/security/limits.d/oracle.conf
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32868
oracle hard memlock 134217728
oracle soft memlock 134217728
oracle soft data unlimited
oracle hard data unlimited
Install and remove packages
yum remove firewalld *firmware*
yum install bc bind-utils elfutils-libelf glibc glibc-devel ksh libaio libXrender libX11 libXau libXi libXtst libgcc libnsl libstdc++ libxcb libibverbs make policycoreutils policycoreutils-python-utils smartmontools sysstat unixODBC libnsl2 libnsl2.i686 libxcrypt-compat xauth unzip wget telnet vim
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/35/Everything/x86_64/os/Packages/c/compat-libpthread-nonshared-2.34-7.fc35.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/ftp.centos.org/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-4.el8.x86_64.rpm
yum local install compat-openssl10-1.0.2o-4.el8.x86_64.rpm compat-libpthread-nonshared-2.34-7.fc35.x86_64.rpm
Create groups; set pass
groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
useradd -u 54321 -g oinstall -G dba,oper oracle
passwd oracle
Create oracle dir sctructure
mkdir -p /opt/u01/app/oracle/product/21.0.0/dbhome_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
mkdir -p /home/oracle/scripts
cat > /home/oracle/scripts/setEnv.sh <<EOF
# Oracle Settings
export TMP=/tmp
export TMPDIR=\$TMP
export ORACLE_HOSTNAME=dbs
export ORACLE_UNQNAME=cdb1
export ORACLE_BASE=/opt/u01/app/oracle
export ORACLE_HOME=\$ORACLE_BASE/product/21.0.0/dbhome_1
export ORA_INVENTORY=/opt/u01/app/oraInvenotry
export ORACLE_SID=cdb1
export PDB_NAME=pdb1
#HELP - oracle_hostname = machine hostname
#HELP - oracle_sid = oracle_uniqname !!
export CV_ASSUME_DISTID=OEL7.8
export PATH=/usr/sbin:/usr/local/bin:\$PATH
export PATH=\$ORACLE_HOME/bin:\$PATH
export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlib
EOF
echo “. /home/oracle/scripts/setEnv.sh” >> /home/oracle/.bash_profile
add
alias ohome="cd $ORACLE_HOME"
in
/home/oracle/.bash_profile
sudo su – oracle
unzip LINUX.X64_213000_db_home.zip -d /opt/u01/app/oracle/product/21.0.0/dbhome_1/
cd ohome
cd /lib/stubs
mv libc.so libc.so.hide
mv libc.so.6 libc.so.6.hide
rm /opt/u01/app/oracle/product/21.0.0/dbhome_1/lib/libjavavm.a
cp /opt/u01/app/oracle/product/21.0.0/dbhome_1/javavm/jdk/jdk8/lib/libjavavm.a /opt/u01/app/oracle/product/21.0.0/dbhome_1/lib/
Use mobaXterm to start graphical installation as user oracle
cd ohome
./runInstaller
date : 15.12.22