I'm trying to create a JDBC connection string that will allow a failover to a secondary database should the primary fail. I currently have the following string but when the primary fails the string doesn't connect to the secondary db. If I put the secondary detail first in the string it works. It appears that if the first part of the string hits a failed db it doesn't continue onto the second part of the string.
jdbc:oracle:thin:@
(
DESCRIPTION_LIST=
(LOAD_BALANCE=off)
(FAILOVER=on)
(DESCRIPTION=
(CONNECT_TIMEOUT=3)
(RETRY_COUNT=3)
(ADDRESS_LIST=
(LOAD_BALANCE=on)
(ADDRESS=
(PROTOCOL=TCP)
(HOST=11.111.1.111)
(PORT=1234)
)
)
(
CONNECT_DATA=(SERVICE_NAME=<servicename1>)
)
)
(DESCRIPTION=
(ADDRESS_LIST=
(LOAD_BALANCE=on)
(ADDRESS=
(PROTOCOL=TCP)
(HOST=22.222.2.222)
(PORT=1234)
)
)
(
CONNECT_DATA=(SERVICE_NAME=servicename2)
)
)
)
Any advise?