RMAN-06207: WARNING: 286 objects could not be deleted for DISK channel(s)

ywxj_001發表於2017-11-27
RMAN備份報錯:
RMAN-06207: WARNING: 286 objects could not be deleted for DISK channel(s) due to mismatched status
RMAN> delete noprompt obsolete;
RMAN-06207: WARNING: 286 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備份的時候沒有找到想找的controlfile檔案。
crosscheck backup和crosscheck backupset找不到過期的copy的備份檔案。
RMAN> CROSSCHECK CONTROLFILECOPY;


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found ";": expecting one of: "tag, double-quoted-string, integer, single-quoted-string"
RMAN-01007: at line 1 column 27 file: standard input

可以找到過期的copy的備份檔案。
RMAN> crosscheck backup;          
using channel ORA_DISK_1
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/backup/scprd1/rman/Full_SCPRD_20171016_38104.bak RECID=38086 STAMP=957567614
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/backup/scprd1/rman/Full_SCPRD_20171016_38106.bak RECID=38088 STAMP=957569142
crosschecked backup piece: found to be 'EXPIRED'
RMAN> crosscheck backupset;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/backup/scprd1/rman/Full_SCPRD_20171016_38104.bak RECID=38086 STAMP=957567614
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/backup/scprd1/rman/Full_SCPRD_20171016_38106.bak RECID=38088 STAMP=957569142
crosschecked backup piece: found to be 'EXPIRED'
RMAN> delete noprompt obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 2
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type                 Key    Completion Time    Filename/Handle
-------------------- ------ ------------------ --------------------
Backup Set           38090  16-OCT-17         
  Backup Piece       38090  16-OCT-17          /backup/scprd1/rman/Full_SCPRD_20171016_38101.bak
Backup Set           38091  16-OCT-17         
  Backup Piece       38091  16-OCT-17          /backup/scprd1/rman/Full_SCPRD_20171016_38102.bak
。。。。。。
Backup Set           38558  20-OCT-17         
  Backup Piece       38558  20-OCT-17          /backup/scprd1/rman/Full_SCPRD_20171020_38578.bak
deleted backup piece
backup piece handle=/backup/scprd1/rman/Full_SCPRD_20171016_38101.bak RECID=38090 STAMP=957567614
deleted backup piece
backup piece handle=/backup/scprd1/rman/Full_SCPRD_20171016_38102.bak RECID=38091 STAMP=957567614
deleted backup piece
。。。。。。
deleted backup piece
backup piece handle=/backup/scprd1/rman/Full_SCPRD_20171020_38576.bak RECID=38559 STAMP=957913223
deleted backup piece
backup piece handle=/backup/scprd1/rman/Full_SCPRD_20171020_38578.bak RECID=38558 STAMP=957914789
Deleted 286 objects

刪除成功。







來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22996654/viewspace-2147828/,如需轉載,請註明出處,否則將追究法律責任。

相關文章