Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Cannot connect Oracle 7.3.4 database using JDBC/ODBC bridge
Hi,
I am trying to connect to a oracle 7.3.4 database(on a sun Ultra 5) from
my NT
machine using JDBC/ODBC.
I have setup my ODBC datasource correctly(since I can connect to the
database
from my 'C' program). However, when I try to connect from my java
program
that uses JDBC/ODBC bridge, my prgram just crashes. Here are the details
..
Here is the Java code -
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection(
"jdbc:odbc:" + serverField.getText(), "scott", "tiger");
con.setAutoCommit(false);
}
catch (SQLException ex)
{
System.out.println("Connection Error");
}
I am using Oracle7 ODBC 32bit driver version - 1.15.03.01.00
Should I use a different version of the driver, If so where can I find
it.
I am using Oracle SQL*Net OSN DLL version 2.3.2.1.4 as the SQL*Net
driver
Any help is appreciated.
Thanks in advance.
Ganesh Received on Wed Jan 19 2000 - 13:15:49 CST
![]() |
![]() |