Oracle listener

Co to jest listener

Listener to proces który przyjmuje żądania połączeń klientów z bazą Oracle

Jak zalogować się do listenera i zobaczyć jego ustawienia?

Z powłoki uruchamiamy listener nastepująco:

>lsnrctl

LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 25-MAR-2009 10:26:47
Copyright (c) 1991, 2005, Oracle.  All rights reserved.
Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=1.2.3.4)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.3.0 - Production
Start Date                24-MAR-2009 12:30:45
Uptime                    0 days 21 hr. 57 min. 13 sec
Trace Level               off
Security                  ...
SNMP                      OFF
Listener Parameter File   
        /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File       
       /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=1.2.3.4)(PORT=1521)))
Services Summary...
Service "1.2.3.4" has 1 instance(s).
  Instance "test", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Jakie są pliki konfiguracyjne listenera

W powyższym listingu widzimy wpis informujący nas o ścieżce do pliku konfiguracyjnego.

Listener Parameter File   
        /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora