11.1、说明:
对于Oracle的JDBC连接,是支持EZ-Connect写法的,即jdbc:oracle:thin:@Server:1521/Database但对于Oracle 11gR2 RAC系统,
如果Server用了ScanName,Database用了数据库的ServiceName,并不能连接到数据库,而是报SID错误,原因可能是此种写法,
JDBC将Database解析为了数据库的SID;
11.2、经过测试,可用如下写法实现11GR2的数据库连接的负载均衡,正确的url为:
jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = <10.122.18.56>)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = <xbpnew>)))