日期:2014-05-16 浏览次数:20451 次
Oracle RAC 迁移OCR
Oracle RAC 添加和删除OCR 参考:http://blog.csdn.net/laoshangxyc/article/details/8702929
Oracle RAC 备份和恢复OCR 参考:http://blog.csdn.net/laoshangxyc/article/details/8688705
如果想要改变一个已经存在的ocr位置或改变一个已经出现故障的ocr位置,那么你就可以使用下面的过程来迁移ocr。
1.查看当前ocr情况
[oracle@node1 crs_1]$ ocrcheck Status of Oracle Cluster Registry is as follows : Version : 2 Total space (kbytes) : 153496 Used space (kbytes) : 3816 Available space (kbytes) : 149680 ID : 497615595 Device/File Name : /dev/raw/raw7 Device/File integrity check succeeded Device/File Name : /dev/raw/raw8 Device/File integrity check succeeded Cluster registry integrity check succeeded这里raw7为普通ocr,raw8为镜像ocr
[oracle@node1 crs_1]$ crsctl check crs CSS appears healthy CRS appears healthy EVM appears healthy3.迁移普通ocr
[root@node1 bin]# ./ocrconfig -replace ocr /dev/raw/raw9 [oracle@node1 crs_1]$ ocrcheck Status of Oracle Cluster Registry is as follows : Version : 2 Total space (kbytes) : 153496 Used space (kbytes) : 3816 Available space (kbytes) : 149680 ID : 497615595 Device/File Name : /dev/raw/raw9 Device/File integrity check succeeded Device/File Name : /dev/raw/raw8 Device/File integrity check succeeded Cluster registry integrity check succeeded可以看到此时raw9已为普通ocr而非raw7
4.迁移镜像ocr
[root@node1 bin]# ./ocrconfig -replace ocrmirror /dev/raw/raw7 [oracle@node1 crs_1]$ ocrcheck Status of Oracle Cluster Registry is as follows : Version : 2 Total space (kbytes) : 153496 Used space (kbytes) : 3816 Available space (kbytes) : 149680 ID : 497615595 Device/File Name : /dev/raw/raw9 Device/File integrity check succeeded Device/File Name : /dev/raw/raw7 Device/File integrity check succeeded Cluster registry integrity check succeeded
5.如果做ocr迁移的时候有节点关闭,那么在启动关闭的节点后应该在这个节点上执行如下命令:
ocrconfig -repair