This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes How do I use Oracle's thin Driver ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How do I use Oracle Watch "How do I use Oracle New topic
Author

How do I use Oracle's thin Driver ?

Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339

Hiya there !

I'm trying to establish a connection to an Oracle Database from a main method in a Java Class, but I just can't quite get it to work.
I'm having trouble understanding the URL syntax.

Here's what I'm doing:



But I'm getting the following Exception..

java.sql.SQLException: No suitable driver found for jdbcracle:thin:@jose
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at com.jose.OracleConnectionTester.main(OracleConnectionTester.java:19)


I'll see what I can do about this, But I hope somebody can help me out with this problem. I know it's probably something silly, and that's that, right?

Thanks in advance,

Jose
Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339

A'ight.... You may just close this thread, I figured it out on my own....

This was useful...

http://www.orafaq.com/wiki/JDBC

ANyways, always a sincere pleasure to post here in the ranch

Jose
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do I use Oracle's thin Driver ?
 
Similar Threads
Connecting To Database
Establishing Connection to MS Access Databases
How to verify JDBC version using oracle thin driver
Oracle 7 and JDBC
Finding out the correct URL