Oracle 11g Alert log 文件位置的问题


Oracle至11g后的alert log有所变动,oracle数据库以XML与传统的文本两种格式提供Alert log日志了。

新的日志位置由Automatic Diagnostic Repository(ADR)决定存放目录,可以通过信的初始化参数DIAGNOSTIC_DEST控制ADR base的位置。

SQL> show parameter diagnostic_dest;

NAME                                TYPE      VALUE

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

diagnostic_dest                    string    /u01/sys_software/oracle

SQL>

如果没有设置这个初始化参数的位置,而有设置ORACLE_BASE环境变量的话,那么$oracle_home/log即为DIAGNOSTIC_DEST的目录。

Alert log文件父目录的位置在:

$ORACLE_BASE/diag/product_type/product_id/instance_id

这个目录下面有alter、trace、cdump之类的子目录

Alert log XML的文件位置

SQL> select value from v$diag_info where name='Diag Alert';

VALUE

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

/u01/sys_software/oracle/diag/rdbms/hbcadb/hbcadb1/alert

SQL>

Alert log文本文件的位置

SQL> select value from v$diag_info where name='Diag Trace';

VALUE

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

/u01/sys_software/oracle/diag/rdbms/hbcadb/hbcadb1/trace

SQL>

SQL>

---The End

相关内容