java连接oracle集群

1.jdbc.url=jdbc:oracle:thin:@192.168.1.12:1521/orcl

2.jdbc.url=jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.204.7.87)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 10.204.7.89)(PORT = 1521))(FAILOVER=ON)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = tyyj)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 5))))

posted @ 2018-08-23 18:16  左右逢源  阅读(2102)  评论(0编辑  收藏  举报