清空listener.log

来源:互联网 发布:php empty和! 编辑:程序博客网 时间:2024/06/05 02:52
# su - oracle
$ cd /oracle/product/10.2.0/db_1/network/log/
$ ls -l
total 6136904
-rw-r----- 1 oracle oinstall 3139249490 Jan 20 19:03listener.log
-rw-r--r-- 1 oracle oinstall 2617857 Jan 17 02:08 sqlnet.log
$
$
$ lsnrctl set log_statusoff

LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 -Production on 20-1月 -2009 19:10:53

Copyright (c) 1991, 2005, oracle. All rights reserved.

Connecting to(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mes_ora)(PORT=1521)))
LISTENER parameter "log_status" set to OFF
The command completed successfully
$ mv listener.loglistener.bak
$ ls -l
total 6137000
-rw-r----- 1 oracle oinstall 3139300680 Jan 20 19:10listener.bak
-rw-r--r-- 1 oracle oinstall 2617857 Jan 17 02:08 sqlnet.log
$ lsnrctl set log_statuson

LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 -Production on 20-1月 -2009 19:11:10

Copyright (c) 1991, 2005, oracle. All rights reserved.

Connecting to(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mes_ora)(PORT=1521)))
LISTENER parameter "log_status" set to ON
The command completed successfully
$ ls -l
total 6137016
-rw-r----- 1 oracle oinstall 3139300680 Jan 20 19:10listener.bak
-rw-r--r-- 1 oracle oinstall 6416 Jan 20 19:11 listener.log
-rw-r--r-- 1 oracle oinstall 2617857 Jan 17 02:08 sqlnet.log
$ lsnrctl status

LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 -Production on 20-1月 -2009 19:11:54

Copyright (c) 1991, 2005, oracle. All rights reserved.

Connecting to(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mes_ora)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.1.0 -Production
Start Date 29-11月-2008 05:55:53
Uptime 52 days 13 hr. 16 min. 4 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=loopback)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for thisservice...
Service "jnmes" has 1 instance(s).
Instance "jnmes", status READY, has 1 handler(s) for thisservice...
Service "jnmesXDB" has 1 instance(s).
Instance "jnmes", status READY, has 1 handler(s) for thisservice...
Service "jnmes_XPT" has 1 instance(s).
Instance "jnmes", status READY, has 1 handler(s) for thisservice...
The command completed successfully
0 0
原创粉丝点击