Hi,
1. Host entries
Only private IP addresses need to be entered in host files as the remaining IP addresses (Public, VIP, SCAN) will be resolved from DNS server
As root user, vi /etc/hosts
200.200.100.101 rac1-priv.charan.com rac1-priv
200.200.100.102 rac2-priv.charan.com rac2-priv
2. Required RPM's : If you select to install all packages during RedHat installation, majority of the required rpm's would pre-exist. The RPM's that would need to be installed and does not exist after selecting all packages during installation are marked New
Note: RPM's should be present in both the nodes
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106 -------------------------------------New
libaio-devel-0.3.106 (32 bit) -----------------------------New
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-2.2.11 (32 bit)
unixODBC-devel-2.2.11 --------------------------------------------New
unixODBC-devel-2.2.11 (32 bit) ----------------------------------New
coreutils-5.97-23.el5_4.1 or later
Tip:
To install RPMs, navigate to directory where RPM was downloaded and as root user execute the below command
rpm -ivh <packagename>.rpm
To check the rpm status, run the below command
rpm -qa|grep <packagename>
To check the rpm status in detail, run the below command
rpm -qa --queryformat '%{NAME} %{ARCH}\n' | grep <packagename>
3. Install ASM Packages
oracleasm-support-2.1.8-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-2.6.18-274.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm
4. Configure ASM
As root user, execute the below commands on both the nodes
oracleasm configure -i
oracleasm init
oracleasm scandisks
5. Label Partitioned disks as ASM disks
After asm is confugured, a binary called oraclasm that exists in /usr/sbin is set in PATH. Execute the below commands to label partitioned disks as ASM disks
oracleasm createdisk DATA /dev/sdc1
oracleasm createdisk RECO /dev/sdd1
Run the command #oracleasm listdisks to list the ASM labelled DISKS
6. Create users, groups and directory structure
userid and groupid should be same on both the nodes
Execute the script UserGroupAdd.sh in the attachment to create users and groups
[root@rac1 11gR2Scripts]# cat UserGroupAdd.sh
groupadd -g 1000 oinstall
groupadd -g 2000 dba
useradd -g oinstall -G dba -d /home/oracle -m oracle
passwd oracle
[root@rac1 11gR2Scripts]#
Execute the script CreateDirectories.sh in the attachment to create directories and set permissions
[root@rac1 11gR2Scripts]# cat CreateDirectories.sh
mkdir -p /u01/oracle/11.2.0.1
mkdir -p /u01/grid/11.2.0.1
chown -R oracle:oinstall /u01/oracle
chown -R root:oinstall /u01/grid
chmod -R 777 /u01
chmod -R 777 /dev/sdb*
chmod -R 777 /dev/sdc*
chmod -R 777 /dev/sdd*
chmod -R 777 /dev/sde*
[root@rac1 11gR2Scripts]#
7. Create SSH User Equivalence for Grid and Oracle Users (Optional) : In 11gR2 during Grid installation SSH user equivalence can be setup during installation.
The traditional method uses ssh-keygen to setup user equivalence, but Oracle Grid Software contains a script called sshUserSetup.sh that can be used to setup ssh user equivalence
As root user navigate to GRID_software_location/sshsetup and run the below command
./sshUserSetup.sh -user oracle -hosts "rac1 rac2"
whenever prompted enter the password for oracle user.
In the above command,
oracle - is the os user for grid installation
rac1 - is the hostname of node1
rac2 - is the hostname of node2
8. Install the cvuqdisk package that comes with grid software. Navigate to grid software location and install the cvuqdisk rpm
rpm -ivh cvuqdisk-1.0.7-1.rpm
9. Configure Kernel Parameters (Optional) : During Grid installation Oracle Generates a fixup script which can be executed to modify kernel parameters.
To set the required parameters modify /etc/sysct.conf file on both the nodes
Add the following lines at the end of the file
#Oracle Kernel Parameters Setup
fs.aio-max-nr=1048576
kernel.shmmni=4096
kernel.sem=250 32000 100 128
fs.file-max=6815744
net.ipv4.ip_local_port_range=9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048576
10. Synchronize time on both the nodes
Execute the command only on node1
date `ssh rac2 date +%m%d%H%M%y. %S`
11. Disable NTP
mv /etc/ntp.conf /etc/ntp.conf.bkp1
service ntpd status
12. Run Cluvfy for pre installation check
As oracle user navigate to grid software location
./runcluvfy.sh comp nodecon -n rac1,rac2 -verbose
./runcluvfy.sh comp ssa -n rac1,rac2 -verbose
./runcluvfy stage -pre crsinst -n rac1,rac2 -verbose
13. Stop the Virtual IP on both the nodes, during grid installation network will be configured for virtual IP's
As root user, ifconfig eth1:0 down
14. Edit the file /etc/security/limits.conf and set the hard and soft limits for oracle user
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
That's it !!!
Regards,
Charan