oracle 查看日誌

1、檢查alert日誌sql

 現象描述:  
 oracle平常維護中常常須要檢查alert告警日誌,查看數據庫是否有問題。
 緣由分析:  
 oracle11g修改了日誌系統,不在使用oracle9的alert_$ORACLE_SID.log日誌,修改成Diag Alert 和Diag Trace兩個目錄保存xml格式和文本格式的日誌,這個兩個目錄分別放置於/opt/oracle/diag/rdbms/excetop/excetop/trace和/opt/oracle/diag/rdbms/excetop/excetop/alert目錄下,也能夠使用
sql>select name ,value from  v$diag_info命令來查詢。也能夠使用Enterprise Manager,進入Oracle database home page,在Related Links點擊Alert Log  Contents查看。數據庫

2、監聽日誌oracle

 

相關文章
相關標籤/搜索