博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【m从翻译os文章】写日志禁令Sqlnet.log和Listener.log
阅读量:6970 次
发布时间:2019-06-27

本文共 1771 字,大约阅读时间需要 5 分钟。

写日志禁令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.

转载地址:http://xuasl.baihongyu.com/

你可能感兴趣的文章
C#中使用SqlBulkCopy的批量插入和OracleBulkCopy的批量插入
查看>>
Redis详解(五)------ redis的五大数据类型实现原理
查看>>
python笔记17-字典如何按value排序
查看>>
Web缓存知识体系
查看>>
【TP3.2】TP3.2的 FIND_IN_SET()的用法
查看>>
BZOJ3265: 志愿者招募加强版(线性规划)
查看>>
static 和 final 关键字 对实例变量赋初始值的影响
查看>>
从世界消失
查看>>
超高逼格Log日志打印
查看>>
Java提高:采用异常链传递异常
查看>>
OpenGL——旋转的六边形(动画)
查看>>
string operation in powershell
查看>>
PyCharm切换Python版本
查看>>
SQL Server中LIKE %search_string% 走索引查找(Index Seek)浅析
查看>>
在WPF中制作正圆形公章
查看>>
dataframe 合并(append, merge, concat)
查看>>
C#获取类名为Internet_Explorer_Server控件的内容
查看>>
几种常用网络传输协议
查看>>
Http请求头和响应头
查看>>
使用C++访问Google API
查看>>