Cannot connect Oracle 7.3.4 database using JDBC/ODBC bridge

From: Ganesh <gvaidees_at_intertrust.com>
Date: Wed, 19 Jan 2000 11:15:49 -0800
Message-ID: <38860D65.8077CA6A_at_intertrust.com>



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 - 20:15:49 CET

Original text of this message