Well yes they SHOULD BE COMPATIBLE.
There are two ways by which you can do this.
1. Use the tnsnames file in the Oracle/network/admin folder to get all the access reqd information and use the following form:
Class.forName("sun.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:thin:@host: port:database name","username","password");
The data of host(or ip),port,database name and username will be in the tnsnames file.
2. Second Form: This is a general (default) way
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection Con=DriverManager.getConnection "jdbc:odbc:driver","username","password");
Hope it helps.
Sandz
|