Chinaunix首页 | 论坛 | 博客
  • 博客访问: 232221
  • 博文数量: 61
  • 博客积分: 2482
  • 博客等级: 少校
  • 技术积分: 675
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-02 11:03
文章分类

全部博文(61)

文章存档

2012年(1)

2011年(1)

2010年(52)

2009年(7)

分类: Oracle

2010-01-07 09:30:02

在实现了dataguard的环境下,同时RMAN配置为nocatalog时,在primary上面创建standby controlefile会记录在controlfile中; 在RMAN delete obsolete时,该文件并不能被删除,而是显示:
RMAN-06207: WARNING: 1 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   /u01/oradata/standby.ctl
 
此时需要手工删除该文件,步骤如下:
首先在OS中删除该文件,然后更新RMAN库,也就是controlefile
RMAN> list copy of controlfile;

List of Control File Copies
Key     S Completion Time Ckp SCN    Ckp Time        Name
------- - --------------- ---------- --------------- ----
1       A 25-NOV-09       258805     25-NOV-09       /u01/oradata/standby.ctl
RMAN> crosscheck copy of controlfile;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=120 devtype=DISK
validation failed for control file copy
control file copy filename=/u01/oradata/standby.ctl recid=1 stamp=703855797
Crosschecked 1 objects
RMAN> delete copy of controlfile ;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=120 devtype=DISK
List of Control File Copies
Key     S Completion Time Ckp SCN    Ckp Time        Name
------- - --------------- ---------- --------------- ----
1       X 25-NOV-09       258805     25-NOV-09       /u01/oradata/standby.ctl
Do you really want to delete the above objects (enter YES or NO)? YES
deleted control file copy
control file copy filename=/u01/oradata/standby.ctl recid=1 stamp=703855797
Deleted 1 objects
RMAN> list copy of controlfile;
 
 
oracle 10g ,redhat as 4.5
 
阅读(2470) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~