归档误删除,RMAN备份失败

错误信息如下:

Starting backup at 16-AUG-14
current log archived
released channel: c1
released channel: c2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/16/2014 06:32:09
RMAN-06726: could not locate archivelog /archlog/SYMBOLS_archlog/SYM_dd11a559_15426_1_706284569.arc

RMAN> 

 

备份在进行容灾切换时在灾备端产生,没有COPY至生产端,导致备份时2个归档文件找不到,归档备份失败,之后的删除语句无法执行。

对归档进行crosscheck即可,标记为无效。

 

run
{
 allocate channel c1 device type disk maxpiecesize=4096M connect sys/pwd@SYMBOLS2;
 allocate channel c2 device type disk maxpiecesize=4096M connect sys/pwd@SYMBOLS1;
 crosscheck archivelog all;
 release channel c1;
 release channel c2;
}

 

 

再次执行全备及删除策略即可。

 

不建议在备份脚本中增加crosscheck archivelog all;,如果出现归档被误删,则可能无法及时发现归档丢失的问题。

 



你可能感兴趣的:(Oracle数据库)