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

Oracle RAC 添加和删除OCR(10g)

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

2.添加一个镜像OCR

[root@node1 bin]# ./ocrconfig -replace ocrmirror /dev/raw/raw7

3.查看添加后的OCR情况

[Oracle@node1 crs_1]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
        Version                  :          2
        Total space (kbytes)    :    104344
        Used space (kbytes)      :      3816
        Available space (kbytes) :    100528
        ID                      :  497615595
        Device/File Name        : /dev/raw/raw1
                                    Device/File integrity check succeeded
        Device/File Name        : /dev/raw/raw7
                                    Device/File integrity check succeeded

        Cluster registry integrity check succeeded

可以看到添加成功
 

删除普通OCR方法如下:
 
ocrconfig -replace ocr
删除镜像OCR方法如下:
 
ocrconfig -replace ocrmirror


示例删除普通OCR:

[root@node1 bin]# ./ocrconfig -replace 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 not configured 
 
        Cluster registry integrity check succeeded 

可以看到存储位置为/dev/raw/raw1的普通OCR已经被删除。

 

注:删除普通OCR后,镜像ocr即为普通ocr,所以此时依然无法添加普通ocr,所以ocrconfig -replace ocr destination_file这个命令可能在第一创建ocr的时候才会用到。

示例删除镜像OCR

--查看raw7为普通OCR,raw8为镜像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 
--删除镜像ocr 
[root@node1 bin]# ./ocrconfig -replace ocrmirror 
--可以看到raw8已经被删除 
[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 not configured 
 
        Cluster registry integrity check succeeded

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

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

       

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