1、在给客户系统巡检时通过rman维护日志发现有rman维护日志报错:
rman-06207: warning: 3 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 d:\oradata\system01.dbf
rman-06214: datafile copy d:\app\administrator\product\11.2.0\dbhome_1\database\sncfdb.ora
rman-06214: datafile copy /u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_db1.f
2、进入rman视图模式,进行交叉校验备份信息,未发现异常,如下:
[root@db1 rman]# su - oracle [oracle@db1 ~]$ rman target / recovery manager: release 11.2.0.4.0 - production on tue nov 1 13:38:38 2022 copyright (c) 1982, 2011, oracle and/or its affiliates. all rights reserved. cconnected to target database: hisdb (dbid=1732211111) rman> crosscheck backup; backup piece handle=/dbbak/rman/ctl_db_20221031_16719_1 recid=14479 stamp=1119556333 crosschecked backup piece: found to be 'available' backup piece handle=/dbbak/rman/db_ag1bm4nl_1_1.spfile recid=14480 stamp=1119556334 crosschecked 2 objects
3、根据提示路径发现系统近期是从windows环境迁移至linux环境的,在迁移之前没有对控制文件记录的信息进行维护导致,通过crosscheck copy命令进行校验检查,发现存在检查失败的内容,如下:
rman> crosscheck copy; validation failed for datafile copy datafile copy file name=d:\oradata\system01.dbf recid=1 stamp=1108073097 validation failed for control file copy control file copy file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_db1.f recid=18 stamp=1108406674 validation failed for control file copy control file copy file name=d:\app\administrator\product\11.2.0\dbhome_1\database\sncfdb.ora recid=10 stamp=1108209845 crosschecked 3 objects
4、使用report obsolete命令报告过时的对象,如下:
rman> report obsolete; 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 -------------------- ------ ------------------ -------------------- datafile copy 1 22-jun-2022 22:04:57 d:\oradata\system01.dbf control file copy 10 24-jun-2022 12:04:05 d:\app\administrator\product\11.2.0\dbhome_1\database\sncfdb.ora control file copy 18 26-jun-2022 18:44:34 /u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_hisdb1.f
5、使用delete obsolete命令删除存在问题的对象,如下:
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 using channel ora_disk_2 using channel ora_disk_3 using channel ora_disk_4 deleting the following obsolete backups and copies: type key completion time filename/handle -------------------- ------ ------------------ -------------------- datafile copy 1 22-jun-2022 22:04:57 d:\oradata\system01.dbf control file copy 10 24-jun-2022 12:04:05 d:\app\administrator\product\11.2.0\dbhome_1\database\sncfdb.ora control file copy 18 26-jun-2022 18:44:34 /u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_db1.f do you really want to delete the above objects (enter yes or no)? yes deleted datafile copy datafile copy file name=d:\oradata\system01.dbf recid=1 stamp=1108073097 deleted control file copy control file copy file name=d:\app\administrator\product\11.2.0\dbhome_1\database\sncfdb.ora recid=10 stamp=1108209845
6、至此,rman在维护数据库的时候不在出现rman-06207&rman-06214报错。
总结
到此这篇关于oracle故障处理rman-06207&rman-06214的文章就介绍到这了,更多相关oracle rman-06207&rman-06214内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!