oracle11g trace路徑和diagnostics路徑的變化

StudyCow發表於2008-07-17

Oracle11g中trace檔案和日誌檔案的路徑發生了變化在$ORACLE_BASE/diag建立了一些分類目錄,用來儲存各種日誌:

[oracle@rac1 trace]$ cd $ORACLE_BASE
[oracle@rac1 oracle]$ cd diag
[oracle@rac1 diag]$ pwd
/u01/app/oracle/diag
[oracle@rac1 diag]$ ls
asm clients crs diagtool lsnrctl netcman ofm rdbms tnslsnr
[oracle@rac1 diag]$

其中rdbms儲存了使用者trace檔案,alertSID.ORA、後臺程式日誌等。

可以透過v$diag_info查詢這些資訊:

SQL> select * from v$diag_info;

INST_ID NAME VALUE
---------- ---------------------------------------- ------------------------------------------------------------------
1 Diag Enabled TRUE
1 ADR Base /u01/app/oracle
1 ADR Home /u01/app/oracle/diag/rdbms/orcl/orcl1
1 Diag Trace /u01/app/oracle/diag/rdbms/orcl/orcl1/trace
1 Diag Alert /u01/app/oracle/diag/rdbms/orcl/orcl1/alert
1 Diag Incident /u01/app/oracle/diag/rdbms/orcl/orcl1/incident
1 Diag Cdump /u01/app/oracle/diag/rdbms/orcl/orcl1/cdump
1 Health Monitor /u01/app/oracle/diag/rdbms/orcl/orcl1/hm
1 Default Trace File /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_ora_22010.trc
1 Active Problem Count 1
1 Active Incident Count 33

11 rows selected.

SQL>

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7839206/viewspace-1007390/,如需轉載,請註明出處,否則將追究法律責任。

相關文章