ADRCI is the command line interface for diagnostic utility used for viewing diagnostics data like listener log , alert log ,incident and cor dump etc and creating incident packages. Below are the the list of useful commands.

1. Get current  base location:( Also known as ADR_BASE)

2. Set new ORACLE_BASE(ADR_BASE)

3. List current ORACLE_HOME

4. Set new ORACLE_HOME

5. View alert log

6. Purge alerts and trace files

7. Set control policy for auto purge of files

There are two types of policies,

LONGP_POLICY is used to purge below data . Default value is 365 days.

• ALERT
• INCIDENT
• SWEEP
• STAGE
• HM

SHORTP_POLICY  is used to purge for below data Default value is 30 days.

• TRACE
• CDUMP
• UTSCDMP
• IPS

— Get existing control policy

Change default value of control policy details.

8 . Create incident package:

(or)

We can create empty package and add required incident or problem or alert log files.

9. Unpack a ips file

10. Pack all incident files within a particular time frame

11. View package information

12. Remove/delete package information: