124.You executed the following commands to find the location of the alert log file: SQL> SHOW PARAME

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
答案:AE
解析:
1.11g后采用了新的存储方式,都是在diagnostic_dest参数来定义的,它是一个初始化参数中定义的,如果没有定义那么它将会使用如下方式进行设置 
  a.如果设置了 ORACLE_BASE ,那么就是ORACLE_BASE
  b.如果没有设置ORACLE_BASE,那么就设置为ORACLE_HOME/log
2.diagnostic_dest的存储结构如下
  a.diagnostic_dest/diag/rdbms/DBname/SID/alert|cdump|hm|incident|incpkg|trace|others
    这里的others指的是v$diag_info,所以从这里可以看出来它是一个结构化目录的,并且backgroup和user这些以前的报警文件
    alert目录为xml格式的警报日志文件
    cdump目录为数据库核心转储位置
    trace目录包括系统建立的跟踪文件,以及警报日志的文件副本
    incident目录包含多个子目录,以及警报日志的文件副本
  b.所设置的位置和它是一样的,这里可以测试修改backgroup位置来进行验证,它会产生2个告警文件,一个是xml的在alert目录下,一个是文本的在trace下
  c.incident目录会包括多个子目录,每个子目录都是一个特定的事件
  d.hm目录包含的事由健康检查监督程序所产生的运行报告
  e.metadata包含的是资料库本身所需的重要文件,类似数据库中的字典,可以使用ADRCI工具来进行查看
  f.show parameter diagnostic_dest --来确定位置
从这里可以看出  
/u01/app/oracle/diag/rdbms/orcl/orcl/trace存储的是文本
/u01/app/oracle/diag/rdbms/orcl/orcl/alert存储的是xml
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值