Oracle RAC安装时需要执行4个脚本及意义(三)

2014-11-24 18:10:04 · 作者: · 浏览: 2


root@node1 #/oracle/crs/root.sh


WARNING: directory '/oracle' is not owned by root


Checking to see if Oracle CRS stack is already configured


Checking to see if any 9i GSD is up



Setting the permissions on OCR backup directory


Setting up NS directories


Oracle Cluster Registry configuration upgraded successfully


WARNING: directory '/oracle' is not owned by root


clscfg: EXISTING configuration version 3 detected.


clscfg: version 3 is 10G Release 2.


Successfully accumulated necessary OCR keys.


Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.


node :


node 0: node2 node2-priv node2


node 1: node1 node1-priv node1


clscfg: Arguments check out successfully.



NO KEYS WERE WRITTEN. Supply -force parameter to override.


-force is destructive and will destroy any previous cluster configuration.


Oracle Cluster Registry for cluster has already been initialized


Startup will be queued to init within 30 seconds.


Adding daemons to inittab


Expecting the CRS daemons to be up within 600 seconds.


CSS is active on these nodes.


node2


node1


CSS is active on all nodes.


Waiting for the Oracle CRSD and EVMD to start


Oracle CRS stack installed and running under init(1M)


Running vipca(silent) for configuring nodeapps



Creating VIP application resource on (2) nodes...


Creating GSD application resource on (2) nodes...


Creating ONS application resource on (2) nodes...


Starting VIP application resource on (2) nodes...


Starting GSD application resource on (2) nodes...


Starting ONS application resource on (2) nodes...



Done.




3. 在第二个节点上运行时会多比在第一个节点上运行多执行一个任务


-------运行$CRS_HOME/bin/vipca.sh



VIPCA.sh主要是配置vip并启动crs的默认资源(未建库时默认为6个),多启动三个后台进程。


root@node1 # ps -ef|grep crs|grep -v grep


oracle 18347 17447 0 14:51:06 0:00 /oracle/crs/bin/evmlogger.bin -o /oracle/crs/evm/log/evmlogger.info -l /oracle/


oracle 17447 1 0 14:50:47 0:00 /oracle/crs/bin/evmd.bin


oracle 17763 17756 0 14:50:48 0:00 /oracle/crs/bin/ocssd.bin


oracle 17756 17643 0 14:50:48 0:00 /bin/sh -c ulimit -c unlimited; cd /oracle/crs/log/node1/cssd; /oracle/crs


oracle 21216 1 0 14:52:28 0:00 /oracle/crs/opmn/bin/ons -d


oracle 21217 21216 0 14:52:28 0:00 /oracle/crs/opmn/bin/ons -d


oracle 17771 17642 0 14:50:48 0:00 /bin/sh -c cd /oracle/crs/log/node1/cssd/oclsmon; ulimit -c unlimited; /ora


oracle 17773 17771 0 14:50:48 0:00 /oracle/crs/bin/oclsmon.bin


root 17449 1 0 14:50:47 0:01 /oracle/crs/bin/crsd.bin reboot



root@node2 # ps -ef|grep crs|grep -v grep


oracle 18212 18211 0 14:47:28 0:00 /oracle/crs/bin/ocssd.bin


oracle 27467 27466 0 14:52:25 0:00 /oracle/crs/opmn/bin/ons -d


oracle 25252 17886 0 14:51:16 0:00 /oracle/crs/bin/evmlogger.bin -o /oracle/crs/evm/log/evmlogger.info -l /oracle/


oracle 27466 1 0 14:52:25 0:00 /oracle/crs/opmn/bin/ons -d


oracle 18191 18180 0 14:47:28 0:00 /oracle/crs/bin/oclsmon.bin


oracle 17886 1 0 14:47:27 0:00 /oracle/crs/bin/evmd.bin


o