最近在還原資料庫時居然發生此問題
百思不得其解
正常的RMAN recover 只會需要 Backup window期間所有的archive log 才對
直到看到這篇文章提到了...
RMAN was requesting archived logs that were generated almost a week back
某位路人說 The controlfile is may be older and datafiles are newer
是跟我類似的情境耶, 忽然恍然大悟...
原來rman script 中的channel 1 是做bkset 備份 , 做八個小時.
channel 2 是做bkset , archive log 備份, 而channel 2 做了將近三天
如此則會導致還原時~ 遇到的問題一再發生...
下次如果要還原時確定一下control file的時間到底為幾號備的
或是使用以下方法
SQL>
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL TIME 'YYYY-MM-DD:HH24:MI:SS';
以上的效果為:
When Oracle starts recovery, it looks at the datafiles to know the last time a checkpoint was performed on the datafile. Oracle now knows to start applying recovery to the datafile for all SCNs after the SCN in the datafile header
沒有留言:
張貼留言