ITPub博客

首页 > 数据库 > Oracle > 如何在不关闭监听的情况下move 或 purge listener.log

如何在不关闭监听的情况下move 或 purge listener.log

Oracle 作者:tolywang 时间:2013-12-09 18:09:25 0 删除 编辑


How to rotate or backup or rename listener.log or purge listener log data to avoid large listener.log file? (Doc ID 1457196.1)

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

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 below Note 135063.1

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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/35489/viewspace-1062812/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    14695628