===========================================================
作者: lihuiitpub(http://lihuiitpub.itpub.net)
发表于: 2008.11.26 16:04
分类: oracle这个领域
出处: http://lihuiitpub.itpub.net/post/38323/474482
---------------------------------------------------------------
rman中delete archivelog until time 'sysdate-5';失败
问题:
rman中delete archivelog until time 'sysdate-5';失败rac归档模式,两个节点分别是node3 node4。
因为归档文件在node4上占满了本地盘100%。
所以执行下面:
[oracle@node3 bdump]$ $ORACLE_HOME/bin/rman target /
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
RMAN> delete archivelog until time 'sysdate-5';
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=136 instance=rac2 devtype=DISK
List of Archived Log Copies
Key Thrd Seq S Low Time Name
------- ---- ------- - ------------------- ----
351 1 69 A 2008-10-22 23:00:22 /soft/archivelog/ARC691668101065.arc
352 1 70 A 2008-10-23 16:49:44 /soft/archivelog/ARC701668101065.arc
358 1 71 A 2008-10-23 16:50:03 /soft/archivelog/ARC711668101065.arc
350 2 69 X 2008-10-23 14:00:26 /soft/archivelog/ARC692668101065.arc
353 2 70 X 2008-10-23 16:49:43 /soft/archivelog/ARC702668101065.arc
355 2 71 X 2008-10-23 16:50:04 /soft/archivelog/ARC712668101065.arc
Do you really want to delete the above objects (enter YES or NO)? YES
。。。。。。
奇怪的是,node3上的文档ARC691668101065.arc、ARC701668101065.arc、ARC711668101065.arc已经删除了,node4上的ARC692668101065.arc还在目录下???
难道与status有关系,这些的status是x(应该代表expired archivelog吧?)
可是我执行delete force expired archivelog "/soft/archivelog/ARC1812668101065.arc";还是删不掉!
请高人指点。
最后解决:
经大民同学提示,发现Node4上的没有删掉是因为其归档属于thread#=2,是属于rac的第二个实例的。rman内找不到磁盘上的归档文件,是因为control file里面已经没有了这个归档信息。原因是以前管理归档没有链接所有的库rac1 rac2,链接control file删除,只能成功删除本地的归档,但是所有归档元信息都已经从control file删除。
正确删除rac归档的方法是:
Rman > run
{
allocate channel c1 device type disk format '/soft/backup/%U' connect sys/manager@rac1;
allocate channel c2 device type disk format '/soft/backup/%U' connect sys/manager@rac2;
delete noprompt archivelog;
}