博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RMAN 备份报错 RMAN-06207 RMAN-06208 解决方法
阅读量:4212 次
发布时间:2019-05-26

本文共 3199 字,大约阅读时间需要 10 分钟。

 

新搭建的环境,还没上线,今天在部署脚本,RMAN 备份中有一个警告,内容如下:

 

RMAN-06207: WARNING: 1 objects could not bedeleted 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   /u01/control01.ctl

 

      这个文件是DG的一个控制文件,环境弄好之后,就把这个文件在OS 级别rm 掉了。结果备份就报这个错误。

 

RMAN> report obsolete;

 

RMAN retention policy will be applied tothe command

RMAN retention policy is set to redundancy 1

Report of obsolete backups and copies

Type                 Key    Completion Time    Filename/Handle

-------------------- ------------------------ --------------------

Control File Copy     1     20-OCT-11         /u01/control01.ctl

 

RMAN> delete noprompt obsolete;

 

RMAN retention policy will be applied tothe command

RMAN retention policy is set to redundancy1

using channel ORA_DISK_1

Deleting the following obsolete backups andcopies:

Type                 Key    Completion Time    Filename/Handle

-------------------- ------------------------ --------------------

Control File Copy     1     20-OCT-11         /u01/control01.ctl

 

RMAN-06207: WARNING: 1 objects could not bedeleted 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   /u01/control01.ctl

 

 

解决方法:

 

RMAN> crosscheck copy;

 

released channel: ORA_DISK_1

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=1070 devtype=DISK

validation failed for control file copy

control file copyfilename=/u01/control01.ctl recid=1 stamp=765039758

validation succeeded for archived log

archive logfilename=/u01/archive/1_23_765024159.arc recid=44 stamp=765127875

validation succeeded for archived log

archive logfilename=/u01/archive/1_24_765024159.arc recid=45 stamp=765127875

Crosschecked 3 objects

 

 

RMAN> delete obsolete;

 

RMAN retention policy will be applied tothe command

RMAN retention policy is set to redundancy1

using channel ORA_DISK_1

Deleting the following obsolete backups andcopies:

Type                 Key    Completion Time    Filename/Handle

-------------------- ------------------------ --------------------

Control File Copy     1     20-OCT-11         /u01/control01.ctl

 

Do you really want to delete the aboveobjects (enter YES or NO)? y

deleted control file copy

control file copyfilename=/u01/control01.ctl recid=1 stamp=765039758

Deleted 1 objects

 

 

RMAN> report obsolete;

 

RMAN retention policy will be applied tothe command

RMAN retention policy is set to redundancy1

no obsolete backups found

 

 

在备份就ok了.

 

 

 

 

-------------------------------------------------------------------------------------------------------

版权所有. 文章允许转载, 但必须以链接方式注明源地址,否则追究法律责任.

QQ:492913789

Email:ahdba@qq.com

Blog:  

Weibo:   

Twitter: 

Facebook:

Linkedin:

DBA1 群:62697716(满);   DBA2 群:62697977(满)  DBA3 群:62697850(满)  

DBA 超级群:63306533(满);  DBA4 群:83829929(满) DBA5群: 142216823(满) 

DBA6 群:158654907(满)   DBA7 群:69087192(满)  DBA8 群:172855474

DBA 超级群2:151508914  DBA9群:102954821     聊天 群:40132017(满)

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

 

你可能感兴趣的文章
安装.Net Framework 4.7.2时出现“不受信任提供程序信任的根证书中终止”的解决方法
查看>>
input type=“button“与input type=“submit“的区别
查看>>
解决Github代码下载慢问题!
查看>>
1.idea中Maven创建项目及2.对idea中生命周期的理解3.pom文件夹下groupId、artifactId含义
查看>>
LeetCode-栈|双指针-42. 接雨水
查看>>
stdin,stdout,stderr详解
查看>>
Linux文件和设备编程
查看>>
文件描述符
查看>>
终端驱动程序:几个简单例子
查看>>
登录linux密码验证很慢的解决办法
查看>>
fcntl函数总结
查看>>
HTML条件注释
查看>>
内核态与用户态
查看>>
使用mingw(fedora)移植virt-viewer
查看>>
趣链 BitXHub跨链平台 (4)跨链网关“初介绍”
查看>>
C++ 字符串string操作
查看>>
MySQL必知必会 -- 了解SQL和MySQL
查看>>
MySQL必知必会 -- 使用MySQL
查看>>
MySQL必知必会 -- 数据检索
查看>>
MySQL必知必会 -- 排序检索数据 ORDER BY
查看>>