Solved

Oracle 9i JDBC conenction in Linux and Windows

Posted on 2003-11-09
4
214 Views
Last Modified: 2010-04-16
Hi.

Anyone pls help me in coding a JDBC connection in Java for Oracle 9i.  what driver should i specify in Class.forName()

pls reply asap
Sripriya
0
Comment
Question by:priasethu
4 Comments
 
LVL 7

Accepted Solution

by:
yoren earned 250 total points
Comment Utility
Class.forName ("oracle.jdbc.OracleDriver");

See Oracle's page at http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/basic.htm#1022428
0
 
LVL 1

Assisted Solution

by:th83
th83 earned 250 total points
Comment Utility
Use this

Class.forName("oracle.jdbc.driver.OracleDriver");

Connection con = DriverManager.getConnection("jdbc:oracle:oci8:@GlobalDB","scott","tiger");

Also make sure the ORACLEHOME\jdbc\lib\classes12.zip
is in the class path.

or

 you can copy the classes12.zip to the directory \jdk1.4\jre\lib\ext.


TH
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now