• 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
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How does Java work with Oracle?

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How does Java work with Oracle? I was led to believe that Java works with JDBC, however, I know that drivers exist that can work with Oracle. I am correct? If so which one is it? And, can someone explain how Java and Oracle work together? Thank you.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well there are actually two ways. I am not sure which one exactly you are asking about. If you are talking about Java code accessing an Oracle Database, JDBC, then you need an Oracle JDBC driver. You can find them at Oracle's website. Try to get the thin driver, this will use Oracle's client software with tnsnames, which will be the fastest.
As far as the other way to use Java with Oracle, you can create Stored Procedures in Oracle written in Java. They have a package for "Linking" the Java class to Oracle. I can't find a specific link to give you right now though, so you will have to search for it.
Not that you asked this, but check out Tom's answer at the bottom of his take on Java and Oracle.
Here.
Mark
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't need oracle client installed when you use the thin driver.
oci8 does require the native client libraries installed. we have to use oci8 here because (i think?) thin drivers cant be used with the oracle encryption pack installed.
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the clarification Simon. It has been a while since I used the drivers.
Mark
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic