This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Driver to connect to Oracle" Watch "Driver to connect to Oracle" New topic
Author

Driver to connect to Oracle

Sumi Festus
Greenhorn

Joined: Feb 04, 2005
Posts: 14
Hi!!

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

Sumi
Sandy Saahil
Greenhorn

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
Greenhorn

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

http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

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


Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Driver to connect to Oracle
 
Similar Threads
How to Connect to a Remote Database
xalan extensions "Invalid driver" error
Driver to connect to Oracle
pls help me deal with jsp--oracle database connection
JNDI in webapps