Install Oracle RAC 11gr2 On Redhat 6.6

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 5

Install Oracle RAC 11gr2 on Redhat 6.

6:

User OS: root/cntt@123


oracle/oracle
grid/grid

# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost

# Public Network - (eth0)


10.149.248.14 rnd01
10.149.248.15 rnd02

# Private Interconnect - (eth1)


192.168.248.14 rnd01-priv
192.168.248.15 rnd02-priv

# Public Virtual IP (VIP) addresses - (eth0:1)


10.149.248.26 rnd01-vip
10.149.248.27 rnd02-vip

# Single Client Access Name (SCAN)


10.149.248.28 rnd-scan

1. Kernel: Done on node1 and node2 with root

# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586

# /sbin/sysctl -p

# vi /etc/security/limits.conf

oracle soft nproc 2047


oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
# End of file
grid hard nproc 16384
grid hard nofile 65536

# vi /etc/pam.d/login

session required pam_limits.so

# vi /etc/selinux/config
SELINUX=disabled

2. Check package: Done on node1 and node2 with root

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \


compat-libstdc++-33 \
elfutils-libelf \
elfutils-libelf-devel \
gcc \
gcc-c++ \
glibc \
glibc-common \
glibc-devel \
glibc-headers \
ksh \
libaio \
libaio-devel \
libgcc \
libstdc++ \
libstdc++-devel \
make \
sysstat \
unixODBC \
unixODBC-devel \
binutils-2

3. Group, user: Done on node1 and node2 with root

-Configure as root user:

/usr/sbin/groupadd -g 501 oinstall


/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/groupadd -g 507 asmoper

/usr/sbin/useradd -u 501 -g oinstall -G asmdba,asmadmin,asmoper grid


passwd grid
/usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba,asmadmin,asmoper oracle
passwd oracle

4. Make directory

mkdir -p /u01/app/grid
mkdir -p /u01/app/11.2.0/grid
chown -R grid:oinstall /u01
mkdir -p /u01/app/oracle
chown oracle:oinstall /u01/app/oracle
chmod -R 775 /u01

5.Config RSH

- Check rsh lib:


# rpm -q rsh rsh-server
rsh-0.17-25.4
rsh-server-0.17-25.4

- Config:
# su -
# chkconfig rsh on
# chkconfig rlogin on
# service xinetd reload
Reloading configuration: [ OK ]

# touch /etc/hosts.equiv
# chmod 600 /etc/hosts.equiv
# chown root.root /etc/hosts.equiv
# vi /etc/hosts.equiv
rnd01 oracle
rnd01-priv oracle
rnd01-vip oracle
rnd02 oracle
rnd02-priv oracle
rnd02-vip oracle

rnd01 grid
rnd01-priv grid
rnd01-vip grid
rnd02 grid
rnd02-priv grid
rnd02-vip grid

-Test connection on 2 nodes


$ rsh hostname date

6. Config shared storage:


+ Fdisk for LUNs: only done on rac1:

Device Boot Start End Blocks Id System


/dev/sdc1 1 10240 10485744 83 Linux
Device Boot Start End Blocks Id System
/dev/sde1 1 10240 10485744 83 Linux
Device Boot Start End Blocks Id System
/dev/sdg1 1 10240 10485744 83 Linux

Device Boot Start End Blocks Id System


/dev/sdb1 1 133674 1073736373+ 83 Linux
Device Boot Start End Blocks Id System
/dev/sdd1 1 133674 1073736373+ 83 Linux
Device Boot Start End Blocks Id System
/dev/sdf1 1 133674 1073736373+ 83 Linux

# fdisk /dev/sdc
# fdisk /dev/sde
# fdisk /dev/sdg

# fdisk /dev/sdb
# fdisk /dev/sdd
# fdisk /dev/sdf

- Config shared storage as raw devices:

# vi /etc/udev/rules.d/60-raw.rules

ACTION=="add", KERNEL=="sdc1", RUN+="/bin/raw /dev/raw/raw1 %N"


ACTION=="add", KERNEL=="sde1", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdg1", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw4 %N"
ACTION=="add", KERNEL=="sdd1", RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add", KERNEL=="sdf1", RUN+="/bin/raw /dev/raw/raw6 %N"

# set permissions on these disks for the Oracle Owner user.


ACTION=="add", KERNEL=="raw*", OWNER=="grid", GROUP=="oinstall", MODE=="0660"

/bin/raw /dev/raw/raw1 /dev/sdc1


/bin/raw /dev/raw/raw2 /dev/sde1
/bin/raw /dev/raw/raw3 /dev/sdg1
/bin/raw /dev/raw/raw4 /dev/sdb1
/bin/raw /dev/raw/raw5 /dev/sdd1
/bin/raw /dev/raw/raw6 /dev/sdf1

# start_udev

7. Deconfig NTP: Done on node1 and node2 with root

# service ntpd stop


Shutting down ntpd: [ OK ]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.org
# rm /var/run/ntpd.pid

# vi /etc/sysconfig/ntpd

OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"

- Restart NTP:

# service ntpd restart

- Start the Name Service Cache Daemon (nscd).

# chkconfig --level 35 nscd on


# service nscd start

8. Create .bash_profile: Done on node1 and node2 with grid

$ vi .bash_profile

ORACLE_SID=+ASM1
export ORACLE_SID
ORACLE_BASE=/u01/app/grid
export ORACLE_BASE
ORACLE_HOME=/u01/app/11.2.0/grid
export ORACLE_HOME
SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32
export SHLIB_PATH
PATH=$PATH:$ORACLE_HOME/bin
export PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib/:
$ORACLE_HOME/network/jlib
export CLASSPATH
umask 022

9. Create .bash_profile: Done on node1 and node2 with oracle

$ vi .bash_profile
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
ORACLE_HOME=/u01/app/oracle/11.2.0/db
export ORACLE_HOME
ORACLE_SID=DBRND1
export ORACLE_SID
SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32
export SHLIB_PATH
PATH=$PATH:$ORACLE_HOME/bin
export PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib/:
$ORACLE_HOME/network/jlib
export CLASSPATH
umask 022

10. Run CVU Pre Clusterware Install Checks: Done on node1 with oracle

- Install cvuqdisk.rpm on both nodes:

# cd /u01/setup/grid/rpm
# rpm -Uvh cvuqdisk-1.0.7-1.rpm

$ cd /u01/setup/grid
$ ./runcluvfy.sh stage -pre crsinst -n CNTT-RND-01,CNTT-RND-02 -fixup -verbose |
more

$ cd /u01/setup/grid
$ ./runcluvfy.sh stage -post hwos -n CNTT-RND-01,CNTT-RND-02 -verbose | more

---------------------------------------------------------------------------
For reference:

11. Install Grid: using user grid for install

-choose correct path for grid


/u01/app/grid

-create CRS diskgroup with asmdisk as follow:

12. Install database software


-choose correct path db
/u01/app/oracle/product/10.2.0/db

13. Create diskgroup for located DB


asmca

14. Create DB
dbca

You might also like