如果连接时候变得较慢 查看oracle日志记录,可能是因为此文件太大,超过2G, 需要定期清理,(如果多用户,记得用root,可能没权限) 查看listener.log? fi
如果连接时候变得较慢 查看oracle日志记录,可能是因为此文件太大,超过2G,
需要定期清理,(如果多用户,记得用root,可能没权限)
查看listener.log?
find / -name listener.log
经查看,竟然高达2G得日志数据,由于一些老旧的OS不支持2GB以上的文件,故当listener.log文件
超过2GB时,会出现无法处理新的连接,新的操作系统虽然不会出现这个问题,但我们依然需要对其
进行定期处理清理。
Listener log日志文件处理
[oracle@localhost home]$ lsnrctl
LSNRCTL> set log_status off
Connecting to (DESCRIPTioN=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
LISTENER parameter "log_status" set to OFF
The command completed successfully
LSNRCTL> show log_status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
LISTENER parameter "log_status" set to OFF
The command completed successfully
LSNRCTL> exit
[oracle@localhost home]$ find -name listener.log
home/oracle/app/oracle/diag/tnslsnr/localhost/listener/trace/listener.log
[oracle@localhost ~]$ cd /home/oracle/app/oracle/diag/tnslsnr/localhost/listener/trace/
[oracle@localhost trace]$ mv listener.log listener.log.20191127
[oracle@localhost trace]$ ls
listener.log.20191127 ora_2617_140154513196800.trc
[oracle@localhost trace]$ lsnrctl
LSNRCTL> set log_status on
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
LISTENER parameter "log_status" set to ON
The command completed successfully
LSNRCTL> show log_status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
LISTENER parameter "log_status" set to ON
The command completed successfully
LSNRCTL> reload
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
The command completed successfully
LSNRCTL> exit
[oracle@localhost trace]$
--结束END--
本文标题: 处理Oracle 监听文件listener.log问题
本文链接: https://lsjlt.com/news/51241.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0