Oracle RAC database option

You can use Oracle Real Application Clusters (RAC) in place of a simple Oracle database. In this case, you must replace the JDBC URL used in the examples with the following:

jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<HOST>)(PORT=<PORT>))(ADDRESS=(PROTOCOL=TCP)(HOST=<HOST>)(PORT=<PORT >))(FAILOVER=ON)(LOAD_BALANCE=ON))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=<NAME>)))

Where <HOST>, <PORT> and <NAME> are replaced by the corresponding names in your network configuration.