ITPub博客

首页 > 数据库 > Oracle > 解决Oracle listener没有自动写日记的问题

解决Oracle listener没有自动写日记的问题

原创 Oracle 作者:zhzhypg 时间:2014-09-17 17:08:18 0 删除 编辑

troubleshooting时需要查询listener的日记,突然发现监听日记好几个月没有写日记了,如下:

[oracle@rac2 log]$ ls -ltrh
total 2.1G
-rw-r----- 1 oracle oinstall 546M Jan  9  2014 listener_rac2_20140109.log
-rw-r----- 1 oracle oinstall 425M Feb 11  2014 listener_rac2_20140211.log
-rw-r----- 1 oracle oinstall 636M Mar 11  2014 listener_rac2_20140311.log
-rw-r----- 1 oracle oinstall 370M Mar 24 17:50 listener_rac2_20140430.log
-rw-r----- 1 oracle oinstall  17M May  1 09:19 listener_rac2.log
-rw-r----- 1 oracle oinstall 116M Sep 17 16:33 sqlnet_20140917.log
-rw-r----- 1 oracle oinstall 8.8K Sep 17 16:48 sqlnet.log

解决办法:
LSNRCTL> show log_status 
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
LISTENER parameter "log_status" set to OFF
The command completed successfully
LSNRCTL> set log_status on
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
LISTENER parameter "log_status" set to ON
The command completed successfully

[oracle@rac2 log]$ ls -ltrh
total 2.1G
-rw-r----- 1 oracle oinstall 546M Jan  9  2014 listener_rac2_20140109.log
-rw-r----- 1 oracle oinstall 425M Feb 11  2014 listener_rac2_20140211.log
-rw-r----- 1 oracle oinstall 636M Mar 11  2014 listener_rac2_20140311.log
-rw-r----- 1 oracle oinstall 370M Mar 24 17:50 listener_rac2_20140430.log
-rw-r----- 1 oracle oinstall 116M Sep 17 16:33 sqlnet_20140917.log
-rw-r----- 1 oracle oinstall 8.8K Sep 17 16:48 sqlnet.log
-rw-r----- 1 oracle oinstall  17M Sep 17 17:04 listener_rac2.log

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

请登录后发表评论 登录
全部评论

注册时间:2014-09-01

  • 博文量
    62
  • 访问量
    161364