步骤:
0 请在做以下动作前作一次OCR的有效逻辑备份
1 找到一个最新的OCR逻辑备份
2 停止所有节点的CRS : # crsctl stop crs
3 还原OCR逻辑备份 : # ocrconfig -import /u01/app/oracle/hotocr090308
4 在所有节点上启动CRS
5 检查OCR一致性 $ cluvfy comp ocr -n all
0 略
1 略
2 停止所有节点的CRS[root@rac1 ~]#
[root@rac1 ~]# cd /u01/app/oracle/product/10.2.0/crs_1
[root@rac1 crs_1]# ./crsctl stop crs
-bash: ./crsctl: No such file or directory
[root@rac1 crs_1]# cd bin
[root@rac1 bin]# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@rac1 bin]#
节点2略
[root@rac1 bin]# su - oracle
rac1->
rac1-> crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
rac1->
3 还原OCR逻辑备份[root@rac1 ~]# cd /u01/app/oracle/product/10.2.0/crs_1
[root@rac1 crs_1]# cd bin
[root@rac1 bin]# ./ocrconfig -import /u01/app/oracle/hotocr090308
[root@rac1 bin]#
4 在所有节点上启动CRS[root@rac1 bin]# ./crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
[root@rac1 bin]#
[root@rac2 bin]# ./crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
[root@rac2 bin]#
rac1-> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.devdb.db application ONLINE ONLINE rac2
ora....b1.inst application ONLINE ONLINE rac1
ora....b2.inst application ONLINE ONLINE rac2
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE UNKNOWN rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
rac1->
注意到node2上的监听状态为UNKNOWN,需要处理一下。
为了步骤地紧凑性,这个问题的解决方法随后补充。
5 检查OCR一致性rac1-> cluvfy comp ocr -n all
Verifying OCR integrity
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations.
Uniqueness check for OCR device passed.
Checking the version of OCR...
OCR of correct Version "2" exists.
Checking data integrity of OCR...
Data integrity check for OCR passed.
OCR integrity check passed.
Verification of OCR integrity was successful.
rac1->
rac2-> olsnodes
rac1
rac2
rac2->
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/110321/viewspace-621908/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/110321/viewspace-621908/