首页 > 代码库 > 如何清理监听日志
如何清理监听日志
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
如何清理监听日志
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。