1)Decide which Driver to be use :
You could use the following :
(a)For Oracle & SQL Server --> Merant SequeLink Server (Type 3) ; Data-Direct Connect for JDBC (Type 4)
(b)For Oracle : Oracle Thin Driver (Type 4)
2) Once DataBase and Driver is decided, u need to know which Class to use and what url to connect to.
(a) In Case you use Merant SequeLink Server :
Class : com.merant.sequelink.jdbc.SequeLinkDriver
URL : jdbc:sequelink://server:19996;user=userid;password=passwd;dataSourceName=SID
(b) In Case you use Oracle Thin Driver :
Class
racle.jdbc.driver.OracleDriver
URL :jdbc
racle:thin:userid/password@server:1521
racleSID
3) Once you have above info, you can connect to the DataBase, using std code.
String l_class = "oracle.jdbc.driver.OracleDriver";
String l_url = "jdbc
racle:thin:userid/password@server:1521
racleSID";
Class.forName( l_class ) ;
Connection conn = DriverManager.getConnection( l_url ) ;