`

Oracle listener.log 不断增大的问题解决

阅读更多
我们的目的是:不影响生产系统,移除并重新生成listener.log:

*                                                                             *
* Welcome to solaris Version 9 *
*

#
#
# 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
$

listener.bak 怎么处理就不用多说了吧!
分享到:
评论

相关推荐

    处理Oracle 监听文件listener.log问题

    但是,随着监听器运行时间的增长,listener.log文件会不断增大。如果不加以管理,它可能会超过操作系统支持的文件大小限制(如2GB),从而导致新的连接无法处理。本文将介绍如何管理和清理listener.log文件,以确保...

    Oracle9i的init.ora参数中文说明

    Oracle9i初始化参数中文说明 Blank_trimming: 说明: 如果值为TRUE, 即使源长度比目标长度 (SQL92 兼容) 更长, 也允许分配数据。 值范围: TRUE | FALSE 默认值: FALSE serializable: 说明: 确定查询是否获取表级...

    oracle数据库的启动和关闭

    SQL*NET产生的监听器日志(LISTENER.LOG)也会不断增大,同样需要进行管理。通过`lsnrctl status`命令可查看其位置,并适时清理或归档以节省空间。 其次,改名ALERT日志文件也是一个有效的管理策略。ALERT日志记录...

    exp/imp2导入导出

    随着业务的发展,数据量不断增大,数据库的维护和管理变得日益复杂。其中,数据的备份与恢复、数据库之间的数据迁移成为日常运维中的重要环节。"exp/imp2导入导出"即是指使用Oracle的expdp和impdp工具进行的数据导入...

    Oracle监听日志定期清理

    由于监听日志文件的持续增大,如果不及时进行清理,除了可能出现上述的稳定性问题之外,还可能占用过多磁盘空间,影响服务器性能。因此,对于使用Oracle数据库的用户来说,定期清理监听日志是一项必要的维护工作。 ...

    datagurad优化

    在构建和优化Oracle Data Guard环境中,关注多个关键因素对于确保数据保护和性能至关重要。以下是针对Data Guard优化的一些重要知识点: 1. **需要的带宽**:带宽是数据传输的基础,需要准确估算数据库在高峰和稳定...

    基于rman的数据库迁移(ASMRAC数据库).pdf

    2. **修改参数文件**: 迁移前需要修改目标数据库的参数文件,例如`control_files`、`db_create_file_dest`和`local_listener`,确保指向新的数据库位置和监听器设置。此外,可能还需要根据目标硬件配置调整参数,如...

Global site tag (gtag.js) - Google Analytics