"AUTOIMATIC DIAGNOSTIC REPOSITORY"
This tool, among other tasks does the following:
- Automatically purges trace files, alert log files etc
- Manages "incidents"
- Packages incidents.
This blog will talk about how to manage the logs and manage incidents. Although many features discussed in this blog can be completed via OEM, I will be discussing how to do this from the command interface.
To Log On, run:
unix> adrci
To show your current environment, run:
adrci> show homes
To set a HOME environment, run:
adrci> set home
To show current incidents, run:
adrci> show incidents
ADR Home = /opt/oracle/admin/diag/rdbms/xxx/XXX:
*************************************************************************
INCIDENT_ID PROBLEM_KEY CREATE_TIME
-------------------- ----------------------------------------------------------- ------------------
12426 ORA 3137 [12333] 2011-11-02 16:47:50.277000 +13:00
1 rows fetched
To purge a particular incident, run:
adrci> purge -i n nn nnn
To purge a type of data, run:
adrci> purge -age nn -type xxx
where age is defined in minutes and type can be "alert, incident, trace, dump etc"