日期:2014-05-16  浏览次数:20474 次

数据库连接串的问题。(如果是集群数据库的话)
连接字符串应该改成如下:
jdbc:oracle:thin://172.16.0.47:1521/warehouse?useUnicode=true&characterEncoding=utf-8


 jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.0.12)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.0.22)(PORT = 1521))(LOAD_BALANCE = yes)(FAILOVER = ON)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = rac)(FAILOVER_MODE=(TYPE = SELECT)(METHOD = BASIC)(RETIRES = 20)(DELAY = 15))))