一旦安装完成,在两个节点上运行下列屏幕显示的orainstRoot.sh root.sh脚本。
执行orainstRoot.sh文件的输出看起来应该像下面这样。 # cd /u01/app/oraInventory # ./orainstRoot.sh
Changing permissions of /u01/app/oraInventory to 770. Changing groupname of /u01/app/oraInventory to oinstall. The execution of the script is complete #
执行root.sh的输出将取决于它运行的节点。下列文字是来自RAC1节点的输出。
# cd /u01/app/crs/product/11.1.0/crs # ./root.sh
WARNING: directory '/u01/app/crs/product/11.1.0' is not owned by root
WARNING: directory '/u01/app/crs/product' is not owned by root
WARNING: directory '/u01/app/crs' is not owned by root WARNING: directory '/u01/app' is not owned by root Checking to see if Oracle CRS stack is already configured /etc/oracle does not exist. Creating it now. Setting the permissions on OCR backup directory Setting up Network socket directories
Oracle Cluster Registry configuration upgraded successfully The directory '/u01/app/crs/product/11.1.0' is not owned by root. Changing owner to root
The directory '/u01/app/crs/product' is not owned by root. Changing owner to root
The directory '/u01/app/crs' is not owned by root. Changing owner to root
The directory '/u01/app' is not owned by root. Changing owner to root Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897. node :
node 1: rac1 rac1-priv rac1 node 2: rac2 rac2-priv rac2
Creating OCR keys for user 'root', privgrp 'root'.. Operation successful.
Now formatting voting device: /u01/shared_config/voting_disk Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds. Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds. Cluster Synchronization Services is active on these nodes. rac1
Cluster Synchronization Services is inactive on these nodes. rac2
Local node checking complete. Run root.sh on remaining nodes to start CRS daemons. #
下面的输出来自RAC2节点。
# /u01/app/crs/product/11.1.0/crs # ./root.sh
WARNING: directory '/u01/app/crs/product/11.1.0' is not owned by root
WARNING: directory '/u01/app/crs/product' is not owned by root WARNING: directory '/u01/app/crs' is not owned by root WARNING: directory '/u01/app' is not owned by root Checking to see if Oracle CRS stack is already configured /etc/oracle does not exist. Creating it now. Setting the permissions on OCR backup directory Setting up Network socket directories
Oracle Cluster Registry configuration upgraded successfully The directory '/u01/app/crs/product/11.1.0' is not owned by root. Changing owner to root
The directory '/u01/app/crs/product' is not owned by root. Changing owner to root
The directory '/u01/app/crs' is not owned by root. Changing owner to root
The directory '/u01/app' is not owned by root. Changing owner to root clscfg: EXISTING configuration version 4 detected. clscfg: version 4 is 11 Release 1.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897. node :
node 1: rac1 rac1-priv rac1 node 2: rac2 rac2-priv rac2
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. Cluster Synchronization Services is active on these nodes. rac1 rac2
Cluster Synchronization Services is active on all the nodes. Waiting for the Oracle CRSD and EVMD to start 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. #
在这里您可以看到,有些配置的步骤被省略了,因为他们在第一个节点做,此外,最后一部分脚本以安静模式运行虚拟IP配置助理(VIPCA)。
您现在应该回到RAC1 的“执行配置脚本”屏幕上,并点击“确定”按钮。