11G Oracle 關閉監聽XML日誌產生的方法

charsi發表於2016-09-01
設定如下兩個引數

1)To avoid generating or reduce the xml files, please set the following parameter:
In sqlnet.ora

DIAG_ADR_ENABLED=off

In listener.ora

DIAG_ADR_ENABLED_=off

Where the should  be replaced with the actual name of the configured listener(s) in the listener.ora file.  
For example, if the listener name is 'LISTENER_SCAN1', the parameter should be:
DIAG_ADR_ENABLED_LISTENER_SCAN1=OFF
-Reload or restart the TNS Listener for the parameter change to take effect.

設定這兩個引數不會影響到listener.log日誌的產生。
相比直接關閉Listener log的方式,還保留原有日誌的產生.

參考:
Excessive Listener XML FILES CREATED IN $GRID_HOME/log/diag/tnslsnr (Doc ID 1927067.1)

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

相關文章