ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle清空listener.log

oracle清空listener.log

原创 Linux操作系统 作者:wulolo 时间:2013-09-02 14:37:15 0 删除 编辑

# 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:03 listener.log

-rw-r--r-- 1 oracle oinstall 2617857 Jan 17 02:08 sqlnet.log

$

$

$ lsnrctl set log_status off


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.log listener.bak

$ ls -l

total 6137000

-rw-r----- 1 oracle oinstall 3139300680 Jan 20 19:10 listener.bak

-rw-r--r-- 1 oracle oinstall 2617857 Jan 17 02:08 sqlnet.log

$ lsnrctl set log_status on


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:10 listener.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 this service...

Service "jnmes" has 1 instance(s).

Instance "jnmes", status READY, has 1 handler(s) for this service...

Service "jnmesXDB" has 1 instance(s).

Instance "jnmes", status READY, has 1 handler(s) for this service...

Service "jnmes_XPT" has 1 instance(s).

Instance "jnmes", status READY, has 1 handler(s) for this service...

The command completed successfully

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

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

注册时间:2012-09-06

  • 博文量
    21
  • 访问量
    80370