返回顶部
首页 > 资讯 > 数据库 >配置rman来自动删除应用过的归档日志
  • 944
分享到

配置rman来自动删除应用过的归档日志

2024-04-02 19:04:59 944人浏览 泡泡鱼
摘要

Configure Rman to Purge Application standby logs. Posted on   March 26, 2011   by

Configure Rman to Purge Application standby logs.

Posted on   March 26, 2011   by   Gary

Configure RMAN to purge arcHivelogs after Application on standby.

Applying to EE Version 10.2.0.1 – 11.2.0.1, and 10.2 to 11.2, We need RMAN to automatically purge archivelogs from the FRA once they are applied to the standby database.

With dataguard, and archives in the FRA, they will be purged if they have been applied on the standby and they are no longer required when there is space pressure on the FRA on the primary database.

Here’s the important part, before 11g, if not using archivelog destinations which are mandatory, then the database must be restarted after setting the following parameter:

1) prior to 11g, if not using mandatory archivelog destinations, the database (primary and standby) must be restarted with the following parameter:

sql> alter system set “_log_deletion_policy”=’ALL’ scope=spfile;

Then we can configure the parameter as nORMal.

2) configure the following parameter in RMAN on both the primary and standby databases:

RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;

3) the archivelog must have been applied to the standby

4) the archivelogmust beobsolete per the current RMAN retention policy.

To list the obsolete objects, run the following query:

RMAN> SHOW RETENTION POLICY RMAN> REPORT OBSOLETE;

5) there is space pressure in the FRA

Again, point 5, there has to be space pressure in the FRA before the policy kicks in. Therefore setting any normal local destination to use this will fail. In my experience the rman delete command complained that the logs were still required.

Another interesting note, the database’s have to be backed up for this policy to take place. Only performing backups on the standby will leave the primary in a state where all logs are required (obviously) since condition 4 will not be met, therefore no automatic purging will take place.

eg: the following query will identify all archivelogs applied to the standby:

select a.thread#, a.sequence#, a.applied from v$archived_log a, v$database d where a.activation# = d.activation# and a.applied=’YES’ /


您可能感兴趣的文档:

--结束END--

本文标题: 配置rman来自动删除应用过的归档日志

本文链接: https://lsjlt.com/news/46697.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
  • 配置rman来自动删除应用过的归档日志
    Configure Rman to Purge Application standby logs. Posted on   March 26, 2011   by...
    99+
    2024-04-02
  • DataGuard 备库归档日志自动删除配置
    1. 如果没有备份机制,想要实现备库归档自动删除,就需要使用快速恢复区(FRA)  检查当前备库归档的存放位置:  SQL> show parameter log_arc...
    99+
    2024-04-02
  • 如何使用RMAN删除过期归档日志
    这篇文章主要介绍“如何使用RMAN删除过期归档日志”,在日常操作中,相信很多人在如何使用RMAN删除过期归档日志问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”如何使用RMAN...
    99+
    2024-04-02
  • 如何实现自动删除归档日志的脚本
    这篇文章主要介绍如何实现自动删除归档日志的脚本,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!自动删除归档日志的脚本(尤其是dataguard环境)已有 236 次阅读2011-12-16 21:02 |个人分类:or...
    99+
    2023-06-04
  • oracle中怎么删除过期的归档日志
    oracle中怎么删除过期的归档日志,很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。1、对于 EXPIRED 状态的产生,相对于...
    99+
    2024-04-02
  • oracle中怎么利用rman删除过期的归档
    这期内容当中小编将会给大家带来有关oracle中怎么利用rman删除过期的归档,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。1.检测所有归档   RMAN>...
    99+
    2024-04-02
  • 如何解决Oracle RMAN删除归档日志不释放的问题
    这篇文章主要为大家展示了“如何解决Oracle RMAN删除归档日志不释放的问题”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“如何解决Oracle RMAN删除...
    99+
    2024-04-02
  • mongodb过期自动删除日志怎么设置
    在MongoDB中,可以使用TTL(Time To Live)索引来自动删除过期的日志。要设置TTL索引,需要执行以下步骤:1. 首...
    99+
    2023-08-23
    mongodb
  • 数据库中RMAN删除归档日志出现RMAN-0813错误的处理方法是什么
    这篇文章主要讲解了“数据库中RMAN删除归档日志出现RMAN-0813错误的处理方法是什么”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“数据库中RMAN删除...
    99+
    2024-04-02
  • dg如何实现删除备库已经应用的归档日志脚本
    这篇文章主要介绍了dg如何实现删除备库已经应用的归档日志脚本,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 #!/bin/bash #b...
    99+
    2024-04-02
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作