首页 > 数据库 > Oracle > oracle 10g release 2 rac for redhat as4

oracle 10g release 2 rac for redhat as4

原创 Oracle 作者:zhaolcq 时间:2000-01-01 00:00:29 0 删除 编辑
10g release 2 rac for redhat as 4


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-



os rpm: compat-gcc-32-3.2.3-47.fc4












3. modify system kernel and limits:


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


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 rac1 rac2 rac_priv1 rac_priv2 rac_vip1 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 and 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/ disable (disable autostart on boot)

/etc/init.d/ 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 and eth0:1 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博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
  • 博文量
  • 访问量