oracle DG RMAN 删除归档报:RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process

delete noprompt expired archivelog all;

delete noprompt archivelog until time 'sysdate-2';

RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33658_950811270.arc thread=1 sequence=33658
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33659_950811270.arc thread=1 sequence=33659
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33660_950811270.arc thread=1 sequence=33660
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33661_950811270.arc thread=1 sequence=33661
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33662_950811270.arc thread=1 sequence=33662
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33663_950811270.arc thread=1 sequence=33663
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33664_950811270.arc thread=1 sequence=33664
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33665_950811270.arc thread=1 sequence=33665
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33666_950811270.arc thread=1 sequence=33666
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33667_950811270.arc thread=1 sequence=33667
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33668_950811270.arc thread=1 sequence=33668
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/salesdb_1_33669_950811270.arc thread=1 sequence=33669

---解决---

RMAN> delete noprompt force archivelog all completed before 'sysdate-2';

 

 

---说明---

此为11g的bug,需要在delete后加上force关键字,metalink上有记载 RMAN-08137 When deleting archivelogs even when Streams CAPTURE does not require them [ID 1079953.1]

In this Document   Symptoms   Changes   Cause   Solution   References

Symptoms Applies To: 11gR1-11gR2

RMAN is unable to delete archive logs from database even though they are not needed by CAPTURE process anymore.

Changes  

Cause In 11g, RMAN looks at MIN_REQUIRED_CAPTURE_CHANGE# in v$database and not at DBA_CAPTURE. By default this value is updated every 6 hours. So by default the value in v$database will be six hours behind the current value.

Solution Since changing frequency of update to MIN_REQUIRED_CAPTURE_CHANGE# in v$database can not be controlled, following workaround can be used:

Archive log which are not needed by capture process can be deleted using:

delete noprompt force archivelog all completed before 'sysdate-10/1440';

PS:我们的环境是12C DG,该BUG在11g中有明确标识,12C就此MARK一下;

 

posted @   钱若梨花落  阅读(678)  评论(0编辑  收藏  举报
(评论功能已被禁用)
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示