oracle没有listener怎么搞,解决Oracle listener没有自动写日记的问题

在排查故障时,发现Oracle监听器的日志已几个月未更新。通过LSNRCTL命令查看,发现log_status参数设置为OFF。解决方法是使用LSNRCTL工具将log_status设置为ON,之后监听器日志开始记录。
摘要由CSDN通过智能技术生成

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值