ITPub博客

首页 > 数据库 > Oracle > oracle的监听日志

oracle的监听日志

Oracle 作者:abc1631 时间:2013-07-12 18:12:09 0 删除 编辑

监听日志存放的位置;

[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. All rights reserved.

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 /u01/oracle/product/10.2.0/network/admin/listener.ora
Old Parameter File /u01/oracle/product/10.2.0/network/admin/listener.bak
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 /u01/oracle/product/10.2.0/network/admin/listener.ora
Old Parameter File /u01/oracle/product/10.2.0/network/admin/listener.bak
The command completed successfully
LSNRCTL> exit ----------------退出
[oracle@www log]$ ls
listener.log
-------------------------这个时候监听日志可以正常的写

<!-- 正文结束 -->

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22894829/viewspace-1116460/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2009-11-18

最新文章