File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Driver to connect to Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Driver to connect to Oracle" Watch "Driver to connect to Oracle" New topic

Driver to connect to Oracle

Sumi Festus

Joined: Feb 04, 2005
Posts: 14

I need to connect to the Oracle 9i Database and i have been using the oracle thin driver. I have written the following statement, <code>DriverManager.registerDriver(new oracle.jdbc.OracleDriver())</code>

The problem now is that i dont have the jdbc folder and the classes12.jar file in my system and so i cannot use the oracle.jdbc package. Now is there any other method of connecting to the database.

Thanks a lot

Sandy Saahil

Joined: Apr 06, 2006
Posts: 9
sorry Sumi i dont think there's any other way for that...what you can do is download classes12.jar from internet....put that in classpath and use that...i hope it will do what you need to do..

Keep Faith
Sandy Saahil

Joined: Apr 06, 2006
Posts: 9
hi sumi..use this link to download driver
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1082

If you are trying to connect with oracle, you must have it installed on some machine. Look into oracle_installation_path/jdbc/lib folder.

You will find same jar file there


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
I agree. Here's the link:
subject: Driver to connect to Oracle
It's not a secret anymore!