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_fileocrconfig -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