Component: JDBC
Most people used Java Oracle Thin driver provided by Java instead of download the full ojdbc.jar client.
Therefore, this post show the syntax that should be used for multiple nodes active/active cluster database
Jdbc:oracle:thin@(DESCRIPTION=(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)(HOST=
(ADDRESS=(PROTOCOL=TCP)(HOST=
(ADDRESS=(PROTOCOL=TCP)(HOST=
……
(ADDRESS=(PROTOCOL=TCP)(HOST=
(CONNECT_DATA=(SERVICE_NAME=
(GLOBAL_NAME=
(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
Where
1521 is Oracle listener port
The FAIL_OVER_MODE is same like the one configured in tnsnames.ora, which make use of basic fail-over.
No comments:
Post a Comment