`

Oracle 11g新特性:Automatic Diagnostic Repository

阅读更多
Oracle Database 11g的FDI(Fault Diagnosability Infrastructure)是自动化诊断方面的又一增强。
FDI的一个关键组件是自动诊断库(Automatic Diagnostic Repository-ADR)。

在oracle 11g中,alert文件的信息是以xml的文件格式存在的,另外提供了普通文本格式的alert文件。
这两份log文件的位置分别是V$DIAG_INFO中的Diag Alert 和Diag Trace 对应的目录。

在Oracle Database 11g之前,Oracle的各类跟踪文件、日志文件等诊断文件的存储位置并不统一,现在在FDI的基础架构之上,Oracle开始统一规划这些文件的存储,ADR之于诊断文件,就类似于OFA(Optimal Flexible Architecture )之于数据库文件,FRA(Flash Recovery Area)之于备份文件。

ADR的路径被称为ADR BASE,这个位置由一个新的初始化参数DIAGNOSTIC_DEST决定。

SQL> show parameter diagnostic_dest


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
diagnostic_dest                      string      /opt/oracle


这个参数的缺省值和环境变量ORACLE_BASE有关:
■ 如果设置了 ORACLE_BASE 则 DIAGNOSTIC_DEST = ORACLE_BASE
■ 如果未设置 ORACLE_BASE ,则 DIAGNOSTIC_DEST = ORACLE_HOME/log
我们可以简单看一下ADR BASE的目录结构:

[oracle@test126 ~]$ tree -d diag/
diag/
|-- asm
|-- clients
|-- crs
|-- diagtool
|-- lsnrctl
|-- netcman
|-- ofm
|-- rdbms
|   `-- eygle
|       `-- eygle
|           |-- alert
|           |-- cdump
|           |-- hm
|           |-- incident
|           |-- incpkg
|           |-- ir
|           |-- lck
|           |-- metadata
|           |-- stage
|           |-- sweep
|           `-- trace
`-- tnslsnr
    `-- test126
        `-- listener
            |-- alert
            |-- cdump
            |-- incident
            |-- incpkg
            |-- lck
            |-- metadata
            |-- stage
            |-- sweep
            `-- trace


33 directories


现在一目了然,包括ASM、CRS等组件日志都被ADR囊括其中。
对于FRA,通过V$FLASH_RECOVERY_AREA_USAGE视图,Oracle可以知道闪回区的使用情况.
现在对于ADR,Oracle可以通过一个新的视图v$diag_info来查询自动诊断库的信息:
SQL> select * from v$diag_info;


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


11 rows selected.


SQL> select table_name from dict where table_name like '%DIAG%';


TABLE_NAME
------------------------------
V$DIAG_INFO
GV$DIAG_INFO

Oracle每一个进步都是精心设计的,模块化、规范化正在被不断的加强。
分享到:
评论

相关推荐

    Oracle 11g自动诊断信息库(Automatic Diagnostic Repository,ADR)概述

    主要介绍了Oracle11g的自动诊断信息库,需要的朋友可以参考下

    Oracle.Database.11g.DBA手册.完整中文 (97M) part2/2

    本书对上一版本进行了全面的修订,涵盖了每个新特性和实用工具,展示了如何实施新的安装、更新以前的版本、最高效地配置硬件和软件、以及实施安全防护措施。本书介绍了自动备份和恢复过程,提供了透明故障转移功能、...

    Oracle.Database.11g.DBA手册.完整中文 (97M) part1/2

    本书对上一版本进行了全面的修订,涵盖了每个新特性和实用工具,展示了如何实施新的安装、更新以前的版本、最高效地配置硬件和软件、以及实施安全防护措施。本书介绍了自动备份和恢复过程,提供了透明故障转移功能、...

    Oracle 11g For Dummies.pdf

    Completely up to date for the newest release of Oracle, Oracle 11g For Dummies will give you both the information and the confidence to set up and maintain an Oracle database for your organization.

    ISO14229-最新全套-共7个.zip

    Road vehicles -- Unified diagnostic services (UDS) Part 1:Specification and requirements-2013 Part 2:Session layer services-2013 Part 3:Unified diagnostic services on CAN implementation (UDSonCAN)-...

    oracle客户端必备文件

    在Oracle中,各个组件(监听器、数据库实例、各种配置工具)在安装和运行时都会有相应的日志Log和跟踪文件...在11g,Oracle推出了ADR(Automatic Diagnostic Repository)的概念,将这些信息统一的列入到其中管理。

    Oracle RDA(Remote Diagnostic Agent)

    RDA(RemoteDiagnostic Agent)是oracle内部工具,通过MOS下载;RDA 是用Perl 脚本写出来的, 它是一个客户端,解压缩之后就能直接使用。 RDA用于收集、分析oracle数据库,运行该工具不会改变系统的任何参数;RDA收集...

    Oracle WebLogic Server 10gR3: Troubleshooting Methodologies

    Oracle WebLogic Server 10g R3: Troubleshooting Methodologies Duration: 3 Days What you will learn This course teaches the steps to identify the symptoms and causes of the issues, the method of ...

    UDSonCAN ISO14229-3 2012

    ISO 14229 consists of the following parts, under the general title Road vehicles — Unified diagnostic services (UDS): — Part 1: Specification and requirements — Part 2: Session layer services — ...

    Use of the WISC-R with a learning disabled population: Some diagnostic implications

    Use of the WISC-R with a learning disabled population: Some diagnostic implications USE OF T H E WISC-R WITH A LEARNING DISABLED POPULATION : SOME DIAGNOSTIC IMPLICATIONS MARILYN ANDERSON ...

    Elevated serum growth hormone in a patient with Type 1 diabetes: a diagnostic dilemma

    Type 1 diabetes: a diagnostic dilemma O. M. Herlihy1 Summary P. Perros2* Thebiochemicalconfirmationofacromegalyisrarelydifficultandisbasedon 1DepartmentofDiabetes, anelevatedfastingserumgrowthhormone...

    oracle实验报告

    本数据库(oracle)7个实验报告用于和大家交流,我将这次报告所需要的表和数据材料能够拿出来的都放了在同一个包里的,希望大家能够去看看并且多提点意见,同时我将第一个报告(手工创建数据库库)的记录也放在了包...

    DiagnosticLogCenter:基于 Diagnostic 实现的日志中心

    基于 Diagnostic 实现的日志中心,现只支持 .NetCore 项目。 特点: 1,自动记录请求信息、SQL语句、请求外部接口的操作,使用简单。 2,数据存储于MongoDB 数据库中,而不是文本文件中,便于查询。 3,数据按天分表...

    j-tools:查看Oracle AWR和会话诊断数据的工具

    如果您具有Oracle Diagnostic Pack的许可证,则可以使用J-Tools显示Oracle数据库的诊断数据。 在数据库菜单选项卡上启用复选框以获取帮助,以获取工具提示。 作者:Jerry 联系人: 许可:GNU GPL Ver 3 要求 ...

    Expert.Oracle.Exadata.2nd.Edition.1430262419

    Title: Expert Oracle Exadata, 2nd Edition Author: Andy Colvin, Frits Hoogland, Karl Arao, Kerry Osborne, Martin Bach, Randy Johnson, Tanel Põder Length: 672 pages Edition: 2 Language: English ...

    oracle 10g ocp 043解析(185题).

    Automatic Database Diagnostic Monitor(ADDM) Answer: A 你发现你的数据高速缓存区(Database Buffer Cache)不够用了,可以使用 Memory Advisor 来确定其大小,自动数据库诊断监视器 (ADDM):执行自上而下的...

    Diagnostic Captioning A Survey.pdf

    Diagnostic Captioning A Survey.pdf

    Childhood depression: Diagnostic considerations

    Childhood depression: Diagnostic considerations CHILDHOOD DEPRESSION: DIAGNOSTIC CONSIDERATIONS HARVEY F. CLARIZIO Michigan State University The basic purposes of this review are to: (a) ...

Global site tag (gtag.js) - Google Analytics