码迷,mamicode.com
首页 > 其他好文 > 详细

052-124

时间:2017-12-12 21:03:49      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:str   direct   文本编辑器   日志   evel   round   style   结果   trace   

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 文件。

052-124

标签:str   direct   文本编辑器   日志   evel   round   style   结果   trace   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!