ADR is file based repository for diagnostic data like trace file,process dump,data structure dump etc.
In oracle 11g trace. alert not saved in *_DUMP_DEST directory even you set those parameters in init.ora.11g ignore *_DUMP_DEST and store data in new format , directory structure is given below. DUMP dest parameters were deprecated in 11gR2. you will get a warning when trying to start the database when reading the spfile. Check the alert log for error message.
* By default location of DIAGNOSTIC_DEST is $ORACLE_HOME/log,
* if ORACLE_BASE is set in environment then DIAGNOSTIC_DEST is set to $ORACLE_BASE
$ORACLE_BASE/diag/product_type/database_name/instance_name
ADR_BASE=$ORACLE_BASE=diag/rdbms/msaprd/MSAPRD
ADR root where ADR directory structure start. 11g new initialize parameter DIAGNOSTIC_DEST decide location of ADR root.



In 11g alert file is saved in 2 location, one is in alert directory ( in XML format) and old style alert file in trace directory. Within ADR base, there can be many ADR homes, where each ADR home is the root directory for all diagnostic data for a particular instance. The location of an ADR home for a database is shown on the above graphic.
Environment variable ADR_HOME=/oracle/EPW/MSAPRD/admin/diag/rdbms/msaprd/MSAPRD
SQL> show parameter diag
NAME TYPE VALUE
———————————— ——————————— ——————————
diagnostic_dest string /oracle/EPW/MSAPRD/admin
| Data |
Old location |
ADR location |
| Core Dump |
CORE_DUMP_DEST |
$ADR_HOME/cdump |
| Alert log data |
BACKGROUND_DUMP_DEST |
$ADR_HOME/trace
$ADR_HOME/alert (XML) |
| Background process trace |
BACKGROUND_DUMP_DEST |
$ADR_HOME/trace |
| User process trace |
USER_DUMP_DEST |
$ADR_HOME/trace |
SQL>desc v$diag_info;
SQL>set linesize 121
SQL>col value format a75
SQL>select * from v$diag_info;
ADRCI:
The ADR Command Interpreter (ADRCI) is a command-line tool that you use to manage Oracle Database diagnostic data. ADRCI is a command-line tool that is part of the fault diagnosability infrastructure introduced in Oracle Database Release 11g. ADRCI enables:
* Viewing diagnostic data within the Automatic Diagnostic Repository (ADR).
* Viewing Health Monitor reports.
* Packaging of incident and problem information into a zip file for transmission to Oracle Support.
Diagnostic data includes incident and problem descriptions, trace files, dumps, health monitor reports, alert log entries, and more.
ADRCI has a rich command set, and can be used in interactive mode or within scripts. In addition, ADRCI can execute scripts of ADRCI commands in the same way that SQL*Plus executes scripts of SQL and PL/SQL commands.
ADR data is secured by operating system permissions on the ADR directories, hence there is no need to log in to ADRCI.
Check more information on ADR as it’s a pretty rich tool…. I thought it was a nice addition.
http://download.oracle.com/docs/cd/E11882_01/server.112/e10701/adrci.htm
ADR Retention can be controlled with ADRCI:
There is retention policy for ADR that allow to specify how long to keep the data ADR incidents are controlled by two different policies:
- The incident metadata retention policy ( default is 1 year )
- The incident files and dumps retention policy ( Default is one month)
We can change retention policy using “adrci” MMON purge data automatically on expired ADR data.
adrci>show control
To change the retention police:
adrci> set control (SHORTP_POLICY = 360 )
adrci> set control (LONGP_POLICY = 4380 )