Oracle 21c Rac On OEL 8.4
Oracle 21c Rac On OEL 8.4
Moto: This document is created on traditional way to Install and configure Oracle Rac 21c without using
Vagrant or Cloud. Don’t worry, I’ll make another documents using Vagrant.
Here I’ll provide all steps only. You just need to follow the process to success.
Step#1: Prepared your VM
H/W requirements: RAM 8GB*2=16GB for two node RAC
OS: OHEL 7.4+ (Here I used 8.4)
Storage: 200 GB Total
Edit the Hostfie
Vi /etc/hosts
# Public
192.168.56.10 rac01.localdomain rac01
192.168.56.20 rac02.localdomain rac02
# Private
192.168.55.10 rac01-priv.localdomain rac01-priv
192.168.55.20 rac02-priv.localdomain rac02-priv
# Virtual
192.168.56.11 rac01-vip.localdomain rac01-vip
192.168.56.21 rac02-vip.localdomain rac02-vip
# SCAN
192.168.56.105 scan.localdomain scan-ip
192.168.56.106 scan.localdomain scan-ip
192.168.56.107 scan.localdomain scan-ip
Disable FIREWALL
[root@rac01 ~]# systemctl stop firewalld
[root@rac01 ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Oracle 21c Cluster Setup & DB Creation using VirtualBox
Create the proper Directory and provide the ownership and permissions
mkdir -p /u01/app/grid
mkdir -p /u01/app/21c/gridhome_1
mkdir -p /u01/app/oraInventory
chown -R grid:oinstall /u01
chown -R grid:oinstall /u01/app/oraInventory
chmod -R 775 /u01/
mkdir -p /u02/app/oracle
mkdir -p /u02/app/oracle/product/21c/dbhome_1
---mkdir -p /u02/app/oracle/oraInventory
chown -R oracle:oinstall /u02
chmod -R 775 /u02/
Modify the limits configuration files for Oracle & Grid users
vi /etc/security/limits.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
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
export LD_LIBRARY_PATH=$GRID_HOME/lib:/lib:/usr/lib
export CLASSPATH=$GRID_HOME/JRE:$GRID_HOME/jlib:$GRID_HOME/rdbms/jlib
mkdir -p /u02/app/oracle/product/21c/dbhome_1
Oracle 21c Cluster Setup & DB Creation using VirtualBox
export ORACLE_HOSTNAME=rac01.localdomain
export ORACLE_UNQNAME=CDBRAC
export ORACLE_BASE=/u02/app/oracle
export DB_HOME=$ORACLE_BASE/product/21c/dbhome_1
export ORACLE_HOME=$DB_HOME
export ORACLE_SID=cdb21c1
export ORACLE_TERM=xterm
export BASE_PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$BASE_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
# After Successful cloning, you just need to do change few things before starting first node.
--Change Hostname---
nmcli general hostname
nmcli general hostname rac02.localdomain
nmcli general hostname
service system-hostnamed restart
"D:\VirtualBox\VBoxManage" storageattach OELHA-01 --storagectl "SATA" --port 1 --device 0 --type hdd --medium asm1.vdi --mtype shareable
"D:\VirtualBox\VBoxManage" storageattach OELHA-01 --storagectl "SATA" --port 2 --device 0 --type hdd --medium asm2.vdi --mtype shareable
"D:\VirtualBox\VBoxManage" storageattach OELHA-01 --storagectl "SATA" --port 3 --device 0 --type hdd --medium asm3.vdi --mtype shareable
"D:\VirtualBox\VBoxManage" storageattach OELHA-01 --storagectl "SATA" --port 4 --device 0 --type hdd --medium asm4.vdi --mtype shareable
"D:\VirtualBox\VBoxManage" storageattach OELHA-02 --storagectl "SATA" --port 1 --device 0 --type hdd --medium asm1.vdi --mtype shareable
"D:\VirtualBox\VBoxManage" storageattach OELHA-02 --storagectl "SATA" --port 2 --device 0 --type hdd --medium asm2.vdi --mtype shareable
Oracle 21c Cluster Setup & DB Creation using VirtualBox
fdisk /dev/sdb
fdisk /dev/sdc
fdisk /dev/sdd
fdisk /dev/sde
fdisk /dev/sdf
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
/usr/sbin/oracleasm configure -i
/usr/sbin/oracleasm init
/usr/sbin/oracleasm scandisks
/usr/sbin/oracleasm listdisks
# Now check the network connectivity and if you succeed in network connectivity then you can proceed
with the rest:
GRID Installation:
To make password less SSH Connectivity you can do the following steps:
Oracle 21c Cluster Setup & DB Creation using VirtualBox
/u01/app/21c/gridhome_1/deinstall
./sshUserSetup.sh -user grid -hosts "rac01 rac02" -noPromptPassphrase -confirm -advanced
---For ROOT
cp /u01/app/21c/gridhome_1/deinstall/sshUserSetup.sh .