DOYENSYS Knowledge Portal

We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal

Friday, June 6, 2014

Installation of 11gR2 Rac on RHEL using VMware and Openfiler

Oracle RAC Architecture 
A general pictorial guide for how to the install RHEL 5.4 for Oracle RAC can be found here

Hostname & IP Requirement
Public IP
Private IP
Storage IP
RAC Node1
RAC Node2

Public Name
Private  Name
VIP Name
RAC Node1
RAC Node2

SCAN IP Address for RAC       racinst-scan       racinst-scan       racinst-scan

Add /etc/hosts entry for node 1

Add /etc/hosts entry for node2

Install the following RPM on both nodes
yum install -y  binutils-2.*
yum install -y  compat-libstdc++-33*
yum install -y  elfutils-libelf-0.*
yum install -y  elfutils-libelf-devel-*
yum install -y  gcc-4.*
yum install -y  gcc-c++-4.*
yum install -y  glibc-2.*
yum install -y  glibc-common-2.*
yum install -y  glibc-devel-2.*
yum install -y  glibc-headers-2.*
yum install -y  ksh-2*
yum install -y  libaio-0.*
yum install -y  libaio-devel-0.*
yum install -y  libgcc-4.*
yum install -y  libstdc++-4.*
yum install -y  libstdc++-devel-4.*
yum install -y  make-3.*
yum install -y  sysstat-7.*
yum install -y  unixODBC-2.*
yum install -y  unixODBC-devel-2.*

Change the Kernel Parameters
Add or amend the following lines to the "/etc/sysctl.conf" file.
 fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 1054504960
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500

Run the following command to change the current kernel parameters.
#/sbin/sysctl -p

Add the following lines to the "/etc/security/limits.conf" file.

oracle               soft    nproc   2047
oracle               hard    nproc   16384
oracle               soft    nofile  1024
oracle               hard    nofile  65536
Add the following lines to the "/etc/pam.d/login" file, if it does not already exist.
session    required

Change the setting of SELinux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
 Check the firewall service is running or not .
# service iptables stop
# chkconfig iptables off
Either configure NTP, or make sure it is not configured so the Oracle Cluster Time Synchronization Service (ctssd) can synchronize the times of the RAC nodes. If you want to deconfigure NTP do the following.
# service ntpd stop
Shutting down ntpd:                                        [  OK  ]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/
If you want to use NTP, you must add the "-x" option into the following line in the "/etc/sysconfig/ntpd" file.
OPTIONS="-x -u ntp:ntp -p /var/run/"
Then restart NTP.
# service ntpd restart

Create User and Groups for oracle

Create the directories on both nodes in which the Oracle software will be installed.
mkdir -p  /u01/app/11.2.0/grid
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01/

Create Environment file on both nodes

Create a file called "/home/oracle/db_env" with the following contents.

 Create a file called "/home/oracle/grid_env" with the following contents.

Install the following package from the Oracle grid media after you've defined groups.
#cd /u01/Soft/grid/rpm
#rpm -Uvh cvuqdisk*

Create  Disks for RAC installation

A general pictorial guide for how to install and configure SAN for RAC using OPENFILER


Internal Storage Details

Mount Point
Node 2
/ root
/ swap
4 GB
4 GB


External Storage Details


LUNs Qty.
Voting disk

Flash back recovery



Installation of Oracle ASM 

Instance 1:


Determine your current kernel version by using uname -r 


 We have 2.6.18-164 so have to download the appropriate ASMLib RPMs from  Link

Node 1:

Node 2:
 Configure the iSCSI (initiator) service
Now that the iSCSI service is started, use the iscsiadm command-line interface to discover all available targets on the network storage server. This should be performed on both Oracle RAC nodes to verify the configuration is functioning properly:

Manually Log In to iSCSI Targets
At this point the iSCSI initiator service has been started and each of the Oracle RAC nodes were able to discover the available targets from the network storage server. The next step is to manually log in to each of the available targets which can be done using the iscsiadm command-line interface. This needs to be run on both Oracle RAC nodes. Note that I had to specify the IP address and not the host name of the network storage server ( openfiler1-priv) - I believe this is required given the discovery (above) shows the targets using the IP address.

Configure Automatic Log In
The next step is to ensure the client will automatically log in to each of the targets listed above when the machine is booted (or the iSCSI initiator service is started/restarted). As with the manual log in process described above, perform the following on both Oracle RAC nodes:

(cd /dev/disk/by-path; ls -l *openfiler* | awk '{FS=" "; print $9 " " $10 " " $11}')

 Follow the same steps to discover the disk on second node

 Follow the steps to partion  the Disks using fdisk


Setting SSH for Grid Installation


  Go to gridsoftware location cd /u01/Soft/grid/sshsetup/  and run the following command.
 ./ -user oracle -hosts "racinst1 racinst2" -advanced -exverify -confirm

 Testcase from Node1:

 Test case from Node 2:

  Configure ASM on Node1 

 Node 2:

Run by following command 
 ./ stage -pre crsinst -n racinst1,racinst2 -r 11gR2 -verbose

Grid Installation:


After Complted the installation check the cluster status on both nodes

Here the oc4j service is faild to start oc4j give the bellow mention command


ASMCA Configuration:



Database Home Installation:




Create Database using dbca:


Remove the check mark “Enable automatic maintenance tasks”

Click on Yes button

Check whether DATA disk group is running on RAC Instances, if it is not running then start.

Update File Size as 1024 M Byes for all Redo Log

 Click exit to complete the installation

RAC instance status check:











No comments: