• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to connect jdbc with oracle 9i database using all 4 types of driver?

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody tell me
how to connect jdbc with oracle 9i database using all 4 types of driver?

Is there any book or material available for JDBC for beginners?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a number of FAQ pages about JDBC, starting here. Particularly the link to the Sun JDBC tutorial on the GeneralJdbcQuestions page would be interesting to you, as well as the various "What's new in JDBC 2/3/4?" articles linked on the same page.

The JdbcLinks page links to Oracle 9i-specific material.
[ December 30, 2006: Message edited by: Ulf Dittmer ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fist of all you can use oracle driver with jdk 1.5 or jdk 1.6
First of all try to change classpath:
1. remove c:\oracle\ora92\jdbc\lib\classes12.zip;
2. change classes12.jar ojdc14.jar
Second:
jdbc:oracle:oci8:@tcp1105008:1521:oradev01 - uses oci driver, oracle client should be installed on client. I think where is small bug here it should be:
jdbc:oracle:oci:@tcp1105008:1521:oradev01

I prefer to use thin version (we had huge problems with oci driver for oracle 9.2), try to change just connection string:
jdbc:oracle:thin:@tcp1105008:1521:oradev01
 
Marshal
Posts: 79508
379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Your reply may not be very useful after 2½ years, however.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic