在使用rman備份的時候最後出現一個這樣的錯誤:
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: Datafile Copy /home1/oracle/backup/sh/control2.ctl
然後去該目錄下查看該文件發現已經被刪除了,那肯定是在os上刪除的而不是使用rman來刪除的。
RMAN> crosscheck backupset;
使用該命令沒有發現該文件,對於datafile copy方式不應該使用backupset方式來檢查,而應該使用copy方式來檢查;
RMAN> report obsolete;
using target database control file instead of recovery catalog
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Control File Copy 788 25-MAY-12 /home1/oracle/backup/sh/control2.ctl
RMAN> crosscheck copy;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=294 devtype=DISK
validation failed for control file copy
control file copy filename=/home1/oracle/backup/sh/control2.ctl recid=788 stamp=784174651
validation succeeded for archived log
archive log filename=/home1/oracle/oradata/newadm/arch/1_5697_619181136.dbf recid=5697 stamp=784469138
Crosschecked 2 objects
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Control File Copy 788 25-MAY-12 /home1/oracle/backup/sh/control2.ctl
Do you really want to delete the above objects (enter YES or NO)? yes
deleted control file copy
control file copy filename=/home1/oracle/backup/sh/control2.ctl recid=788 stamp=784174651
Deleted 1 objects
RMAN>
RMAN-06214: Datafile Copy
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.