oracle 中 alert 報警日誌過大的處理方法

feelpurple發表於2015-11-13
資料庫中的報警日誌過大,導致無法開啟閱讀

[oracle@tran110 trace]$ du -sh alert_orcl.log
38M alert_orcl.log

對原來的報警日誌改名進行備份

[oracle@tran110 trace]$ mv alert_orcl.log alert_orcl.log_bk_20151113

建立新的 alert 日誌

[oracle@tran110 trace]$ touch alert_orcl.log alert_orcl.log

切換日誌,檢視新的日誌檔案能否正常寫入資訊

[oracle@tran110 ~]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.3.0 Production on Fri Nov 13 16:53:56 2015


Copyright (c) 1982, 2011, Oracle.  All rights reserved.




Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> alter system switch logfile;


System altered.

檢視日誌的內容

[oracle@tran110 trace]$ tail -20 alert_orcl.log
Fri Nov 13 16:54:03 2015
Thread 1 advanced to log sequence 2912 (LGWR switch)
  Current log# 2 seq# 2912 mem# 0: /u01/app/oracle/oradata/orcl/redo02.log




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

相關文章