Frequently Asked Question
Oracle: Necessary logs
Last Updated about a month ago
- Location:
$ORACLE_BASE/diag/rdbms///trace/alert_.log
- Location:
$ORACLE_BASE/diag/rdbms///trace/*.trc
- Location:
$ORACLE_BASE/diag/rdbms///incident/
- Location:
$ORACLE_BASE/diag/tnslsnr///trace/listener.log
- Only neccesary uppon OneClickDBA request
- Location: User-defined during Data Pump operations, typically in the
$DATA_PUMP_DIR
. - Only neccesary uppon OneClickDBA request
- Location: User-defined (e.g.,
/path/to/rman_logs/
). - Files:
sqlnet.log
(client-side)trace.sqlnet.log
(detailed tracing)tnsnames.ora
andlistener.ora
(configuration files)
- Location:
$ORACLE_HOME/network/log/
- Only neccesary uppon OneClickDBA request
- Location: $ORACLE_BASE/diag/rdbms///cdump/
/var/log/messages
(Linux)/var/log/syslog
(Linux)- Event Viewer Logs (Windows)
- Location:
$ORACLE_BASE//
- Files:
- CRS logs (
$ORACLE_BASE/diag/crs//crs/trace/alert.log
) - ASM logs (
$ORACLE_BASE/diag/asm//trace/alert_.log
) - Clusterware-related traces.
- CRS logs (
- Tool: Use ADRCI commands to collect logs:
adrci> show incident adrci> package generate problem_id
- Application logs showing how it interacts with the database.
- Execution plans (
EXPLAIN PLAN
orSQL_TRACE
outputs). - Commands:
- Generate AWR:
>@?/rdbms/admin/awrrpt.sql
- Generate ADDM:
EXEC DBMS_ADVISOR.CREATE_REPORT('ADDM');
- Generate ASH:
@?/rdbms/admin/ashrpt.sql
- Generate AWR:
- Files like
init.ora
orspfile.ora
, often requested to analyze initialization parameters.
1. Alert Log
2. Trace Files
3. Diagnostic Data (incident
and trace
files)
4. Listener Log
5. Data Pump Log
6. RMAN Logs
7. SQL*Net Logs
8. Core Dumps
9. Operating System Logs
Oracle Support may request OS-level logs, such as:
10. Archive Logs
11. Clusterware Logs (if using RAC)
12. Automatic Diagnostic Repository (ADR) Logs
13. Application Logs
If an issue involves specific applications or queries, Oracle Support might ask for: