Welcome 微信登录

首页 / 数据库 / MySQL / Oracle一个实例配置多个listener或多个端口

Oracle一个实例配置多个listener或多个端口listener.ora文件的内容如下:SID_LIST_LISTENER =  (SID_LIST =    (SID_DESC =      (SID_NAME = PLSExtProc)      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db)      (PROGRAM = extproc)    )    (SID_DESC =      (GLOBAL_DBNAME = jingyong)      (ORACLE_HOME =/u01/app/oracle/product/10.2.0/db)      (SID_NAME = jingyong)    )  ) 
LISTENER =  (DESCRIPTION_LIST =    (DESCRIPTION =      (ADDRESS = (PROTOCOL = TCP)(HOST = jingyong)(PORT = 1521))    )  )上面的配置只配置了一个listener 
下面再增加一个listener_2SID_LIST_LISTENER_2 =  (SID_LIST =    (SID_DESC =      (SID_NAME = PLSExtProc)      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db)      (PROGRAM = extproc)    )    (SID_DESC =      (GLOBAL_DBNAME = jingyong)      (ORACLE_HOME =/u01/app/oracle/product/10.2.0/db)      (SID_NAME = jingyong)    )  ) 
LISTENER_2 =  (DESCRIPTION_LIST =    (DESCRIPTION =      (ADDRESS = (PROTOCOL = TCP)(HOST = jingyong)(PORT = 1522))    )  )SID_LIST_<lisenter name> 这里的<lisenter name>要和LISTENER名称一致。SID_DESC则注册要提供服务的数据库实例名。这样LISTENER2 才能够提供服务。 
再来启动两个listener[oracle@jingyong udump]$ lsnrctl stop listener 
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-JAN-2013 18:06:21 
Copyright (c) 1991, 2005, Oracle.  All rights reserved. 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=jingyong)(PORT=1521)))The command completed successfully[oracle@jingyong udump]$ lsnrctl start listener_2 
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-JAN-2013 18:06:37 
Copyright (c) 1991, 2005, Oracle.  All rights reserved. 
Starting /u01/app/oracle/product/10.2.0/db/bin/tnslsnr: please wait... 
TNSLSNR for Linux: Version 10.2.0.1.0 - ProductionSystem parameter file is /u01/app/oracle/product/10.2.0/db/network/admin/listener.oraLog messages written to /u01/app/oracle/product/10.2.0/db/network/log/listener_2.logListening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jingyong)(PORT=1522))) 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=jingyong)(PORT=1522)))STATUS of the LISTENER------------------------Alias                    listener_2Version                  TNSLSNR for Linux: Version 10.2.0.1.0 - ProductionStart Date                13-JAN-2013 18:06:37Uptime                    0 days 0 hr. 0 min. 0 secTrace Level              offSecurity                  ON: Local OS AuthenticationSNMP                      OFFListener Parameter File  /u01/app/oracle/product/10.2.0/db/network/admin/listener.oraListener Log File        /u01/app/oracle/product/10.2.0/db/network/log/listener_2.logListening Endpoints Summary...  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jingyong)(PORT=1522)))Services Summary...Service "PLSExtProc" has 1 instance(s).  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...Service "jingyong" has 1 instance(s).  Instance "jingyong", status UNKNOWN, has 1 handler(s) for this service...The command completed successfully[oracle@jingyong udump]$ lsnrctl start listener 
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-JAN-2013 18:06:41 
Copyright (c) 1991, 2005, Oracle.  All rights reserved. 
Starting /u01/app/oracle/product/10.2.0/db/bin/tnslsnr: please wait... 
TNSLSNR for Linux: Version 10.2.0.1.0 - ProductionSystem parameter file is /u01/app/oracle/product/10.2.0/db/network/admin/listener.oraLog messages written to /u01/app/oracle/product/10.2.0/db/network/log/listener.logListening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jingyong)(PORT=1521))) 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=jingyong)(PORT=1521)))STATUS of the LISTENER------------------------Alias                    listenerVersion                  TNSLSNR for Linux: Version 10.2.0.1.0 - ProductionStart Date                13-JAN-2013 18:06:41Uptime                    0 days 0 hr. 0 min. 0 secTrace Level              offSecurity                  ON: Local OS AuthenticationSNMP                      OFFListener Parameter File  /u01/app/oracle/product/10.2.0/db/network/admin/listener.oraListener Log File        /u01/app/oracle/product/10.2.0/db/network/log/listener.logListening Endpoints Summary...  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jingyong)(PORT=1521)))Services Summary...Service "PLSExtProc" has 1 instance(s).  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...Service "jingyong" has 1 instance(s).  Instance "jingyong", status UNKNOWN, has 1 handler(s) for this service...The command completed successfully
  • 1
  • 2
  • 下一页
Oracle修改主机名问题解决案例一则Oracle redo文件记录的内容相关资讯      Oracle实例  Oracle Listener 
  • Oracle 关于实例恢复的一个讨论  (08/13/2015 21:01:24)
  • Oracle实例恢复阶段以及flashback  (09/17/2014 17:27:13)
  • 如何绕过Oracle listener 监听的密  (07/22/2014 07:46:01)
  • Oracle 11g在Linux上建立第二个实  (05/28/2015 05:57:28)
  • Oracle 实例创建脚本  (08/14/2014 10:11:56)
  • Oracle创建实例报错处理  (05/26/2014 19:47:29)
本文评论 查看全部评论 (0)
表情: 姓名: 字数

版权所有©石家庄振强科技有限公司2024 冀ICP备08103738号-5 网站地图