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



最新文章

  1. 【LFS】简易LFS搭建指南
  2. 误打误撞写了段能让电脑奔溃的JS代码,但是自己不知道为什么,高手看到可以解答下吗?
  3. JS完成改变新闻字体大中小的显示
  4. vijosP1059 积木城堡
  5. php 10.2总
  6. android学习13——android egl hello world
  7. [bzoj1227] [SDOI2009]虔诚的墓主人
  8. Android Studio 2.0 Preview 4 的逆袭以及各种神注释
  9. Linux高级运维 第二章 Linux基本操作和自己动手组装服务器
  10. VMware12上安装CentOS7无法上网问题
  11. 每天CSS学习之color
  12. Eclipse 通过JPA自动生成注解实体
  13. AutoCAD.net-错误消息大全
  14. Python Django框架笔记(五):模型
  15. 斯坦福CS231n深度学习计算机视觉
  16. HDU 1176:免费馅饼(DP,自认为很详细的解释)
  17. Z-tree 统计每一父节点的叶子节点数(看这一篇就够了)
  18. 删除map、list集合元素总结
  19. Ruby on Rails 生成指定版本的 Rails 项目
  20. 【BZOJ】4152: [AMPPZ2014]The Captain【SLF优化Spfa】

热门文章

  1. VirtualBox开发环境的搭建详解
  2. ZXing工具类v1.0
  3. 使用数组实现队列----《数据结构与算法分析---C语言描述》
  4. 基于visual Studio2013解决C语言竞赛题之1027 YN
  5. hdu5338 ZZX and Permutations
  6. 【剑指offer】从上向下打印二叉树
  7. 【视频】零基础学Android开发:蓝牙聊天室APP(四)
  8. ASP.NET - 出错页
  9. 代码格式化工具Astyle配置
  10. Mac 安装配置启动Tomcat