Oracle 默认和非默认监听(三)

2014-11-24 18:59:48 · 作者: · 浏览: 71
=====
[oracle@oms admin]$ lsnrctl status listener1


LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-APR-2010 00:26:03


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


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oms)(PORT=1526)))
STATUS of the LISTENER
------------------------
Alias listener1
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 14-APR-2010 00:24:35
Uptime 0 days 0 hr. 1 min. 28 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/product/10201/network/admin/listener.ora
Listener Log File /oracle/product/10201/network/log/listener1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oms)(PORT=1526)))
Services Summary...
Service "cuug" has 1 instance(s).
Instance "cuug", status READY, has 1 handler(s) for this service...
Service "cuug_XPT" has 1 instance(s).
Instance "cuug", status READY, has 1 handler(s) for this service...
Service "guuc" has 1 instance(s).
Instance "cuug", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully


注意:发现实例注册到这个端口的监听上了,至此,终于明白local_listener参数的作用,默认的值是数据库的global_name,则注册到默认监听;如果设置了新值,比如lsnr2,则根据tnsnames.ora的设置,注册到指定的端口的监听,该端口与某个监听指定的端口一致。