wood burning stoves
The moose likes JDBC and Relational Databases and the fly likes Compatibility Problem??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Compatibility Problem???" Watch "Compatibility Problem???" New topic

Compatibility Problem???

Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Dear All,
I have been developing code using jdbc for quite some time. However recently I have been facing a problem after upgrading my system. I am using the following configuration:
Windows 2000 Professional Edition
Oracle 8i for (Windows NT) 8.1.6 (i think)
JDK 1.3 (HotsSpot JVM)
I am getting problem while making a connection to the database.
The programme (sort of) hangs when the connection line is executed. I have checked this using System.out at different connection stages. Also, I am using simple ODBC32 from the win2000 control panel.
I get throught the registration part using:
My connection object is like this:
Connection con=driverManager.getConnection("jdbc dbc:MyDSN", "userid", "password");
I was working with this application absolutely fine, but earlier, but now it does not work. However, changing the DSN to point at an Access database solves the problem. It gives no problem then.
Please help. I need to somehow work around with Oracle 8i, JDK1.3, JDBC.
Thanks a lot.
Tualha Khan

SCJP2, BEA WLS 6.0, DB2 UDB 7.1
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Instead of using ODBC, why don't you try using an actual Oracle JDBC driver?

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Fine, please guide me a bit more. where are these drivers available, are they free? How to use them with Oracle and JDBC??
Thanks a lot.
Tualha Khan
Jim Baiter
Ranch Hand

Joined: Jan 05, 2001
Posts: 532
In Oracle 8i, there should be a JDBC directory under %ORACLE_HOME%. There is documentation in there. You will need
to do something like put classes12.zip in your classpath and
figure out the JDBC URL to use in your code. The document
explains how to do this.
It is sorta covered in the JavaRanch Style Guide.
subject: Compatibility Problem???
It's not a secret anymore!