052-124

You executed the following commands to find the location of the alert log file:
SQL> SHOW PARAMETER BACKGROUND_DUMP_DEST
NAME TYPE VALUE
-------------------- -------- ------------------------------------------

background_dump_dest string /u01/app/oracle/diag/rdbms/orcl/orcl/trace
SQL> SHOW PARAMETER DIAGNOSTIC_DEST
NAME TYPE VALUE
---------------- ----------- ----------------
diagnostic_dest string /u01/app/oracle
Where is the alert log file stored? (Choose all that apply.)
A.in the BACKGROUND_DUMP_DEST location; in text format
B.in the BACKGROUND_DUMP_DEST location; in XML format
C.in the BACKGROUND_DUMP_DEST location; in both text and XML format
D.in the DIAGNOSTIC_DEST/diag/rdbms/orcl/orcl/alert directory; in text format
E.in the DIAGNOSTIC_DEST/diag/rdbms/orcl/orcl/alert directory; in XML format
F.in the DIAGNOSTIC_DEST/diag/rdbms/orcl/orcl/alert directory; in both text and XML format

$ORACLE_BASE/diag/rdbms/<db_name>/<SID>/alert 目录中有一个 XML 版本的预警日志
要通过 SQL*Plus 确定预警日志的位置,请执行以下操作:
• 使用 SQL*Plus(或其它查询工具,如 SQL Developer)连接到数据库。
• 查询 V$DIAG_INFO 视图。
要查看不带 XML 标记的纯文本预警日志,请执行以下操作:
• 在 V$DIAG_INFO 查询结果中,记下对应于 Diag Trace 条目的路径。将目录更改至该路径。
• 使用文本编辑器打开 alert_SID.log 文件。
要查看 XML 格式的预警日志,请执行以下操作:
• 在 V$DIAG_INFO 查询结果中,记下对应于 Diag Alert 条目的路径。将目录更改至该路径。
• 使用文本编辑器打开 log.xml 文件。

原文地址:https://www.cnblogs.com/Babylon/p/8028758.html