Oracle升級導致ocr檔案損壞一例
所以說對於生產庫,備份重要啊。。。
[@more@]備用的叢集rac發生意外當機,一邊查硬體原因一邊查oracle這邊的問題。發現資料庫是10.2.0.3但是crs是10.2.0.1,雖然不能斷定是這個原因,但是排除法嘛,先試試看咯,結果試了一身冷汗。。。
過程一路順利,啟動crs,所有節點服務也正常起來了,但是遲遲看不到資料庫起來,crs_stat檢查發現所有的例項和service都沒起來。手工是用sqlplus 啟動正常,資料庫也可以開啟。但是使用srvctl啟動就報下面的錯誤:
[oracle@bj15-75 ~]$ srvctl start database -d membj
PRKP-1001 : Error starting instance membj1 on node bj15-74
CRS-0212: Resource 'ora.membj.membj1.inst' is not registered.
PRKP-1001 : Error starting instance membj2 on node bj15-75
CRS-0212: Resource 'ora.membj.membj2.inst' is not registered.
PRKP-1001 : Error starting instance membj3 on node bj15-77
CRS-0212: Resource 'ora.membj.membj3.inst' is not registered.
crs_stat的輸出明明顯示有這些資源阿。。。。心裡一緊,馬上查了下metalink,發現了一個說法:
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.3
This problem can occur on any platform.
Symptoms
The database and/or instances is not starting up using the srvctl command, reporting the following errors when invoked, ex:
PRKP-1001: Error starting instance inslo1 on node rias-ins-dba01
CRS-0212: Resource 'ora.inslo.inslo1.inst' is not registered.
The errors seems like the that the clusterware does not know about the resource, because it is not registered in the OCR.
Cause
Issue is caused due to the corruption of the database and/or instances entries corruption in the OCR.
The following output shows that the resource is not registered in the clusterware, but at the same time the CRS can get its status using the crs_stat command, so it is discouraging any updating, starting or stopping for this resource.
PRKP-1001: Error starting instance inslo1 on node rias-ins-dba01
CRS-0212: Resource 'ora.inslo.inslo1.inst' is not registered.
Solution
Because the of the corruption of this resource entry in the OCR you can simply remove the the resource with all of its corrupted information from the OCR using the "srvctl remove" command for this resource, then proceed with adding the resource again which is going to make it work back again.
1. Removing the resource:
srvctl remove database -d
2. Add the resources again:
srvctl add database -d
srvctl add instance -d
說我的ocr升級升壞了?那就先恢復ocr咯,於是用ocrconfig恢復了最近升級前的ocr備份,也就是這個有問題的備份導致我走了很多彎路,還原後的ocr檔案還是出現了上面的問題,致使我認為備份都出了問題。
看來只好試試看文件中的辦法了。但是執行完srvctl remove database後,仍然發現crs_stat中還是有原來的資料db資源。嘗試新增新的db資源失敗,報已經存在,看來ocr壞的比較嚴重了,沒法透過常規刪除資訊了。只能試試看dd ocr檔案出來修改。但是條目太多,上次被我僥倖修改成功了,這次卻總是失敗。於是想辦法刪除例項服務試試看,前2個節點都成功了,到最後一個報錯:
[oracle@bj15-74 ~]$ srvctl remove instance -i membj1 -d membj
Remove instance membj1 from the database membj? (y/[n]) y
PRKP-1075 : Instance membj1 is the last preferred instance for service membjapp.
嘗試刪除服務:
[oracle@bj15-74 ~]$ srvctl remove service -s membjapp -d membj
service membjapp is running
還是失敗- -,可是這個服務明明沒有起來麼。。。。
沒辦法了,最後只能想還原上個禮拜的ocr備份碰碰運氣了。不行只能重灌crs了。。。。。
還原後,我嘗試先刪除前2個節點的例項和服務,然後重新註冊了這2個節點的服務,之後再去刪除第三個節點的例項,居然成功了,之後使用dbca重新配置了下service,居然成功了!
看來除了ocr的備份的問題,ocr資訊的寫入使用srvctl始終還是不如dbca好啊,已經第二次遇上資訊清除不掉了。。。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/79686/viewspace-1018846/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 磁碟損壞導致資料檔案丟失的恢復
- 資料庫檔案壞塊損壞導致開啟時報錯的恢復方法資料庫
- oracle10g rac 表決盤損壞、ocr損壞處理Oracle
- 一次意外斷電導致mysql檔案損壞,啟動異常MySql
- Oracle 控制檔案損壞解決方案Oracle
- undo 檔案損壞
- 記錄一次 HotPE 導致的檔案系統損壞及修復
- 故障分析 | MySQL 備份檔案靜默損壞一例分析MySql
- 陣列櫃故障造成控制檔案損壞,資料檔案損壞陣列
- 記一次Oracle RAC for aix 儲存雙控鎖盤導致ASM控制檔案損壞恢復OracleAIASM
- 【DB2學習】由於TSM損壞導致歸檔失敗DB2
- win10引導記錄損壞怎麼辦 win10引導二進位制檔案損壞Win10
- 一個控制檔案損壞
- MySQL 磁碟空間滿導致表空間相關資料檔案損壞故障處理MySql
- oracle crs voting disk損壞一例(asm+rac)OracleASM
- Oracle不同檔案丟失/損壞的恢復方法Oracle
- ORACLE一體機pcie 快取卡損壞導致資料庫dang機Oracle快取資料庫
- mysql啟動後隨即關閉問題解決(ibdata1檔案損壞導致)MySql
- OEL 11.2.0.2 RAC 資料庫停電導致has程式無法啟動OLR檔案損壞資料庫
- undo檔案丟失或損壞
- 資料檔案損壞、丟失
- Oracle資料檔案損壞恢復例項二則Oracle
- ASM 仲裁盤OCR DG損壞,重建步驟ASM
- Oracle Database 12c RAC損壞ocr和votedisk恢復實驗OracleDatabase
- Oracle database 11g rac損壞ocr和votedisk恢復實驗OracleDatabase
- Oracle REDO損壞Oracle Redo
- 重做日誌檔案損壞測試
- RMAN學習-資料檔案損壞
- 損壞控制檔案的恢復方法
- SQL Server ldf 檔案損壞恢復SQLServer
- 控制檔案損壞重建實驗(上)
- 控制檔案損壞重建實驗(下)
- UNDO表空間損壞導致資料庫無法OPEN資料庫
- Oracle 無備份情況下undo檔案損壞處理Oracle
- 【恢復】使用控制檔案的trace備份恢復因異常斷電導致所有控制檔案損壞的資料庫故障資料庫
- 【OCR】Oracle CRS 10.2.0.1版本Bug導致映象OCR時報PROT-22錯誤Oracle
- system資料檔案頭損壞修復
- 聯機日誌檔案損壞問題