RAC Installation

Real Application Clusters

Before starting RAC installation we need to create two nodes or we can create clone

After clone or installation completed

Go to this directory

[root@six ~]#  cd /etc/udev/rules.d

Copy it somewhere now I have copied it in root directory

[root@six ~]#  cp 70-persistent-net.rules /root/

[root@six ~]# rm 70-persistent-net.rules

[root@six ~]# reboot

We need to change the MAC address only if you created machine via clone otherwise no need to change MAC address here I have used clone so need to change MAC address

In Network Adapter we have to change MAC address

Just here I have added in MAC any sequence we can assign

Adapter 1

Adapter 2: here we have last number with C

Adapter 3:

Here we have replace with last number 3

After this we need to open clone machine

Step 2:

Need to change hostname into the /etc/hosts directory

We can edit

[root@six ~]# vi /etc/hosts

Just for moment we need to change the hosts name

After changing the hostname we can check the hostname

[root@six ~]# hostname

First edit in /etc/hosts file with new hostname and test ping.

Second: go to /etc/sysconfig/network/ file and change host parameter.

And reboot it.

Once rebooted please check network is coming by pinging hostname.

[root@six ~]# ping six

After it we need to fixed static IP in both nodes (machines)

Go to network Connection tab we will edit network connection and set here static IP address

Node : Six Static IP Configuration

 In IPv4 Setting go to with manual setting add here static ip address

eth0 : 10.0.2.14 & 255.255.255.254

Here we can see we have mention here

eth1 194.168.4.227 & Netmask 255.255.255.254

Node : Five Static IP Configuration

eth0 :   10.0.2.15  & Netmask 255.255.255.254 static IP created

eth01 : 194.168.4.228 & Netmask 255.255.255.254

Overall add static ip after that need to reboot your system

After that need to edit in /etc/hosts file

Here we need to add static ip in both node(machine)

We did mention here priv : private ip

                                          Vip : virtual ip

before configure hosts we also need to configure network file we need to change it in both network according to network Static ip

[root@five~]$ vi /etc/sysconfig/network

[root@five~]$ cat /etc/sysconfig/network

now here we’re going to configure hosts

[root@five~]$ vi /etc/hosts

[root@five~]$ cat /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

# Privateeth0

192.168.1.12 five.oracle.com five
192.168.1.13 six.oracle.com six

# Publiceth1

192.168.2.14 five-priv.oracle.com five-priv
192.168.2.15 six-priv.oracle.com six-priv

# Virtual

192.168.1.16 five-vip.oracle.com five-vip
192.168.1.17 six-vip.oracle.com six-vip

# SCAN

192.168.2.11 rac-cluster.oracle.com rac-cluster

After this we need to check our created static IP is ping or not so here we’re going to check

Node 1 IP can ping node 2 IP

[root@five ~]# ping 192.168.1.12

Node 2

[root@six ~]#  ping to check the network status in every network status

so here network pinging status we need to check every network status

After it we need to login with oracle user in both node

[root@five ~]# su oracle

Need to make a directory in both node same things need to repeat in both node

[oracle@five ~]$ mkdir ~/.ssh

Assign the permission  

[oracle@five ~]$ chmod 700 ~/.ssh

After assign the permission need to run

[oracle@five ~]$ /usr/bin/ssh-keygen -t rsa

Go to  .ssh directory

[oracle@five ~]$ cd ~/.ssh

Run authorised cmd

[oracle@five .ssh]$ cat id_rsa.pub >> authorized_keys

[oracle@five .ssh]$ scp authorized_keys 10.0.2.14:/home/oracle/.ssh/

After this process we can access other node

[oracle@five .ssh]$ ssh six

We can watch here with the help of ssh cmd we can access other node

If we know about the different node credential

Repeat the same things in node 2 : node six

type exit will access original node

After configuration we can access both note in single terminal

after permission and unzipping we need to perform ./runInstaller

[oracle@five grid~]$ ./runInstaller

new popup Grid window will appear

2 thoughts on “RAC Installation

  • August 19, 2022 at 2:11 pm
    Permalink

    Very good written information. It will be helpful to anybody who usess it, including myself. Keep up the good work – i will definitely read more posts.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *