• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How do I use Oracle's thin Driver ?

 
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic