記錄一次ORA-01200完美恢復---惜分飛

聯繫:手機/微信(+86 17813235971) QQ(107644445)QQ諮詢惜分飛

標題:記錄一次ORA-01200完美恢復

作者:惜分飛©版權所有[未經本人同意,不得以任何形式轉載,否則有進一步追究法律責任的權利.]

客戶虛擬化平臺斷電,導致oracle其數據庫啓動ORA-01200錯誤

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/oradata/orcl/system01.dbf'
ORA-01200: actual file size of 1122560 is smaller than correct size of 1131520 blocks

對應的alert日誌如下

Thu Jan 11 11:36:48 2024
ALTER DATABASE   MOUNT
Successful mount of redo thread 1, with mount id 1685778896
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE   MOUNT
Thu Jan 11 11:36:52 2024
ALTER DATABASE OPEN
Read of datafile '/oradata/orcl/system01.dbf' (fno 1) header failed with ORA-01200
Rereading datafile 1 header failed with ORA-01200
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_10847.trc:
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/oradata/orcl/system01.dbf'
ORA-01200: actual file size of 1122560 is smaller than correct size of 1131520 blocks
ORA-1122 signalled during: ALTER DATABASE OPEN...
Thu Jan 11 11:36:53 2024
Checker run found 1 new persistent data failures
Thu Jan 11 11:41:55 2024
alter database open
Read of datafile '/oradata/orcl/system01.dbf' (fno 1) header failed with ORA-01200
Rereading datafile 1 header failed with ORA-01200
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_12550.trc:
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/oradata/orcl/system01.dbf'
ORA-01200: actual file size of 1122560 is smaller than correct size of 1131520 blocks
ORA-1122 signalled during: alter database open...

報錯比較明顯system01.dbf文件本來大小應該爲1131521個block,但是實際上只有1122561個block,因此無法正常啓動,通過修改數據文件欺騙數據庫
20240112123849


然後對異常的system文件進行處理,把人工構造的部分除掉

 

SQL> alter database datafile 1 resize 8770M;
 
Database altered.

rman檢測system文件正常
20240112124307


數據庫恢復完成,數據完美恢復(0丟失,不用邏輯遷移),該庫可以繼續使用,以前有過類似case:
bbed處理ORA-01200故障
ORA-01122 ORA-01200故障處理
ORA-1200/ORA-1207數據庫恢復

 

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