Solved

Oracle 9i JDBC conenction in Linux and Windows

Posted on 2003-11-09
4
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 7

Accepted Solution

by:
yoren earned 250 total points
ID: 9712602
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
ID: 9714266
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
couple of eclipse 5 52
Way to decrease size of apk file 9 104
Eclipse with various Java releases 7 45
hashmap order 17 40
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

756 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