Software Requirements.
1. Download Latest Oracle VM Virtual box for your suitable host OS from https://www.virtualbox.org/wiki/Downloads
2. Download Oracle Linux 6.7 (64-bit) from Oracle edelivery site. https://www.edelivery.oracle.com
3. Download Oracle 19c GRID and RDBMS software from oracle edelivery.

System Readiness:
It is assumed that the required 2 Database Servers are installed
and configured over Oracle VM Virtualbox environment using the above software. Including Network and Shared Storage Provisioning.
Now we will see how we can configure the Oracle 19c two nodes RAC setup.
Execute the below commands to quickly set up the system prerequisites on both servers.
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
systemctl stop chronyd.service
systemctl disable chronyd.service
mv /etc/chrony.conf /etc/chrony.conf.bak
groupadd -g 54331 oinstall
groupadd -g 54332 dba
groupadd -g 54333 oper
groupadd -g 54334 backupdba
groupadd -g 54335 dgdba
groupadd -g 54336 kmdba
groupadd -g 54337 asmdba
groupadd -g 54338 asmoper
groupadd -g 54339 asmadmin
groupadd -g 54340 racdba
useradd -m -u 54332 -g oinstall -G dba,asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash grid
echo "grid" | passwd --stdin grid
useradd -m -u 54331 -g oinstall -G dba,oper,backupdba,dgdba,kmdba,asmdba,asmadmin,racdba -d /home/oracle -s /bin/bash oracle
echo "oracle" | passwd --stdin oracle
mkdir -p /u01/app/grid
mkdir -p /u01/app/19.2/grid
mkdir -p /u02/app/oracle
mkdir -p /u02/app/oracle/product/19.2
chmod -R 775 /u01
chmod -R 775 /u02
chown -R grid:oinstall /u01
chown -R oracle:oinstall /u02/app/oracle
Update the bash profile file for grid, oracle and root users respectively as below.
In grid's bash profile:
export ORACLE_SID=+ASM1export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/19.2/grid
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
umask 22
In oracle's bash profile:
export ORACLE_SID=orclexport ORACLE_BASE=/u02/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.2
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
umask 22
In root's bash profile:
export ORACLE_HOME=/u01/app/19.2/gridexport PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
Install the required RPMs as below:
yum install -y oracle-database-preinstall-18c.x86_64
yum install kmod-oracleasm
yum install oracleasm-support oracleasmlib oracleasm-`uname -r`
Configure oracleasm utility.
oracleasm configure -i
Update the '/etc/hosts' file with suitable IP Addresses and Hostnames.
#public ip192.168.56.115 sspdb01.localdomain sspdb01
192.168.56.116 sspdb02.localdomain sspdb02
#Vip
192.168.56.118 sspdb01-vip.localdomain sspdb01-vip
192.168.56.119 sspdb02-vip.localdomain sspdb02-vip
#private ip
10.10.10.21 sspdb01-priv.localdomain sspdb01-priv
10.10.10.22 sspdb02-priv.localdomain sspdb02-priv
#SCAN ip
192.168.56.120 sspdb-cluster sspdb-cluster-scan
Make sure the public and Private networks are reachable from both nodes.
The VIP network should not be reachable as of now. once the setup is done this virtual network will be enabled automatically.
Make sure the 3 Scan IPs are resolvable via nslookup utility; since its just a lab setup I used a single scan IP as mentioned in above '/etc/hosts' file.
Cluster (Grid) Software Setup:
Unlike the previous versions, you can see various types cluster setups available in 19c.
To know more about each type cluster configuration and it's purpose, please refer to Oracle Document grid-infrastructure-installation-and-upgrade 19c.
However, here is the generic installation so I will be choosing the default standalone cluster.
We can see a new SCAN option called Shared, for more information refer to grid-infrastructure-installation-and-upgrade 19c.
Selecting the default Local SCAN option here.
Add the 2nd node's details and setup SSH connectivity for Grid user.
self-explanatory
self-explanatory
self-explanatory
self-explanatory
Choose suitable interfaces as below.
As usual choose ASM Storage.
I chose the Grid Infrastructure Management Repository (GIMR) to be configured as this will be useful for debugging cluster related failures.
I will be using same Disk group for OCR/VD/GIMR here, though we have the option to different disk group for GIMR.
Below are the required OCR disk group capacity depending on the Redundancy which will also holds GIMR data.
External: around 30 GB
Normal: around 60 GB
High : around 90 GB.
self-explanatory
self-explanatory
self-explanatory
self-explanatory
self-explanatory
self-explanatory
We have the option to provide the root or equivalent sudo credentials in the below step. However I would like to see what exactly it does during the root scripts execution, the credentials are not passed.
self-explanatory
Run the 'Fix and Check Again' and also resolve the relevant warnings/Failed checks.
self-explanatory
self-explanatory
self-explanatory
self-explanatory
1st Node:
2nd Node:
Post of Cluster Setup:
Oracle Software installation:
self-explanatory
Make sure all the Clusterware Nodes are selected and also setup the SSH connectivity for 'oracle' user as below.
self-explanatory
self-explanatory
self-explanatory
Choose the relevant groups, I have selected the default ones.
I will run the root scripts exclusively hence leaving the below one unchecked.
self-explanatory
self-explanatory
self-explanatory
Run the root.sh script on both nodes.
self-explanatory








































