LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 18-OCT-2017 00:21:31
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.8.12)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production Start Date 17-OCT-2017 19:45:26 Uptime 0 days 4 hr. 36 min. 5 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /app1/oracle/product/11.2.0/db_1/network/admin/listener.ora Listener Log File /app1/oracle/diag/tnslsnr/hp2/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.8.12)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) The listener supports no services The command completed successfully
TNSLSNR for Linux: Version 11.2.0.4.0 - Production System parameter file is /app1/oracle/product/11.2.0/db_1/network/admin/listener.ora Log messages written to /app1/oracle/diag/tnslsnr/hp/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.8.11)(PORT=1521))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.8.11)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production Start Date 18-OCT-2017 00:04:50 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /app1/oracle/product/11.2.0/db_1/network/admin/listener.ora Listener Log File /app1/oracle/diag/tnslsnr/hp/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.8.11)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Services Summary... Service "SUNTX" has 1 instance(s). Instance "SUNTX", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully
SQL>alter system set local_listener=mytest; System altered
SQL>alter system register;
3、查看监听器状态
LSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.23)(PORT=1525))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 15-MAR-2011 10:43:47 Uptime 0 days 0 hr. 0 min. 56 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /orahome/oracle/product/10.2.0/db_1/network/admin/listener.ora Listener Log File /orahome/oracle/product/10.2.0/db_1/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oraserver)(PORT=1525))) Services Summary... Service "a" has 1 instance(s). Instance "mydata", status READY, has 1 handler(s) for this service... Service "b" has 1 instance(s). Instance "mydata", status READY, has 1 handler(s) for this service... Service "c" has 1 instance(s). Instance "mydata", status READY, has 1 handler(s) for this service... Service "mydata" has 1 instance(s). Instance "mydata", status READY, has 1 handler(s) for this service... Service "mydataXDB" has 1 instance(s). Instance "mydata", status READY, has 1 handler(s) for this service... Service "mydata_XPT" has 1 instance(s). Instance "mydata", status READY, has 1 handler(s) for this service... The command completed successfully