在線遷移OCR遇到報錯:PROT-16
現象:
[root@HeiLJUC01 ~]# /oracle/app/11gR1/crs/bin/ocrconfig -replace ocr /dev/raw/raw9
PROT-16: Internal Error
[root@HeiLJUC01 ~]# /oracle/app/11gR1/crs/bin/ocrconfig -replace ocr /dev/raw/raw9
PROT-16: Internal Error
分析:
用ocrcheck查看沒有mirr ocr:
[root@HeiLJUC01 ~]# /oracle/app/11gR1/crs/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 3142964
Used space (kbytes) : 8232
Available space (kbytes) : 3134732
ID : 1765612463
Device/File Name : /dev/raw/raw1
Device/File integrity check succeeded
Cluster registry integrity check succeeded
Logical corruption check succeeded
沒有Mirr ocr的情況下,在線遷移ocr是不允許的,Oracle這樣設置是基於安全性及可回退的保障來考慮的,因此需要先添加Mirr ocr。
解決方法:
1、先添加Mirr ocr
[root@HeiLJUC01 ~]# /oracle/app/11gR1/crs/bin/ocrconfig -replace ocrmirror /dev/raw/raw10
[root@HeiLJUC01 ~]# /oracle/app/11gR1/crs/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 3142964
Used space (kbytes) : 8232
Available space (kbytes) : 3134732
ID : 1765612463
Device/File Name : /dev/raw/raw1
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw10 <===Mirr ocr已添加上
Device/File integrity check succeeded
Cluster registry integrity check succeeded
Logical corruption check succeeded
2,再遷移ocr
[root@HeiLJUC01 ~]# /oracle/app/11gR1/crs/bin/ocrconfig -replace ocr /dev/raw/raw9
[root@HeiLJUC01 ~]# /oracle/app/11gR1/crs/bin/ocrcheck
\Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 3142964
Used space (kbytes) : 8232
Available space (kbytes) : 3134732
ID : 1765612463
Device/File Name : /dev/raw/raw9
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw10
Device/File integrity check succeeded
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@HeiLJUC01 ~]#
添加Mirr ocr之後,就可以很方便的在線遷移OCR了。