首页 > 数据库 > Oracle > oracle的监听日志
监听日志存放的位置;
[oracle@www log]$ pwd
/u01/oracle/product/10.2.0/network/log
[oracle@www log]$ ls -l
总计 32
-rw-r----- 1 oracle oinstall 30445 07-25 18:03 listener.log
日常维护中误删除监听日志,但是监听还能正常工作
那么我们测试监听日志被删除后,重新写入监听日志的一个过程
[oracle@www log]$ rm -rf listener.log
[oracle@www log]$ ls
[oracle@www log]$ lsnrctl
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 07-AUG-2012
19:51:35
Copyright (c) 1991, 2005, Oracle.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> set log_status off
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
LISTENER parameter "log_status" set to OFF
The command completed successfully
LSNRCTL> save_config
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
Saved LISTENER configuration parameters.
Listener Parameter File
Old Parameter File
The command completed successfully
LSNRCTL> set log_status on
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
LISTENER parameter "log_status" set to ON
The command completed successfully
LSNRCTL> save_config
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
Saved LISTENER configuration parameters.
Listener Parameter File
Old Parameter File
The command completed successfully
LSNRCTL> exit
[oracle@www log]$ ls
listener.log
-------------------------这个时候监听日志可以正常的写
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22894829/viewspace-1116460/ ,如需转载,请注明出处,否则将追究法律责任。