Professional Documents
Culture Documents
STEP BY STEP RAC CONFIGURATION OF ORACLE 10G
STEP BY STEP RAC CONFIGURATION OF ORACLE 10G
1) Install OS RHEL 5.3 with Kernel version 2.6.18-128.el5 SMP on both nodes
From 1TB Storage assign 51 GB separate to each node with RAID 5 and rest would be treated as a shared storage between both the nodes.
boot --> 250MB (Check Force to be primary partition, select fixed size)
swap --> 8GB (select fixed size)
/tmp --> 1GB (select fixed size)
/ (root) --> 15 GB (Check Force to be primary partition, select fixed size)
/u01 --> 27 GB (Check Force to be primary partition, select fill to maximum allowable size)
2) Install the following RPM required for configuring RAC on both nodes
binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
gcc-3.3gcc-c++-3.3.3-43
glibc-2.3.3-98.28
libaio-0.3.98-18
libaio-devel-0.3.98-18
make-3.80
openmotif-libs-2.2.2-519.1
Edit vi /etc/ntp.conf & comment all the entries of Server in that file made the below entry at client end
Server 192.168.1.127
Now edit vi /etc/ntpd/step-trickers file at client end and made the following entry:
Node1 192.168.1.127
Now edit the vi /etc/ntp.conf file at server end and comment all the server entries and uncomment the following line
service ntpd restart & check the dates on both nodes whether it is same or not by the following method
mkdir –p /u01/app/oracle
chown –R oracle: oinstall /u01/app/oracle
chmod –R 775 /u01/app/oracle
Login from oracle user and edit bash profile file and made the following entries
$ vi .bash_profile
vi /etc/sysctl.conf
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 658576
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 1048536
net.core.wmem_max = 1048536
net.ipv4.tcp_rmem = 4096 262144 524288
net.ipv4.tcp_wmem = 4096 262144 524288
vm.nr_hugepages = 800
vm.disable_cap_mlock = 1
net.ipv4.tcp_syn_retries = 2
net.ipv4.tcp_retries2 = 3
net.ipv4.tcp_keepalive_time = 30
net.ipv4.tcp_keepalive_intvl = 60
net.ipv4.ip_forward = 0
vi /etc/security/limits.conf
vi /etc/pam.d/login
touch /var/lock/subsys/local
modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
ssh-keygen -t dsa
cd ~/.ssh
mkdir ~/.ssh
chmod 755 ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa
cd ~/.ssh
This Time partition to be done on shared storage through one nodes i.e. node1
/dev/sdb = 107 GB
/dev/sdc = 950 GB
13) Login from user root and make entry in .csh file
vi /etc/csh.login
if ($?PATH) then
if ( "${path}" !~ */usr/X11R6/bin* ) then
setenv PATH "${PATH}:/usr/X11R6/bin"
endif
else
if ( $uid == 0 ) then
setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
else
setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
endif
endif
if ( ! -f $HOME/.inputrc ) then
setenv INPUTRC /etc/inputrc
endif
if ( $USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
umask 022end
if
vi /etc/udev/rules.d/60-raw.rules
# OCFS2 Binding, since this can be buffered, it can be mapped as block device
15) Mount the Shared Partition /dev/sdb4 on both nodes using OCFS2 (Oracle Cluster File System)
mkdir /u02 (on both nodes)
Install the following rpm for OCFS (Oracle Cluster File System)
Now from first node on GUI (Graphical User Interface) run the following command from user root
Ocfs2console
This will open the graphical interface and then click on add nodes and add the both nodes entry like this
node1.vpc.in 192.168.1.127
node2.vpc.in 192.168.1.128
After this done propagation this will create the entry on both nodes cluster.conf file
vi /etc/o2cb/cluster.conf (compare the entries on both nodes in this file)
now format /dev/sdb4 using label = /u02 and option = _netdev, datavolume
now mount /dev/sdb4 on /u02 it will mount successfully.
vi /etc/fstab
Now restart both the nodes & after booting /dev/sdb4 should mount on both nodes and we can see it by mount or df –h command.
cd /u01/10gR2/software/clusterware/cluvfy
Run this above command in pre & post both condition for db,crsinst & hwos.
cd /u01/10gr2/software/clusterware/
./runInstaller
18) Configure Vipca(Virtual Internet Protocol Configuration Assistant):
vi vipca
./vipca
cd /u01/app/oracle/product/10.2.0/db_1/bin
These all rpm’s are to be installed on both nodes. All the rpm are
Available on http://oss.oracle.com/projects
/etc/init.d/oracleasm scandisk
/etc/init.d/oracleasm listdisk
Cd /u01/10gR2/software/database
./runInstaller
cd /u01/app/oracle/product/10.2.0/db_1/bin