OCP-1Z0-052-V8.02-125题

125. You want to check the details of few errors that users have reported. You search for the alert log file

and execute few commands to find the location of the alert log file.

View the Exhibit and check the commands executed.

What is the location of the alert_orcl.log file?

A.ORACLE_HOME/dbs

B.ORACLE_HOME/rdbms

C./u01/app/oracle/admin/orcl/adump

D./u01/app/oracle/flash_recovery_area

E.ORACLE_BASE/diag/rdbms/orcl/orcl/alert

F.ORACLE_BASE/diag/rdbms/orcl/orcl/trace

Answer: F  

答案解析:

参考:http://blog.csdn.net/rlhua/article/details/12709243

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

sys@TEST0924> select * from v$diag_info;

INST_ID NAME VALUE
---------- ------------------------- -------------------------------------------------------
1 Diag Enabled TRUE
1 ADR Base /u01/app/oracle
1 ADR Home /u01/app/oracle/diag/rdbms/test0924/test0924
1 Diag Trace  /u01/app/oracle/diag/rdbms/test0924/test0924/trace
1 Diag Alert /u01/app/oracle/diag/rdbms/test0924/test0924/alert
1 Diag Incident /u01/app/oracle/diag/rdbms/test0924/test0924/incident
1 Diag Cdump /u01/app/oracle/diag/rdbms/test0924/test0924/cdump
1 Health Monitor /u01/app/oracle/diag/rdbms/test0924/test0924/hm
1 Default Trace File /u01/app/oracle/diag/rdbms/test0924/test0924/trace/test0924_ora_24429.trc
1 Active Problem Count 0
1 Active Incident Count 0

11 rows selected.

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值