爱数备份备份日志有警告:rman-08137:warning:archived log not deleted

原因:

1.配置有adg,可能某个dg库存在问题需检查

2.配置有ogg,存在异常。

3.配置了stream流复制,存在异常

参考处理:

检查:

select CAPTURE_NAME, STARTUP_TIME, STATE from v$streams_capture;
select CAPTURE_NAME, CAPTURE_TYPE, STATUS from DBA_CAPTURE;
select count(*) "Downstream STANDBY logs" from  V$STANDBY_LOG;

禁用掉ogg进程:

exec dbms_capture_adm.drop_capture(capture_name =>'OGG$CAP_EXT1');

RMAN-08137: WARNING: archived log not deleted as it is still needed archived log file

This format of the RMAN warning occurs when V$ARCHIVED_LOG.APPLIED is "NO" for the Archived Redo log being deleted.
If Oracle Streams Replication Downstream Capture is being used, and the V$ARCHIVED_LOG.APPLIED column for a particular log is NO, then the reason is likely to be that the Downstream Capture processing has not taken place for that log.
If the Downstream Capture processing has taken place, but V$ARCHIVED_LOG.APPLIED is "NO", then please log a Service Request with Support.

Diagnostic Queries when the archived log is still needed

NOTE: Typically, these queries are for the DOWNSTREAM database

/* Archived Redo Log Applied status */
select THREAD#, SEQUENCE#, APPLIED from V$ARCHIVED_LOG order by THREAD#, SEQUENCE#;

/* Running Captures */
select CAPTURE_NAME, STARTUP_TIME, STATE from v$streams_capture;

/* Created Capture Processes */
select CAPTURE_NAME, CAPTURE_TYPE, STATUS from DBA_CAPTURE;

/* Any Downstream Capture STANDBY logs? */
select count(*) "Downstream STANDBY logs" from  V$STANDBY_LOG;

Solutions

It may be a database administration issue;
   Note 374421.1 - Rman-08137: Warning: Archive Log Not Deleted As It Is Still Needed Rman-08137

OR

It could be one of these known issues, with a possible work-around;
  Note 1560585.1 - Archives Logs Are Getting Deleted From Primary DB Before Getting Shipped To Standby Site, Bug 16692232 - fixed 12.2, 12.1, Workaround: Remove not backuped clause
  Note 964522.1 - Archive Log not Getting Deleted Using Rman With Rman-08137, Bug 8367313 - fixed 11.2, Workaround: Use "force" on the delete of archive log
  Note 7497251.8 - Bug 7497251 - RMAN-8137 deleting archive logs running Streams/CDC
    Workaround:
    Disable corresponding Streams/CDC capture log_archive_dest_state_n.
    RMAN> delete/report obsolete;
    Re-enable corresponding CDC capture log_archive_dest_state_n.

RMAN-08137 when Deleting Archivelog Files (Doc ID 373066.1)

Logo

中国智能体开发者社区,聚焦智能体与大模型开发,提供前沿资讯、实用工具链、开源项目及行业案例。通过技术沙龙、开发者大赛等活动,促进经验交流与协作,助力开发者快速构建创新智能应用。

更多推荐