Oracle Grid Setup
Oracle Grid Setup
Environment Details:
Follow the steps for configuring Network between two node RAC from below mentioned link:
https://www.linkedin.com/posts/umesh-shinde-989187209_oracle-linux-installation-activity-
7141727733537046528-OGsK?utm_source=share&utm_medium=member_desktop
--------------------------------------------------------------
1. Prerequisites:
Connect to OEL 7.9 server via putty and install the below packages
yum -y install oracleasm*
yum -y install kmod-oracleasm*
Click on virtual manager > create> select VHD> preallocate full size> give 20 gb size for asm data
>finish.
Then click on disk and select property.
Make type =shared
oracleasm scandisks
oracleasm listdisks
umount /swap
vi /etc/fstab
swapon -a
swapon -s
Edit Grid user Bash_Profile but take .bash_profile backup before editing
it
su – grid
vi .bash_profile
Node 1:
# .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/local/bin
export PATH
umask 022
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
Node2:
# .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/local/bin
export PATH
umask 022
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
Create the Directories for Oracle Grid installation
mkdir -p /grid/app/grid
mkdir -p /grid/app/grid/product/19.0.0/grid_home
mkdir -p /grid/app/grid1
mkdir -p /grid/app/oraInventory
/grid/app/grid/product/19.0.0/grid_home/cv/rpm
Export display=:0.0
Xhost +
Export display=:0.0
Xhost +
Cd $ORACLE_HOME
7. Start Installation
./gridSetup.sh
Select the Configure Oracle Grid Infrastructure for a New Cluster option, then
click the Next button
Accept the Configure an Oracle Standalone Cluster option by clicking
the Next button.
Enter the cluster name my-cluster, SCAN name db-scan and SCAN port 1521,
then click the Next button.
On the “Cluster Node Information” screen, click the Add button.
Enter the details of the second node in the cluster, then click the OK button.
Click the SSH connectivity button and enter the password for the oracle
user. Click the Setup button to configure SSH connectivity, and the Test
button to test it once it is complete. Once the test is complete, click the
Next button.
Check the public and private networks are specified correctly as ASM &
Private. Click the Next button.
Accept the Use Oracle Flex ASM for Storage option by clicking the Next
button.
Select the No option, as we don’t want to create a separate disk group for
the GIMR in this case. Click the Next button.
First Browse the path /dev/oracleasm/disks* using change discovery path
/dev/oracleasm/disks*
Enter the credentials and click the Next button.
Check the Ignore All checkbox and click the Next button.
Double check and click the Install button
When prompted, run the configuration scripts on each node one by one