JDBC to connect DB2 Database during Oracle failover
843859Aug 29 2008 — edited Aug 29 2008Hi All,
We have both Oracle and DB2 database. During the Oracle DB failover, i need to connect to DB2 database using JDBC.
I would like to have suggestions regarding the approach which i need to handle.
Should it be like this:
1) Connect to oracle DB
2) If exception occurs (in catch block), implement code to connect DB2 database.
In this case again after the failover it has to return back to oracle DB.
Is the approach is right or should i implement a different mechanism for this and is there any JDBC driver to connect DB2 database?
Please suggest
Thanks.