文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

DG环境RMAN删除归档报错RMAN-08137: archived log not deleted

2024-04-02 19:55

关注

Oracle 12C DG环境,备库归档目录告警,查看crontab脚本,发现有删除操作,保持两天的,后手动执行,查看具体报错原因;

RMAN> delete noprompt expired archivelog all;

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=5408 device type=DISK
specification does not match any archived log in the repository

RMAN> delete noprompt archivelog until time 'sysdate-2';

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=5408 device type=DISK
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_948_973216253.dbf thread=1 sequence=948
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_949_973216253.dbf thread=1 sequence=949
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_950_973216253.dbf thread=1 sequence=950
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_951_973216253.dbf thread=1 sequence=951
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_952_973216253.dbf thread=1 sequence=952
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process

---解决---

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

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=5408 device type=DISK
List of Archived Log Copies for database with db_unique_name FCDSTDYDB

Key Thrd Seq S Low Time


935 1 948 A 2018:06:05 02:23:34
Name: /u01/arch/fcdstdydb1_948_973216253.dbf

936 1 949 A 2018:06:05 02:28:52
Name: /u01/arch/fcdstdydb1_949_973216253.dbf

937 1 950 A 2018:06:05 02:32:32

---说明---

此为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一下;

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     807人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     351人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     314人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     433人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     221人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-数据库
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯