oracle笔记

适用负载均衡时,如果程序采用jdbc连接,应该按以下方式连接:

jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL =TCP)(HOST=rac1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=rac2)(PORT=1521))(FAILOVER=on)(LOAD_BALANCE=on)(CONNECT_DATA=(SERVICE_NAME=ORCL)))

你可能感兴趣的:(oracle,jdbc)