11、升级数据库后的连接方法
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>)))
相关推荐
CoderYYN 2020-08-16
娜娜 2020-07-20
ASoc 2020-11-14
Andrea0 2020-09-18
Cherishyuu 2020-08-19
dongtiandeyu 2020-08-18
大黑牛 2020-08-15
Dullonjiang 2020-08-11
gaozhennan 2020-08-03
mcvsyy 2020-08-02
zbcaicai 2020-07-29
AscaryBird 2020-07-27
liulin0 2020-07-26
ldcwang 2020-07-26
helloxusir 2020-07-25
pengpengflyjhp 2020-07-19
点滴技术生活 2020-07-19
人可 2020-07-18
chenjiazhu 2020-07-08