Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • 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: 43016
76
  • Mark post as helpful
  • send pies
  • 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
  • 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: 69894
278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Your reply may not be very useful after 2½ years, however.
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic