1.
Install oracle prequisite packages for the servers
rpm -q binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc
gcc-c++ libstdc++ gdbm make ksh elfutils-libelf sysstat libaio libaio-devel setarch
unixODBC libXp libXtst xorg-x11-utils --qf '%{name}.%{arch}\n'|sort
2. create groups and users
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 505 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 oinstall,asmadmin,asmoper,asmdba,dba grid
/usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba,oper oracle
3.set password for grid and oracle user
passwd grid
passwd oraacle
4. disable selinux and firewall
5. set kernel parameters
Add the following lines to a file called "/etc/security/limits.conf"
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
grid soft nofile 1024
grid hard nofile 65536
grid soft nproc 16384
grid hard nproc 16384
grid soft stack 10240
grid hard stack 32768
grid hard memlock 134217728
grid soft memlock 134217728
5.Add the following lines to the "/etc/sysctl.d/99-sysctl.conf"
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
/sbin/sysctl -p
6.Install oracleasm libraries
rpm -ivh
7.Format and create partitions on your disks
fdisk
8.configure oracle asm library
oracleasm configure -i
9. create asm disks
oracleasm createdisk DATA1 /sdb1
10. add ips to host file
11. run cluster verify
./runcluvfy.sh stage -pre crsinst -n hqcpctestsvr001,hqcpctestsvr002 -verbose
>/tmp/check.log
12. fix all errors before you start with grid installtion
13. Installtion grid infrastructure
14. install database software and create database