Automatic Diagnostic Repository(ADR) 学习笔记

在这里插入图片描述
Viewing the Alert Log
•The alert log file is a chronological log of messages about the database instance and database, such as:
–Any nondefault initialization parameters used at startup
–All internal errors (ORA-600), block corruption errors (ORA-1578), and deadlock errors (ORA-60) that occurred
–Administrative operations, such as the SQL statements CREATE, ALTER, DROPDATABASE, and TABLESPACE,and the Enterprise Manager or SQL*Plus statements STARTUP, SHUTDOWN, ARCHIVELOG, and RECOVER
–Several messages and errors relating to the functions of shared server and dispatcher processes
–Errors during the automatic refresh of a materialized view
•Query V$DIAG_INFOto find the location of the alert log.
–The path to alert_SID.logcorresponds to the Diag Trace entry.
–The path to log.xmlcorresponds to the Diag Alert entry.
•You can view the alert log in a text editor or in ADRCI.

Using Trace Files
•Trace files contain:
–Error information (contact Oracle Support Services if an internal error occurs)
–Information that can provide guidance for tuning applications or an instance
•Each server and background process can write to an associated trace file.
•Trace file names for background processes are named after their processes.
–Exception: Trace files generated by job queue processes
•Oracle Database includes an advanced fault diagnosability infrastructure for preventing, detecting, diagnosing, and resolving problems.
•When a critical error occurs:–An incident number is assigned to the error–Diagnostic data for the error (such as trace files) is immediately captured and tagged with the incident number–Data is stored in the ADR
•ADR files can be automatically purged by setting retention policy parameters.

Administering the DDL Log File
•Enable the capture of certain DDL statements to a DDL log file by setting ENABLE_DDL_LOGGINGto TRUE
•The DDL log contains one log record for each DDL statement.
•Two DDL logs contain the same information:
–XML DDL log: log.xmlwritten to $ORACLE_BASE/diag/rdbms///log/ddl
–Text DDL: ddl_.logwritten to $ORACLE_BASE/diag/rdbms///log
•Example:
$ more ddl_orcl.log
Thu Nov 15 08:35:47 2016
diag_adl:drop user app_user

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值