10g release 2 rac for redhat as 4
2005-9-13 zhaoliang
1. install environment : 2 redhat as 4 server,oracle10g release 2,oracle cfs2
2. require rpm for host: kernel: 2.6.9-11.0.0..10.3.EL
ocfs2 rpm: ocfs2-2.6.9-11.0.0.10.3.EL-1.0.4-1.i686.rpm
ocfs2-tools-1.0.2-1.i386.rpm
ocfs2console-1.0.2.1.i386.rpm
os rpm: compat-gcc-32-3.2.3-47.fc4
compat-libgcc-296-2.96-132.fc4
compat-libstdc++-33-3.2.3-47.fc4
compat-gcc-32-c++-3.2.3-47.fc4
libaio-devel-0.3.104-2
libaio-0.3.104-2
make-3.80-7
openmotif-2.2.3-10
glibc-common-2.3.4-2
glibc-kernheaders-2.4-9.1.87
glibc-devel-2.3.4-2
glibc-headers-2.3.4-2
3. modify system kernel and limits:
/etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
4. add oracle user,and config rsh:
groupadd –g 1001 dba
groupadd –g 1002 oinstall
useradd –G dba,oinstall –u 1001 –d /u01/app/oracle oracle
chown oracle:dba /u01/app/oracle
chown oracle:dba /oradata
touch /etc/hosts.equiv for node rac1 and rac2
rac1 oracle
rac2 oracle
vi /etc/hosts
192.168.0.200 rac1
192.168.0.201 rac2
192.168.2.1 rac_priv1
192.168.2.2 rac_priv2
192.168.0.202 rac_vip1
192.168.0.203 rac_vip2
5. format disk: sda for os and oracle binary,sdb1 150M for ocr config,sdb2 50M for ocr vote,sdb3 maxsize of available
in rac1 run ocfs2console to config ocfs and add rac1,rac2 to the cluster ocfs2.
In both rac1 and rac2 run /etc/init.d/o2cb enable,/etc/init.d/o2cb configure
Add ocfs in fstab
/dev/sdb3 /oradata ocfs2 _netdev,datavolume 0 0
in /etc/rc.d/rc5.d add a S55oracle
chmod 777 S55oracle and add lines in S55oracle
raw /dev/raw/raw1 /dev/sdb1
sleep 3
chown oracle:dba /dev/raw/raw1
raw /dev/raw/raw2 /dev/sdb2
sleep 3
chown oracle:dba /dev/raw/raw2
6. install crs software
run runInstaller in cdrom
in crs config tab(select like this):
nodename privatenet-nodename vip-nodename
rac1 rac_priv1 rac_vip1
rac2 rac_priv2 rac_vip2
in ether tab you change the eth0 to public net and ethe1 to private net
select external redudancy
crs config device : /dev/raw/raw1
crs vote device: /dev/raw/raw2
before install complete you must run oraInstall.sh and root.sh from node rac1 and rac2,you must run it one at a time,can not run it simulaneity
installed complete for both node rac1 and rac2 run
/etc/init.d/init.crs disable (disable autostart on boot)
/etc/init.d/init.crs start
7. config vip
login as root and run $ORA_CRS_HOME/bin/vipca to config vip for crs
you can see ifconfig –a
eth0 192.168.0.200 and eth0:1 192.168.0.202 if you config sucess
8. install db binary(you can also install db binary in cfs,but recommend to install on a private disk partition
runInstaller and select node rac1 and rac2 to install software
9. now you can run dbca to create database(also you can create database use dbca create scripts,but after create database you maybe use srvctl to register database,listener,and instances to the crs config),for listener config,recommend to not listener on vip,you would better to listener on host’s ip,because if one node down,the node’s vip can switch to the other node,I think the vip is use to maintenance the crs,it’s no good for rac if you have only one ether for public net
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/36147/viewspace-806444/ ,如需转载,请注明出处,否则将追究法律责任。