【翻譯自mos文章】禁止寫入日誌到Sqlnet.log和Listener.log,sqlnet.log位置

來源:互聯網
上載者:User

【翻譯自mos文章】禁止寫入日誌到Sqlnet.log和Listener.log,sqlnet.log位置

禁止寫入日誌到Sqlnet.log和Listener.log

參考原文:
How to Disable Logging to the Sqlnet.log and the Listener.log (Doc ID 162675.1)

適用於:
Oracle Net Services
Information in this document applies to any platform.
Checked for relevance on 15-Jan-2012

解決方案:

Disable Client / Server logging

To disable Oracle Net logging to the sqlnet.log file, add the following parameters
and values to the SQLNET.ORA file:

Unix: LOG_DIRECTORY_CLIENT = /dev/null OR LOG_FILE_CLIENT = /dev/null

Windows: LOG_DIRECTORY_CLIENT = NULL

Default  location of the net admin files is ORACLE_HOME/network/admin
Any process already running will continue to log to the sqlnet.log file, untill it is restarted.



Disable Listener Logging

Method 1.
In order to disable logging without stopping the listener, using the LSNRCTL command as follows:

LSNRCTL>set current_listener <listener_name> (if not using default LISTENER)
LSNRCTL>set LOG_STATUS off
LSNRCTL>save_config


If you're trying to disable listener logging temporarily, do not issue SAVE_CONFIG.
Once listener logging is disabled, you can now safely delete or archive the existing listener log.
To restore logging again and/or to create a new listener log, simply enable logging as follows:

LSNRCTL>set current_listener <listener_name> (if not using default LISTENER)
LSNRCTL>set LOG_STATUS on





Method 2.
You can also edit the LISTENER.ORA file and set LOGGING_<listener_name> to OFF LOGGING_<listener_name>=OFF
This requires that a lsnrctl reload or restart take place in order to pick up the changes.
Listener.ora file location can be found with command lsnrctl status, showing the file is use by the listener.



Warning! Disabling Oracle Net logging is not recommended and should only be used under particular circumstances and/or under instruction by Oracle Support.


log4net在sql server中成功,但不可以寫入access?

目錄的許可權開啟
 
log4net在c#開發中的執行個體,並將日誌輸出到sql資料庫

周公的部落格-log4net使用詳解:
blog.csdn.net/...3.aspx
蠻詳細的。
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.