Oracle 双监听器的配置

php中文网
发布: 2016-06-07 17:24:04
原创
1224人浏览过

以Oracle Net看,数据库服务器可能也是客户端,因为tnsnames.ora可以有服务器的描述。也就是,只有监听器才会一直是服务器

oracle net看,数据库服务器可能也是客户端,因为tnsnames.ora可以有服务器的描述。也就是,只有监听器才会一直是服务器

实例:监听=n:m

㈠ 双监听器的好处:

① 客户端故障转移--CF

② 客户端负载均衡--CLB

㈡ 注意事项:

琅琅配音
琅琅配音

全能AI配音神器

琅琅配音 208
查看详情 琅琅配音

① 要保证1521端口可用,否则,,OEM将不可用,须emca重配

② 非标端口使用静态注册是个比较好的实践

配置案例:

[oracle@localhost admin]$ cat listener.ora 
think = 
  (DESCRIPTION = 
    (load_balance = on) 
    (failover = on) 
    (ADDRESS_LIST = 
      (ADDRESS=(PROTOCOL = tcp)(HOST= 192.168.1.113)(PORT= 1521) 
      (ADDRESS=(PROTOCOL = tcp)(HOST= 192.168.1.113)(PORT= 1522) 
    ) 
    ) 
  ) 
 
SID_LIST_think = 
  (SID_LIST = 
    (SID_DESC = 
      (GLOBAL_DBNAME = emrep.us.oracle.com) 
      (SID_NAME = emrep) 
      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1))) 
 
water = 
  (DESCRIPTION = 
    (load_balance = on) 
    (failover = on) 
    (ADDRESS_LIST = 
      (ADDRESS=(PROTOCOL = tcp)(HOST= 192.168.1.113)(PORT= 1521)) 
      (ADDRESS=(PROTOCOL = tcp)(HOST= 192.168.1.113)(PORT= 1522)) 
    ) 
    ) 
  ) 
 
SID_LIST_water = 
  (SID_LIST = 
    (SID_DESC = 
      (GLOBAL_DBNAME = emrep.us.oracle.com) 
      (SID_NAME = emrep) 
      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1))) 
       
 
[oracle@localhost admin]$ lsnrctl status water 
 
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-DEC-2012 21:47:22 
 
Copyright (c) 1991, 2005, Oracle.  All rights reserved. 
 
Connecting to (DESCRIPTION=(load_balance=on)(failover=on)(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.113)(PORT=1521))) 
STATUS of the LISTENER 
------------------------ 
Alias                    LISTENER 
Version                  TNSLSNR for Linux: Version 10.2.0.1.0 - Production 
Start Date                10-DEC-2012 20:02:23 
Uptime                    0 days 1 hr. 44 min. 58 sec 
Trace Level              off 
Security                  ON: Local OS Authentication 
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=localhost.localdomain)(PORT=1521))) 
Services Summary... 
Service "emrep.us.oracle.com" has 1 instance(s). 
  Instance "emrep", status READY, has 1 handler(s) for this service... 
Service "emrep_XPT.us.oracle.com" has 1 instance(s). 
  Instance "emrep", status READY, has 1 handler(s) for this service... 
The command completed successfully 
 
  如果1521和1522并存,在业务不繁忙时,listener进程只会使用1521   
   
[oracle@localhost admin]$ lsnrctl status water 
 
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-DEC-2012 21:48:45 
 
Copyright (c) 1991, 2005, Oracle.  All rights reserved. 
 
Connecting to (DESCRIPTION=(load_balance=on)(failover=on)(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.113)(PORT=1522))) 
STATUS of the LISTENER 
------------------------ 
Alias                    water 
Version                  TNSLSNR for Linux: Version 10.2.0.1.0 - Production 
Start Date                10-DEC-2012 21:24:17 
Uptime                    0 days 0 hr. 24 min. 28 sec 
Trace Level              off 
Security                  ON: Local OS Authentication 
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/water.log 
Listening Endpoints Summary... 
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.113)(PORT=1522))) 
Services Summary... 
Service "emrep.us.oracle.com" has 1 instance(s). 
  Instance "emrep", status UNKNOWN, has 1 handler(s) for this service... 
The command completed successfully 

linux

相关标签:
最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门推荐
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号