今天在测试机上, 误删除listener.log,重建后居然没有内容写进来,
执行:
$ Lsnrctl status
发现正常
$ lsnrctl
>Show log_file
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mant)(PORT=1521)))
LISTENER parameter "log_file" set to listener.log
The command completed successfully
>show log_status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mant)(PORT=1521)))
LISTENER parameter "log_status" set to ON
The command completed successfully
很是郁闷了一会儿 。
> set log_status off ;
> set log_status on;
再观察listener.log,已经有记录了 !
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/65579/viewspace-207211/ ,如需转载,请注明出处,否则将追究法律责任。