【翻译自mos文章】禁止写入日志到Sqlnet.log和Listener.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.

时间: 2025-01-03 19:24:14

【翻译自mos文章】禁止写入日志到Sqlnet.log和Listener.log的相关文章

【翻译自mos文章】在Oracle GoldenGate中循环使用ggserr.log的方法

在OGG中循环使用ggserr.log的方法: 参考原文: OGG How Do I Recycle The "ggserr.log" File? (Doc ID 967932.1) 适用于: Oracle GoldenGate - Version 4.0.0 and later Generic Linux 问题 GoldenGate的 ggserr.log 日志文件包括有关 GoldenGate 事件的信息,比如:进程启动,关闭,error ,warning.该文件可能会变的很大.为

【翻译自mos文章】升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息

注:与本文有关的文章为:http://blog.csdn.net/msdnchina/article/details/43763927 升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息 翻译自mos文章:NUMA warning message appear after upgrade to 11.2.0.4 (文档 ID 1600824.1)1 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.4 and

【翻译自mos文章】在重建控制文件之后,丢失了数据库补充日志信息(Missed Database Supplemental Log Information)

在重建控制文件之后,丢失了数据库补充日志信息(Missed Database Supplemental Log Information) 参考原文: Missed Database Supplemental Log Information After Recreate Controlfile In 10g Database. (Doc ID 1474952.1) 适用于: Oracle Server - Enterprise Edition - Version 10.1.0.2 and late

【翻译自mos文章】11gR2中的asm后台进程

11gR2中的asm后台进程 参考原文: ASM Background Processes in 11.2 (Doc ID 1641678.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.4 [Release 11.2] Information in this document applies to any platform. 1 ASMB - ASM Background Process 与as

【翻译自mos文章】使用buffer memory 参数来调整rman的性能。

使用buffer memory 参数来调整rman的性能. 本文翻译自mos文章:RMAN Performance Tuning Using Buffer Memory Parameters (Doc ID 1072545.1) rman 性能调整的目的是分辨一个特定的backup or  restore job的瓶颈. 并使用使用rman命令.初始化参数 或者对physical media的调整来提高整体的性能. 由于数据库容量持续变大,在客户的环境中,几十到几百TB的数据库很常见, serv

【翻译自mos文章】Main Note - ogg的 Supplemental Logging and TRANDATA

Main Note - ogg的 Supplemental Logging and TRANDATA 参加原文: Main Note - Supplemental Logging and TRANDATA for OGG (Doc ID 1537838.1) 适用于 Oracle GoldenGate - Version 9.5_EA and later Information in this document applies to any platform. 目的 从oracle redo l

【翻译自mos文章】注意: ASMB process exiting due to lack of ASM file activity

注意: ASMB process exiting due to lack of ASM file activity 参考原文: NOTE: ASMB process exiting due to lack of ASM file activity (Doc ID 754110.1) 适用于: Oracle Server - Enterprise Edition - Version 10.1.0.2 to 11.2.0.4 [Release 10.1 to 11.2] Information in

【翻译自mos文章】当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误

当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误 翻译自mos文章:When NFS Server Is Down, Oracle Server Freezes With No Errors In Alert Log File (文档 ID 1316251.1) 适用于: Oracle Server - Enterprise Edition - Version: 10.2.0.4 and later   [Release: 10.2 and later

【翻译自mos文章】asm 归档路径满了

asm 归档路径满了 参考原文: ASM Archive destination is full. (Doc ID 351547.1) 适用于: Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.1.0.7 This problem can occur on any platform. 症状: 1)归档路径满了 2)归档文件被存储于asm中. 原因: asm 磁盘组消耗完了空间. 解决方法: 1)在数据库实例中,编辑好如下脚