From the command prompt, the ADRCI
utility is entered by typing:
C:\>adrci
ADRCI: Release 11.1.0.6.0 - Beta on Thu Nov 15 22:21:42 2015
Copyright (c) 1982, 2015, Oracle. All rights
reserved.
ADR
base = "file:///u01/oracle/11g">u01/oracle/11g"
adrci>
You
can also display ADR information from the v$diag_info
view:
SQL> SELECT name, value FROM
v$diag_info;
NAME VALUE
---------------------
---------------------------------------------------
Diag Enabled
TRUE
ADR
Base
/u01/app/oracle
ADR Home
/u01/app/oracle/diag/rdbms/db11/db1
Diag Trace
/u01/app/oracle/diag/rdbms/db11/db1/trace
Diag Alert
/u01opt/app/oracle/diag/rdbms/db11/db1/alert
Diag Incident
/u01/app/oracle/diag/rdbms/db11/db1/incident
Diag Cdump
/u01/app/oracle/diag/rdbms/db11/db1/cdump
Health Monitor
/u01/app/oracle/diag/rdbms/db11/db1/hm
Default Trace File
/u01/app/oracle/diag/rdbms/db11/db1/trc/ora_9230.trc
Active Problem Count 0
Active Incident Count 0
ADRCI Homes
ADRCI commands are based on one or more
base directories known as ADR homes. Before using the
ADRCI commands, it is helpful to set an active ADR home to
work with a single instance. The available homes can
be seen by typing:
adrci> show homes
ADR Homes:
diag\clients\user_system\host_1475088825_11
diag\clients\user_varun jain\host_1475088825_11
diag\rdbms\ora11g4\ora11g4
diag\rdbms\ora11gr1\ora11gr1
diag\tnslsnr\dcfx7hb1\listener
adrci>
The output above shows that there are
several available home directories on which ADR can operate.
If a DBA wants to only access diagnostic data from one of
the available homes, the active ADR home should be set
appropriately. The active home can be set using the
set homepath command:
adrci>
set homepath diag\rdbms\ora11gr1\ora11gr1
adrci> show homes
ADR Homes:
diag\rdbms\ora11gr1\ora11gr1
adrci>
The output demonstrates that after
setting the active ADR home, only the active home displays.
ADRCI alert log commands
You
can run the ADRCI "show alert" command to view the alert
log:
adrci> set homepath diag/rdbms/ora11gr1\ora11gr
adrci> show alert -tail;
Note: Rampant author Laurent Schneider has some
additional insight into
creating an Oracle Automatic Diagnostic Repository (ADR).