前几天由于服务器用于备份数据的RAID出现问题,我临时把log_archive_dest指向另一个地方(另一个磁盘陈列),但由于空间有限,我就把ERP EBS11I数据库生成的归档手工删除了(一般情况都是在RMAN中操作的),后来执行RMAN备份时总是提示RMAN-06089错误(指出某个归档文件找不到).
分析:
物理文件在磁盘上删除,但逻辑关系(controlfile和catalog)中并没有删除
操作:
$rman catalog rman/rman target
RMAN>allocate channel for maintenance type disk;
RMAN>change archivelog all crosscheck;
The first command will allocate a special channel used when we have to do maintenance
operations between the recovey catalog and the control file in the target database.
This time we are going to remove information in the recovery catalog that doesn't
exist in disk. This task is done for the second command. In other words, the entry
in the catalog will be removed, because the file doesn't exist in disk and the
entry in the control file will be removed also. Finally, the recovery catalog
and the control file will be concistent.
==========================================
select sl.NAME,sl.SEQUENCE#, sl.ARCHIVED,sl.DELETED ,sl.COMPLETION_TIME
from v$archived_log sl
在没有执行上面命令前,sl.DELETED对应值是NO(实际文件已删除,应该是YES),执行命令后,则sl.DELETED对应值修改成YES.
==========================================
Referrences:112829.1
阅读(2349) | 评论(0) | 转发(0) |