11g Understanding Automatic Diagnostic Repository.

 

Beginning with Release 11g, Oracle Database includes an advanced fault diagnosability infrastructure for preventing, detecting, diagnosing, and resolving problems.  This note helps to understand the new 11g infrastructure known  as Automatic Diagnostic Repository.

Scope and Application

Audience:  Oracle 11g Users and DBAs who want to know about ADR.

11g Understanding Automatic Diagnostic Repository.

What is New in 11g?

In 11g, RDBMS diagnostic data has been reorganized and is stored inside a common directory structure, the Automatic Diagnostic Repository (ADR). An ADR is a centralized directory structure where one can find trace files, alert messages, incident dumps, core files, etc.

Automatic Diagnostic Repository ( ADR ) :

All trace files, core files, and the alert files are now organized into a directory structure comprising the Automatic Diagnostic Repository (ADR).

The ADR is a file-based repository for database diagnostic data. It has a unified directory structure across multiple instances and multiple products.
Beginning with Release 11g, the database, Automatic Storage Management (ASM), Cluster Ready Services (CRS), and other Oracle products or components store all diagnostic data in the ADR. Each instance of each product stores diagnostic data underneath its own ADR home directory.
For example, in an Oracle Real Application Clusters environment with shared storage and ASM, each database instance and each ASM instance has a home directory within the ADR. ADR's unified directory structure, consistent diagnostic data formats across products and instances, and a unified set of tools enable customers and Oracle Support to correlate and analyze diagnostic data across multiple instances.

Problems and Incidents :

Problem : is a critical error in the database
Eg : ora-600 , ora-7445 , ora-4031 etc.

Problem key : Every problem has a problem key, which is a text string that includes an error code (such as ORA 600) and in some cases, one or more error parameters.
Eg: ‘ORA 4030’ , ‘ORA 600 [ktfacht1-0]’

Incident : is a single occurance of a problem . Each incident has a numeric incident id.


Where is ADR located :


The location of the ADR is controlled by the Oracle "diagnostic_dest" parameter.
Path specified in the 'diagnostic_dest' parameter defines the ADR root directory,ADR BASE.
The first subdirectory inside an ADR (under the <adr_base> directory) is always named "diag"

For example, if the 'diagnostic_dest' and thus the <adr_base> is specified as "$ORACLE_HOME/log", then expect to find the subdirectory "$ORACLE_HOME/log/diag". Below this will be <adr_home> .
Any number of instances/components can share same ADR BASE. Under ADR BASE there will be individual ADR HOMES.
Under ADR BASE ,the address of an <adr_home> will be similar to :
diag/<product_type>/<prod_id>/<instance_id>.
Inside each ADR home, you can find several subdirectories, each for storing a specific type of diagnostic data. Among the subdirectories, you should be able to find TRACE, ALERT, INCIDENT, CDUMP etc.

ADR HOME contents :


You will find the following directories under ADR HOME -

Alert : The alert directory contains the XML alert log

Cdump : core dumps are stored in this directory

Trace : Process trace files and Alert.log are stored in the trace directory. 'Background_dump_dest' and 'user_dump_dest' are now ignored in 11g. Now all the trace files will be generated in 'trace' directory.

Incident : The incident directory stores dump files created when critical errors are encountered.
Each occurrence of a critical error( incident ) is given its own incident directory, with the incident ID used to form the directory name.

Metadata : The metadata directory stores a series of files that contain diagnostic metadata.

HM : The hm directory stores reports for health checks

Incpkg, ir, lck, sweep : These directories contain internal diagnosability framework state.


DIAGNOSTIC_DEST - Default value :


If environment variable ORACLE_BASE is set, DIAGNOSTIC_DEST is set to the directory designated by ORACLE_BASE.
If environment variable ORACLE_BASE is not set, DIAGNOSTIC_DEST is set to ORACLE_HOME/log

V$DIAG_INFO :

For each database , you can query v$diag_info to check its ADR locations.
This shows us the ADR BASE , ADR home , trace file locations , XML Alert location , incident dump locations , core dump and health monitor reports.
Also gives us the default session trace ( for the current session ) and number of problems , incidents reported in the database.

ADR Command Interpreter (ADRCI) :

ADRCI is the command line utility using which ADR is accessed.

Enter the following command at the operating system command prompt:

%]ADRCI

The utility starts and displays the following prompt:

adrci>

There are various commands that can be executed from 'adrci' to view Alert log , trace files , incidents reported , etc.

There is no need to log in to ADRCI, because the data in ADR is just for diagnostic purposes and not intended to be secure. ADR data is secured only by operating system permissions on the ADR directories.

 

 

 

From Oracle

-------------------------------------------------------------------------------------------------------

QQ:492913789

Email:ahdba@qq.com

Blog: http://www.cndba.cn/dave


DBA1 群:62697716();   DBA2 群:62697977()   DBA3 群:62697850()  

DBA 超级群:63306533();  DBA4 群: 83829929  DBA5群: 142216823   

聊天 群:40132017   聊天2群:69087192

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

 

关于 Simulink 启动诊断报告 (Launch Diagnostic Report),通常是指在 MATLAB 和 Simulink 的初始化过程中可能出现的一些错误或警告消息。这些信息可能涉及许可证问题、路径配置不正确、版本兼容性或其他环境设置。 尽管 `spdlog` 是一个高性能的日志库[^1],它并不直接与 Simulink 或 MATLAB 相关联。因此,在讨论 Simulink 启动诊断报告时,可以忽略该日志库的具体细节。 以下是有关 Simulink 启动诊断报告的信息以及一些常见的解决方案: ### 常见原因分析 #### 许可证问题 如果用户的 MATLAB/Simulink 许可证已过期或者未正确安装,则可能会触发启动失败并显示诊断报告中的错误提示。可以通过以下命令验证当前许可证状态: ```matlab license('inuse') ``` #### 路径配置冲突 MATLAB 的搜索路径中可能存在与其他工具包命名相同的文件夹或函数定义,这可能导致加载顺序混乱从而引发异常行为。建议清理自定义路径并通过重新构建缓存来解决问题: ```matlab restoredefaultpath; rehash toolboxcache; savepath; ``` #### 版本兼容性 当尝试运行旧版模型文件 (.slx/.mdl) 于较新的软件环境中时,有时会遇到解析上的困难。这种情况下应该考虑升级模型至最新标准格式或将整个项目迁移到支持的目标平台之上。 ### 技术文档参考资料 官方 MathWorks 文档提供了详尽的帮助指南用于排查此类情况下的难题,请访问链接获取更多指导说明。(此处省略具体URL) ### 示例代码片段展示如何捕获异常事件并向控制台打印调试信息 ```cpp #include "mex.h" void mexFunction(int nlhs,mxArray *plhs[],int nrhs,const mxArray *prhs[]) { try{ throw std::runtime_error("Simulating an error during initialization."); }catch(const std::exception& e){ mexErrMsgIdAndTxt("MyToolbox:StartupError",e.what()); } } ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值