RMAN-08137: WARNING: Archived Log Not Deleted, Needed For Standby Or Upstream Capture Proces
巡检时发现某个生产库无法正常归档,查看归档目录用率高达100%,于是进行手动删除归档,在删除归档时提示
RMAN-08137: WARNING: Archived Log Not Deleted, Needed For Standby Or Upstream Capture Process
通过mos查询得知,在dba_capture视图中存在两条enable的记录。(文档ID1993799.1)
SELECT CAPTURE_NAME, CAPTURE_TYPE, STATUS, to_char(REQUIRED_CHECKPOINT_SCN,'999999999999999')as REQ_SCN ,to_char(OLDEST_SCN,'999999999999999')as OLDEST_SCN FROM DBA_CAPTURE;
解决办法:
正常情况只需将ogg相关进程停止,然后取消注册即可
stop e_bszj unregister extract e_bszj database
如停止后和取消注册后dba_capture的记录仍然不消失,用下面的步骤即可
#在停止和取消注册的前提下,执行以下命令 exec dbms_apply_adm.drop_apply('OGG$CAP_EXTRACT');
或者是使用强制删除方式
delete force noprompt archivelog until time "sysdate-1";