1.先去监听日志的目录里面并查看大小
cd $ORACLE_HOME/network/log/
du -sh *
2.到listener里面,查看对应的log_file和log_status
[oraarp@localhost log]$ lsnrctl
LSNRCTL>
show log_file
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
LISTENER parameter "log_file" set to listener.log
The command completed successfully
LSNRCTL>
show log_status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
LISTENER parameter "log_status" set to ON
The command completed successfully
3.现在可以关闭listener log
LSNRCTL>
set log_status off
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
LISTENER parameter "log_status" set to OFF
The command completed successfully
4.然后mv以前的日志文件
[oraarp@localhost log]$ mv listener.log listener.log.bak
5.再开启listerer log
LSNRCTL>
set log_status on
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
LISTENER parameter "log_status" set to ON
The command completed successfully
这个时候,就会产生一个新的默认名字为listener.log日志。这个时候你就可以删除以前的log日志了。
阅读(8112) | 评论(0) | 转发(1) |