java-RAC Oracle 连接字符串
时间:2021-07-01 10:21:17
帮助过:2人阅读
String URL=
2 "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=" +
3 "(ADDRESS=(PROTOCOL=TCP)(HOST=ip1)(PORT=1521))" +
4 "(ADDRESS=(PROTOCOL=TCP)(HOST=ip2)(PORT=1521))" +
5 "(LOAD_BALANCE=yes)(FAILOVER=on))" +
6 "(CONNECT_DATA=(SERVICE_NAME=orcl)))" ;
ref
http://wallimn.iteye.com/blog/1345102
java-RAC Oracle 连接字符串
标签: