ADRCI (Automatic Diagnostic Repository Command-Line Interface) is a utility for managing and analyzing Oracle diagnostic data, including listener logs, alert logs, incidents, and core dumps. This guide covers essential ADRCI commands.
General Commands
Command
Description
Example
adrept
Launches the ADR report viewer.
Type adrept in the ADRCI prompt to access diagnostic reports.
adrcat
Displays the contents of the ADR repository.
Type adrcat to list all available diagnostic logs and data.
adrci
Main command-line interface for managing ADR data.
Simply type adrci to enter the ADR command-line interface.
Common Operations
Task
Command(s)
Example
Get current base location (ADR_BASE)
adrci> show base
Example: ADR base is "/var/w3buddy/app/oracle"
Set a new ADR_BASE
adrci> set base <new_base_path>
Example: adrci> set base /var/w3buddy/app/grid
List current ADR homes (ORACLE_HOME)
adrci> show home
Displays available Oracle homes, e.g., /var/w3buddy/app/oracle
Set a new ORACLE_HOME
adrci> set homepath <home_path>
Example: adrci> set homepath /var/w3buddy/app/oracle_home1
View alert log
adrci> show alert adrci> show alert -tail <number>
Example: adrci> show alert -tail 50 (views the last 50 lines).