【11g】11g 中警告日誌的位置
1.透過查詢v$diag_info檢視獲得ADR相關的資訊
sys@ora11g> select * from v$diag_info;
INST_ID NAME VALUE
------- ---------------------- ----------------------------------------------
1 Diag Enabled TRUE
1 ADR Base /oracle/u01/app/oracle
1 ADR Home /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g
1 Diag Trace /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace
1 Diag Alert /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/alert
1 Diag Incident /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/incident
1 Diag Cdump /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/cdump
1 Health Monitor /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/hm
1 Default Trace File /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace/ora11g_ora_3968.trc
1 Active Problem Count 0
1 Active Incident Count 0
11 rows selected.
2.其中Diag Trace對應的目錄為文字格式的警告日誌,及我們經常習慣使用的日誌
ora11g@RHEL53 /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace$ ls -l alert_ora11g.log
-rw-r----- 1 oracle oinstall 72513 Feb 27 14:29 alert_ora11g.log
3.其中Diag Alert對應的目錄為XML格式的警告日誌
ora11g@RHEL53 /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/alert$ ls -l log.xml
-rw-r----- 1 oracle oinstall 327254 Feb 27 14:29 log.xml
4.我習慣將檢視警告日誌定義為同名alert在作業系統上直接檢視
ora11g@RHEL53 /home/oracle$ alias alert
alias alert='tail -200f $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
5.使用同名進行檢視
ora11g@RHEL53 /home/oracle$ alert
-- The End --
sys@ora11g> select * from v$diag_info;
INST_ID NAME VALUE
------- ---------------------- ----------------------------------------------
1 Diag Enabled TRUE
1 ADR Base /oracle/u01/app/oracle
1 ADR Home /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g
1 Diag Trace /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace
1 Diag Alert /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/alert
1 Diag Incident /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/incident
1 Diag Cdump /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/cdump
1 Health Monitor /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/hm
1 Default Trace File /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace/ora11g_ora_3968.trc
1 Active Problem Count 0
1 Active Incident Count 0
11 rows selected.
2.其中Diag Trace對應的目錄為文字格式的警告日誌,及我們經常習慣使用的日誌
ora11g@RHEL53 /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/trace$ ls -l alert_ora11g.log
-rw-r----- 1 oracle oinstall 72513 Feb 27 14:29 alert_ora11g.log
3.其中Diag Alert對應的目錄為XML格式的警告日誌
ora11g@RHEL53 /oracle/u01/app/oracle/diag/rdbms/ora11g/ora11g/alert$ ls -l log.xml
-rw-r----- 1 oracle oinstall 327254 Feb 27 14:29 log.xml
4.我習慣將檢視警告日誌定義為同名alert在作業系統上直接檢視
ora11g@RHEL53 /home/oracle$ alias alert
alias alert='tail -200f $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
5.使用同名進行檢視
ora11g@RHEL53 /home/oracle$ alert
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-558031/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE 11G DATAGUARD 日誌中斷處理方案Oracle
- oracle 11g檢視alert日誌方法Oracle
- 關於11G DataGuard 日誌傳輸的案例
- [20181112]11g 日誌傳輸壓縮模式.txt模式
- 11g rac新增節點步驟(11g)
- [重慶思莊每日技術分享]-ORACLE 11G以上版本開啟追加日誌的命令Oracle
- Oracle之11g DataGuardOracle
- oracle 11g 分割槽表建立(年月日周時分秒)Oracle
- 11G Adaptive Cursor Sharing(ACS)的研究APT
- [20201126]11g VPD的問題.txt
- MySQL日誌警告'[Warning] Unsafe statement written to the binary log'MySql
- Oracle 11G 安裝文件Oracle
- 11G RAC+DG搭建
- benchmark 壓測Oracle 11gOracle
- sysbench壓測Oracle 11gOracle
- 檢視mysql 的binlog日誌存放的位置(轉)MySql
- 角色resource在11g和12c中的區別
- 有關考11g OCP的重要通知!
- Oracle 11G 安裝 bbed 工具Oracle
- [20190306]11g health monitor.txt
- 11g rac監聽配置解析
- oracle 11g data guard維護Oracle
- 【DG】DataGuard健康檢查 for 11g
- oracle 11g OEM在哪裡找到???Oracle
- oracle 11g 常用命令Oracle
- [20190219]那個更快(11g).txt
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Oracle 11g刪除庫重建Oracle
- Oracle 11G 修改scan_ipOracle
- [20201130]11g or_expand提示.txt
- [20190416]11g下那些latch是Exclusive的.txt
- [20190415]11g下那些latch是共享的.txt
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- 這是考11g OCP最好的時期
- 11G R2中的並行執行,dbms_parallel_execute並行Parallel
- 程式中的日誌
- Oracle 11g RAC 監聽日常管理Oracle
- Oracle 11g 052題庫解析1Oracle
- oracle 11g datagurd主從切換Oracle