RMAN-03002, RMAN-06059, ORA-19625 and ORA-27037 When Running RMAN Backup of Archivelogs
2015-05-27 00:33 潇湘隐者 阅读(2845) 评论(0) 编辑 收藏 举报RMAN备份数据库时,出现下面错误错误信息:
Starting backup at 25-MAY-15
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=953 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 05/25/2015 02:00:03
RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
ORA-19625: error identifying file /u04/backup/archive/arch_1_40337_867612567.dbf
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
验证发现/u04/backup/archive/arch_1_40337_867612567.dbf归档日志文件不存在,由于这台新的服务器,刚刚使用RMAN冷备份还原过来的。旧归档日志并没有复制过来。RMAN备份采用Nocatalog方式,也就是用control file作为catalog,控制文件里面还有这些归档日志文件信息,RMAN备份时会去备份这些归档日志,而这些旧的归档日志又不存在了,所以就会出现这个错误。可以通过下面命令解决:
1: RMAN> crosscheck archivelog all; --检查控制文件和实际物理文件的差别。如果一些归档日志已经删除或丢失,那么设置它们为expired
2: RMAN> delete expired archivelog all; --同步控制文件的信息和实际物理文件的信息(it will delete expired archivelog and updates your controlfile)
手工删除归档日志或移动了归档日志也会出现这个错误,需要手工执行crosscheck过程后,RMAN备份才能正常进行。