实现Oracle非1521标准端口动态注册(二)

2015-11-10 12:16:32 · 作者: · 浏览: 18
: please wait...


TNSLSNR for Linux: Version 11.2.0.4.0 - Production


System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora


Log messages written to /u01/app/oracle/diag/tnslsnr/aaalife/listener/alert/log.xml


Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))


STATUS of the LISTENER


------------------------


Alias? ? ? ? ? ? ? ? ? ? LISTENER


Version? ? ? ? ? ? ? ? ? TNSLSNR for Linux: Version 11.2.0.4.0 - Production


Start Date? ? ? ? ? ? ? ? 07-SEP-2015 01:27:53


Uptime? ? ? ? ? ? ? ? ? ? 0 days 0 hr. 0 min. 0 sec


Trace Level? ? ? ? ? ? ? off


Security? ? ? ? ? ? ? ? ? ON: Local OS Authentication


SNMP? ? ? ? ? ? ? ? ? ? ? OFF


Listener Parameter File? /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora


Listener Log File? ? ? ? /u01/app/oracle/diag/tnslsnr/aaalife/listener/alert/log.xml


Listening Endpoints Summary...


(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))


The listener supports no services


The command completed successfully


默认显示的还有1521端口监听程序。同时,发现其实当前服务器上是由两个监听器运行的。


[oracle@aaalife admin]$ lsnrctl status listener


LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 07-SEP-2015 01:30:13


Copyright (c) 1991, 2013, Oracle.? All rights reserved.


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))


STATUS of the LISTENER


------------------------


Alias? ? ? ? ? ? ? ? ? ? LISTENER


Version? ? ? ? ? ? ? ? ? TNSLSNR for Linux: Version 11.2.0.4.0 - Production


Start Date? ? ? ? ? ? ? ? 07-SEP-2015 01:27:53


Uptime? ? ? ? ? ? ? ? ? ? 0 days 0 hr. 2 min. 19 sec


Trace Level? ? ? ? ? ? ? off


Security? ? ? ? ? ? ? ? ? ON: Local OS Authentication


SNMP? ? ? ? ? ? ? ? ? ? ? OFF


Listener Parameter File? /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora


Listener Log File? ? ? ? /u01/app/oracle/diag/tnslsnr/aaalife/listener/alert/log.xml


Listening Endpoints Summary...


(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))


Services Summary...


Service "aaadb" has 1 instance(s).


Instance "aaadb", status READY, has 1 handler(s) for this service...


Service "aaadbXDB" has 1 instance(s).


Instance "aaadb", status READY, has 1 handler(s) for this service...


The command completed successfully


[oracle@aaalife admin]$


[oracle@aaalife admin]$ lsnrctl status my_listener


LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 07-SEP-2015 01:30:29


Copyright (c) 1991, 2013, Oracle.? All rights reserved.


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1531)))


STATUS of the LISTENER


------------------------


Alias? ? ? ? ? ? ? ? ? ? LISTENER


Version? ? ? ? ? ? ? ? ? TNSLSNR for Linux: Version 11.2.0.4.0 - Production


Start Date? ? ? ? ? ? ? ? 07-SEP-2015 01:17:52


Uptime? ? ? ? ? ? ? ? ? ? 0 days 0 hr. 12 min. 37 sec


Trace Level? ? ? ? ? ? ? off


Security? ? ? ? ? ? ? ? ? ON: Local OS Authentication


SNMP? ? ? ? ? ? ? ? ? ? ? OFF


Listener Parameter File? /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora


Listener Log File? ? ? ? /u01/app/oracle/diag/tnslsnr/aaalife/listener/alert/log.xml


Listening Endpoints Summary...


(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1531)))


(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1531)))


The listener supports no services


The command completed successfully


上面信息显示出几个细节:


ü? 我们在listener.ora文件中配置了一个自定义监听器my_listener,监听1531端口。但是系统当前默认监听器依然存在,并且可运行,在1521端口。my_listener监听器运行在1531端口;


ü? Oracl