Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1802248
  • 博文数量: 334
  • 博客积分: 11301
  • 博客等级: 上将
  • 技术积分: 3452
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-18 10:19
个人简介

路虽弥,不行不至;事虽少,不做不成。

文章分类

全部博文(334)

文章存档

2013年(4)

2012年(19)

2011年(27)

2010年(71)

2009年(45)

2008年(15)

2007年(84)

2006年(69)

分类: Oracle

2007-08-24 12:34:39

   前几天由于服务器用于备份数据的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
阅读(2314) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~