Home  >  Article  >  Database  >  Oracle RAC 添加和删除OCR(10g)

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

WBOY
WBOYOriginal
2016-06-07 17:27:251062browse

Oracle Clusterware最多只支持两个OCR,一个普通OCR,一个镜像OCR.如果采用的External Redundancy方式存储OCR,那么还可以添加一

Oracle RAC 添加和删除OCR

Oracle RAC 备份和恢复OCR 参考:

Oracle Clusterware最多只支持两个OCR,一个普通OCR,一个镜像OCR.如果采用的External Redundancy方式存储OCR,那么还可以添加一个镜像OCR,如果才用的Normal Redundancy的方式存储OCR那么则不能再添加。

添加普通OCR方法如下:

 

ocrconfig -replace ocr destination_file ocrconfig -replace ocr disk

--destination_file或disk为想要添加的OCR存储位置

 

添加镜像OCR方法如下:

 

ocrconfig -replace ocrmirror destination_file ocrconfig -replace ocrmirror disk

--destination_file或disk为想要添加的OCR存储位置

 

--以上要用root用户执行

示例添加镜像OCR:

1.查看系统当前OCR情况

 [oracle@node1 ~]$ 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 not configured

        Cluster registry integrity check succeeded

看到当前系统只有一个OCR存储(为普通OCR),在/dev/raw/raw1.

 

如果此时再添加一个普通OCR,,则会报如下错误

[root@node1 bin]# ./ocrconfig -replace ocr /dev/raw/raw7
PROT-16: Internal Error

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn