如何清理监听日志

Posted My Data Support

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何清理监听日志相关的知识,希望对你有一定的参考价值。

1) Stop the listener on a regular basis then you can simply rename the file at the OS level, then on next listener startup, a new one will be created.

OR

2) If you have a 24X7 environment and the listener can not be stopped, then you can use the following steps to rename / move the file without having to restart it: 

LSNRCTL>
LSNRCTL> set current_listener <listenername>
LSNRCTL> set log_status off

In another window rename the log file. Then return to previous window

LSNRCTL> set log_status on

which will create a new and empty listener.log file which will continue logging.  

 

 OR

 3) Follow the document here:

Note 135063.1   How To Change the Listener Log Filename Without Stopping the Listener

以上是关于如何清理监听日志的主要内容,如果未能解决你的问题,请参考以下文章

『ORACLE』 清理监听日志(11g)

Oracle-清理监听日志文件 listener.log

如何删除oracle监听日志

有关监听日志的清理问题

ORACLE清理截断监听日志文件(listener.log)

Oracle 数据库监听日志过大,怎么清除?