Oracle 11g的日志文件(有点变化)从 Oracle 11g 开始,Oracle 以 XML 与传统的文本两种格式提供 Alert 日志。新的日志位置由 Au
Oracle 11g的日志文件(有点变化)
从 Oracle 11g 开始,,Oracle 以 XML 与传统的文本两种格式提供 Alert 日志。
新的日志位置由 Automatic Diagnostic Repository (ADR) 决定。可以通过新的初始化参数 DIAGNOSTIC_DEST 控制 ADR BASE 的位置。如果没有设定这个初始化参数的位置,而设置 ORACLE_BASE 环境变量的话,那么,如果没有设定 ORACLE_BASE , 则 ORACLE_HOME/log 即为 DIAGNOSTIC_DEST。
Alert Log 文件父目录的位置在:
ADR_BASE/diag/product_type{eg:rdbms}}/product_id{eg:11g}/instance_id
这个目录下有 alert/trace/bdump 之类的子目录。就是 Log 的具体位置了。alert 下是 XML 文件:
可在v$diag_info视图中用如下命令查到:
select * from v$diag_info where name ='Diag Alert';
select * from v$diag_info where name ='Diag Trace';
select * from v$diag_info;
如:
SQL> select value from v$diag_info where;
VALUE
--------------------------------------------------------------------------------
/u01/oracle/app/diag/rdbms/orcl/orcl/alert
SQL> select value from v$diag_info where;
VALUE
--------------------------------------------------------------------------------
/u01/oracle/app/diag/rdbms/orcl/orcl/trace
SQL> select value from v$parameter where;
VALUE
--------------------------------------------------------------------------------
/u01/oracle/app/diag/rdbms/orcl/orcl/trace
SQL> show parameter DIAGNOSTIC_DEST;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
diagnostic_dest string /u01/oracle/app
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号