一个数据库实例如何建立多个监听?
默认已经有一个LISTENER我想用netca添加了一个新的监听,TEST
listener.ora 中的信息如下
TEST =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1555))
    )配置好了之后,但是我用PLSQL Developer 联不了数据库!

解决方案 »

  1.   


    添加监听用net manager 工具。 一般一个实例对应一个Listener。
      

  2.   

    使用net manager 工具添加或删除监听
      

  3.   

    开始菜单-->程序-->oracle目录-->配置和移植工具-->Net Configuration AssistantListener配置,按照提示配置即可。
      

  4.   

    tnsnames.ora 没有加? 加了,直接用1521 的端口的,pl/sql 可以连上数据,
    用1555端口的提示 ORA-12514:TNS:监听程序无法识别连接描述符中的请求的服务
      

  5.   


    在命令行里看看lsnrctl的status
      

  6.   

    [oracle@localhost ~]$ lsnrctl  statusLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 16-JUL-2010 11:11:18Copyright (c) 1991, 2005, Oracle.  All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                16-JUL-2010 10:23:27
    Uptime                    0 days 0 hr. 47 min. 50 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    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=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
      

  7.   

    [oracle@localhost ~]$ lsnrctl  status testLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 16-JUL-2010 11:11:30Copyright (c) 1991, 2005, Oracle.  All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1525)))
    STATUS of the LISTENER
    ------------------------
    Alias                     TEST
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                16-JUL-2010 09:55:10
    Uptime                    0 days 1 hr. 16 min. 20 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    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/test.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1525)))
    The listener supports no services
    The command completed successfully