Symptoms
客戶報告說RMAN備份出錯,錯誤如下:
archived log /backup/archivelog/hmes/1_115593_826386472.dbf not found or out of sync with catalog
trying alternate file for archived log of thread 1 with sequence 115593
released channel: ch1
released channel: ch2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 06/24/2014 01:00:21
RMAN-06059: expected archived log not found, loss of archived log compromises recoverability
ORA-19625: error identifying file /backup/archivelog/hmes/1_115593_826386472.dbf
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
Recovery Manager complete.
Cause
客戶由於/backup目錄空間快要滿了,手動刪除了歸檔日誌,之後嘗試做0級備份的時候出錯。
這是由於手動刪除了歸檔日誌,但是controlfile中沒有記錄,需要同步controlfile
Solution
運行如下命令:
RMAN > change archivelog all crosscheck;
上述命令完成後,重新運行0級備份腳本。