手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle RAC 迁移OCR(10g)

[日期:2013-03-21] 来源:Linux社区  作者:chuner [字体:大 中 小]

Oracle RAC 迁移OCR

Oracle RAC 添加和删除OCR 参考:http://www.linuxidc.com/Linux/2013-03/81348.htm

Oracle RAC 备份和恢复OCR 参考:http://www.linuxidc.com/Linux/2013-03/81347.htm

如果想要改变一个已经存在的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
2.在Oracle clusterware 运行的节点上执行如下命令:

[oracle@node1 crs_1]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

3.迁移普通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

可以看到此时raw7为镜像ocr而非raw8

5.如果做ocr迁移的时候有节点关闭,那么在启动关闭的节点后应该在这个节点上执行如下命令:

ocrconfig -repair

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
相关资讯       Oracle RAC 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款