zoukankan      html  css  js  c++  java
  • 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.

     

  • 相关阅读:
    git 初始化与使用
    java解析webservice服务返回的xml
    计算时间天数
    XML和Java bean转换
    微信公众号-企业
    docker安装openldap
    webservice使用
    idea解决冲突插件
    Java--JSON嵌套JSON中带''字符的解决方式
    微信公众号开发
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316959.html
Copyright © 2011-2022 走看看