RMAN备份日志中出现了警告
日志文件目录如下:
[root@erpdbs rmanback]# ll
total 88 -rw-r--r-- 1 oraprod dba 81011 Sep 7 22:52 rmanback.log -rwxr--r-- 1 oraprod dba 2581 Jun 24 2011 rmanback.sh [root@erpdbs rmanback]# pwd /data/scripts_db/rmanback [root@erpdbs rmanback]#查看日志错误内容如下:
RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status RMAN-06210: List of Mismatched objects RMAN-06211: ========================== RMAN-06212: Object Type Filename/Handle RMAN-06213: --------------- --------------------------------------------------- RMAN-06214: Archivelog /data/arch/PROD1/PROD_1_98560_578692516.arc日志已经提示处理方法了,使用crosscheck命令修复archivelog状态
执行方法如下:
RMAN> crosscheck archivelog /data/arch/PROD1/PROD_1_98560_578692516.arc;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'EXPIRED'
Archivelog handle /data/arch/PROD1/PROD_1_98560_578692516.arc recid=1612 stamp=662688078
Crosschecked 1 objects
RMAN> delete backupset 1612;
using channel ORA_DISK_1
List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
------- ------- --- --- ----------- ----------- ----------
1612 1612 1 1 EXPIRED DISK /data/arch/PROD1/PROD_1_98560_578692516.arc
Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=/ /data/arch/PROD1/PROD_1_98560_578692516.arc recid=1612 stamp=662688078
Deleted 1 objects
参考资料: