关于连接池
oracle 10g 数据库,两台机器做的rac,机器真实IP地址分别为 10.17.12.5 、10.17.12.7,虚拟IP分别为 10.17.12.6 、10.17.12.8,请问配置连接池的 url 应该怎么写?
开发的 url 是 jdbc:oracle:thin:@172.16.225.172:1521:orcl
[解决办法]
jdbc:oracle:thin:@(DESCRIPTION = (ENABLE = BROKEN)(ADDRESS_LIST =(LOAD_BALANCE = ON)(FAILOVER = YES)(ADDRESS = (PROTOCOL = TCP)(HOST = 10.17.12.6)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 10.17.12.8)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = orcl)(FAILOVER_MODE =(TYPE = SELECT )(METHOD = BASIC ))))
[解决办法]
该回复于2012-02-27 16:54:31被版主删除
[解决办法]
那么实际iP不用配置进去了是吗?