RMAN-06207

来源:互联网 发布:js上传文件 编辑:程序博客网 时间:2024/06/04 19:29

今天在做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   /data/backup/control01.ctl

发现crosscheck发现不了该文件

使用 CROSSCHECK CONTROLFILECOPY 语句执行一次

[oracle@rac1 ~]$ rman target /Recovery Manager: Release 11.2.0.3.0 - Production on Thu May 24 11:53:51 2012Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.connected to target database: (DBID=295796415)RMAN> CROSSCHECK CONTROLFILECOPY '/data/backup/control01.ctl';using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=1257 instance=ikangrac1 device type=DISKvalidation failed for control file copycontrol file copy file name=/data/backup/control01.ctl RECID=2 STAMP=780394881Crosschecked 1 objectsRMAN> delete obsolete;RMAN retention policy will be applied to the commandRMAN retention policy is set to recovery window of 7 daysusing channel ORA_DISK_1Deleting the following obsolete backups and copies:Type                 Key    Completion Time    Filename/Handle-------------------- ------ ------------------ --------------------Control File Copy     2      12-APR-12          /data/backup/control01.ctlDo you really want to delete the above objects (enter YES or NO)? yesdeleted control file copycontrol file copy file name=/data/backup/control01.ctl RECID=2 STAMP=780394881Deleted 1 objectsRMAN> exit

搞定。