重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2634|回复: 0
打印 上一主题 下一主题

[范例] 使用了OGG后,无法删除归档日志,即使停了OGG,删除报 :RMAN-08137

[复制链接]
跳转到指定楼层
楼主
发表于 2020-6-2 19:40:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 郑全 于 2020-6-2 19:43 编辑

RMAN-08137: WARNING: Archived Log Not Deleted, Needed For Standby Or Upstream Capture Proces (Doc ID 1993799.1)





Applies to:  Oracle GoldenGate - Version 11.2.1.0.20 and later
Information in this document applies to any platform.
No archive logs are being deleted by RMAN, they all return RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process.
Symptoms
No archive logs are being deleted by RMAN, they all return RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process.
This is causing the archive log file system to be filled up. Appears that one of the orphan Capture process is holding up archives.
Changes
Cause
One of the obsolete integrated extract was causing Rman to not to delete the archive logs.
Solution
As seen below obsolete EXTRACT1_NAME is showing REQ_SCN = 0.
SQL>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;

CAPTURE_NAME    CAPTURE_TYPE STATUS          REQ_SCN      OLDEST_SCN
--------------  ------------ -------        --------      ----------
OGG$CAP_EXTRACT-NAME LOCAL        ENABLED        64983227        64983227
OGG$CAP_EXTRACT1-NAME LOCAL        ENABLED               0               0

After unregistering as follows RMAN was able to delete the old archive logs:
UNREGISTER EXTRACT EXTRACT-NAME DATABASE


ggsci> dblogin userid ogg ,password ogg;
ggsci>
UNREGISTER EXTRACT extmed database;



之后,再去查看
select
REQUIRED_CHECKPOINT_SCN from v$database,为空 了 ,

之后 ,再使用RMAN去删除 归档 ,就可以了 。






分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-26 03:29 , Processed in 0.083645 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表