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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[Oracle] Retention Policy for ADR

[复制链接]
跳转到指定楼层
楼主
发表于 2021-5-21 20:07:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Retention Policy for ADR (Doc ID 564269.1)        To BottomTo Bottom       

In this Document
Purpose
Scope
Details
References
APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.1.0.6 and later
Oracle Database - Standard Edition - Version 11.1.0.6 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
*** Checked for relevance on 13-Mar-2013 ***
PURPOSE
The goal of this document is to explain the retention policies in Automatic Diagnostic Repository (ADR).

SCOPE
All DBAs working on 11g databases.

DETAILS
There are two time attributes which are used to manage the retention of information in ADR.
Both attributes correspond to a number of hours after which the MMON (Memory Monitor) background process removes the expired ADR data:


- SHORTP_POLICY :  used to purge information that have a short life.
Default is 720 which corresponds to 30 days - approximately 1 month.

- LONGP_POLICY: to purge ADR contents that have a long life.
Default is 8760 = 365 days = 1 year.

To view and modify these settings, you can either use the Enterprise Manager 11g DB Control GUI or via the ADR Command Interpreter (ADRCI) started from an O/S prompt.

In this note, we will detail you how to check and change the above parameters via ADRCI.

As some of the ADRCI commands (like "show control") do not work with multiple current ADR homes, we need to first select the appropriate homepath:
% adrci

adrci> show home
ADR Homes:
diag/rdbms/<SID>/<SID>
...

adrci> set home <ADR HOME PATH>


To check the current values of SHORTP_POLICY and LONGP_POLICY :
adrci> show control

To set the retention policy values :
adrci> set control (SHORTP_POLICY = 3600)

To get help on the set control command :
adrci> help set control

All ADRCI commands are described in the "Oracle Database Utilities 11g Release 1 (11.1)" Documentation Part Number B28319-02 - accessible online:
http://download.oracle.com/docs/ ... 11/b28319/adrci.htm

A few more comments worth to mention:
- Up to 11.1.0.7, CDUMP files were not purged due to unpublished Bug 6343743.

- Incidents in a "Tracking" state are indefinitely kept in ADR.
To determine the status of an incident :

adrci> show incident -mode detail - p "incident_id=..."

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 06:04 , Processed in 0.081469 second(s), 20 queries .

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

© 2001-2020

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