首页 > 数据库 > Oracle > ORACLE RAC重建OCR
|
[root@rac02 bin]# pwd /u01/app/oracle/db_1/bin [root@rac02 bin]# ./crsctl stop crs Stopping resources. This could take several minutes. Successfully stopped CRS resources. Stopping CSSD. Shutting down CSS daemon. Shutdown request successfully issued. [root@rac01 ~]# cd /u01/app/oracle/db_1/bin [root@rac01 bin]# ./crsctl stop crs Stopping CSSD. Shutting down CSS daemon. Shutdown request successfully issued. |
|
[oracle@rac01 ~]$ echo $CRS_HOME /u01/app/oracle/crs [root@rac01 oracle]# cp -R crs crs.bak [root@rac01 oracle]# ls admin crs crs.bak db_1 oraInventory [root@rac02 oracle]# ls admin crs db_1 oraInventory [root@rac02 oracle]# cp -R crs crs.bak [root@rac02 oracle]# ls admin crs crs.bak db_1 oraInventory |
|
[root@rac01 install]# pwd /u01/app/oracle/crs/install [root@rac01 install]# ./rootdelete.sh Shutting down Oracle Cluster Ready Services (CRS): Stopping CSSD. Unable to communicate with the CSS daemon. Shutdown has begun. The daemons should exit soon. Checking to see if Oracle CRS stack is down... Oracle CRS stack is not running. Oracle CRS stack is down now. Removing script for Oracle Cluster Ready services Updating ocr file for downgrade Cleaning up SCR settings in '/etc/oracle/scls_scr' [root@rac02 install]# ./rootdelete.sh |
因为我是在rac01节点上执行安装的,所以也在该节点执行该命令,只需要在该节点执行就可以了。
|
[root@rac01 install]# pwd
Removing contents from OCR device |
5.检查CRS进程,如果没有返回值,继续下一步
|
[root@rac01 install]# ps -e | grep -i 'ocs[s]d' 13665 pts/2 00:00:00 ocssd.bin [root@rac01 install]# ps -e | grep -i 'cr[s]d.bin' [root@rac01 install]# ps -e | grep -i 'ev[m]d.bin' |
6.在安装节点(第4步中的节点)执行
[root@rac01 crs]# pwd
Setting the permissions on OCR backup directory
NO KEYS WERE WRITTEN. Supply -force parameter to override.
/u01/app/oracle/crs
[root@rac01 crs]# ./root.sh
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' 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 1: rac01 rac01-priv rac01
node 2: rac02 rac02-priv rac02
clscfg: Arguments check out successfully.
-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.
rac01
CSS is inactive on these nodes.
rac02
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
7.在剩下的节点执行
|
[root@rac02 ~]# /u01/app/oracle/crs/root.shWARNING: directory '/u01/app/oracle' is not owned by root
Setting the permissions on OCR backup directory
NO KEYS WERE WRITTEN. Supply -force parameter to override.
在 (0) 节点上创建 VIP 应用程序资源.
|
重建结束;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14288937/viewspace-1263996/ ,如需转载,请注明出处,否则将追究法律责任。