JDBC url for oracle RAC
Posted by Enrico Giurin Thu, 12 Apr 2007 01:07:00 GMT
If you have to connect to oracle RAC (Real Application Cluster) using JDBC with thin driver, the classic url:jdbc:oracle:thin:@<HOST>:1521:<SID>Instead, you must use this url:
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service)))


