遷移11g OCR和VOTE DISK

遷移前確定所有磁盤組在各個節點都已經mount

1、OCR遷移

必須使用root用戶,否則報錯

進入/u01/app/11.2.0/grid/bin目錄

檢查目前ocr配置

./ocrconfig -add +CRS   --添加磁盤組到ocr配置,成功時無提示

./ocrcheck  --檢查添加結果


./ocrconfig -replace +DATA -replacement +CRS   --替換磁盤組


./ocrconfig -delete +DATA

./ocrcheck  --檢查刪除結果

2、VOTE DISK遷移

查詢表決磁盤位置

crsctl query css votedisk


crsctl replace votedisk +CRS --遷移命令

3、常見問題:

1、添加CRS到ocrconfig時報錯

PROT-30: The Oracle Cluster Registry location to be added is not usable
PROC-50: The Oracle Cluster Registry location to be added is inaccessible on nodes node2.

solution:檢查磁盤組名稱,掛在狀態是否正確

2、添加CRS到ocrconfig時報錯

PROT-30: The Oracle Cluster Registry location to be added is not usable
PROC-8: Cannot perform cluster registry operation because one of the parameters is invalid.
ORA-15056: additional error message
ORA-17502: ksfdcre:4 Failed to create file +CRS.255.1
ORA-15221: ASM operation requires compatible.asm of 11.1.0.0.0 or higher
ORA-06512: at line 4

使用的asm磁盤組的兼容性屬性的版本太舊

SELECT group_number, name, compatibility, database_compatibility FROM v$asm_diskgroup;

GROUP_NUMBER NAME COMPATIBILITYDATABASE_COMPAT
------------ -------------------------------------------------- --------------- ---------------
  1 DATA 11.2.0.0.0 10.1.0.0.0
  2 DATAVOTE 10.1.0.0.0 10.1.0.0.0
  3 DATAOCR 10.1.0.0.0 10.1.0.0.0

最低要求是11.1.0.0.0

solution:

ALTER DISKGROUP CRS SET ATTRIBUTE 'compatible.asm' = '11.2';

ALTER DISKGROUP CRS SET ATTRIBUTE 'compatible.rdbms' = '10.1';

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章