Listener

    版本為 08:20, 27 Nov 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    啟動/關閉 Listener

    $ su - oracle
    $ lsnrctl start
    
    LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 20-MAR-2014 09:42:49
    
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    
    Starting /opt/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    
    TNSLSNR for Linux: Version 10.2.0.5.0 - Production
    System parameter file is /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /opt/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora10g.localdomain)(PORT=1521)))
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora10g.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.5.0 - Production
    Start Date                20-MAR-2014 09:42:49
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File         /opt/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora10g.localdomain)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    
    $ lsnrctl status
    
    LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 20-MAR-2014 09:44:11
    
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora10g.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.5.0 - Production
    Start Date                20-MAR-2014 09:42:49
    Uptime                    0 days 0 hr. 1 min. 21 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File         /opt/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora10g.localdomain)(PORT=1521)))
    Services Summary...
    Service "win" has 1 instance(s).
      Instance "win", status READY, has 1 handler(s) for this service...
    Service "winXDB" has 1 instance(s).
      Instance "win", status READY, has 1 handler(s) for this service...
    Service "win_XPT" has 1 instance(s).
      Instance "win", status READY, has 1 handler(s) for this service...
    The command completed successfully
    
    $ lsnrctl stop
    
    LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 20-MAR-2014 09:44:38
    
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora10g.localdomain)(PORT=1521)))
    The command completed successfully
    

    設定檔 listener.ora

    Powered by MindTouch Core