日期:2014-05-16  浏览次数:20438 次

Orace 11g 监听 配置修改 说明


 

在之前的Blog中有三篇文章提到了Oracle的监听,如下:

 

OracleListener 动态注册 与 静态注册

http://blog.csdn.net/tianlesoftware/article/details/5543166

 

Oracle 监听(Listener) 中 services 说明

http://blog.csdn.net/tianlesoftware/article/details/6617827

 

Oracle 数据库监听配置

http://blog.csdn.net/tianlesoftware/article/details/4861572

 

 

Oracle的监听(Listener)在缺省情况下,会在文件中记录日志,记录数据库实例注册操作、客户端的连接等。

 

Oracle 11g中的信息如下:

[oracle@dave ~]$ lsnrctl status

 

LSNRCTL for Linux: Version 11.2.0.3.0 - Productionon 22-DEC-2012 21:36:43

 

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

 

Connecting to(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.4)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version11.2.0.3.0 - Production

Start Date                22-DEC-2012 21:31:53

Uptime                    0 days 0 hr. 4 min. 50 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File  /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

Listener Log File        /u01/app/oracle/diag/tnslsnr/dave/listener/alert/log.xml

Listening Endpoints Summary...

 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.4)(PORT=1521)))

Services Summary...

Service "dave" has 2 instance(s).

 Instance "dave", status UNKNOWN, has 1 handler(s) for thisservice...

 Instance "dave", status READY, has 1 handler(s) for thisservice...

Service "daveXDB" has 1instance(s).

 Instance "dave", status READY, has 1 handler(s) for thisservice...

The command completed successfully

 

 

这个是Oracle 11g里的listener 的保存位置。在Oracle 11g中使用的是ADR,关于ADR 参考:

Oracle 11g 新特性 -- 自动诊断资料档案库(ADR) 说明

http://blog.csdn.net/tianlesoftware/article/details/8222724

 

这里是个xml文件,不方便文件,我们可以去trace目录下,看文本格式的:

[oracle@dave trace]$ pwd

/u01/app/oracle/diag/tnslsnr/dave/listener/trace

[oracle@dave trace]$ ls

listener.log

[oracle@dave trace]$

 

[oracle@dave trace]$ tail -20 listener.log

Sat Dec 22 21:33:39 2012

22-DEC-2012 21:33:39 * service_update *dave * 0

22-DEC-2012 21:33:42 * service_update *dave * 0

22-DEC-2012 21:33:45 * service_update *dave * 0

Sat Dec 22 21:34:18 2012

22-DEC-2012 21:34:18 * service_update *dave * 0

22-DEC-2012 21:34:21 * service_update *dave * 0

22-DEC-2012 21:34:24 * service_update *dave * 0

22-DEC-2012 21:34:27 * service_update *dave * 0

Sat Dec 22 21:34:48 2012

22-DEC-2012 21:34:48 * service_update *dave * 0

Sat Dec 22 21:35:06 2012

22-DEC-2012 21:35:06 * service_update *dave * 0

Sat Dec 22 21:36:18 2012

22-DEC-2012 21:36:18 * service_update *dave * 0

Sat Dec 22 21:36:43 2012

WARNING: Subscription for node down eventstill pending<