Oracle 9i JDBC conenction in Linux and Windows

Posted on 2003-11-09
Last Modified: 2010-04-16

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
Question by:priasethu
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

Accepted Solution

yoren earned 250 total points
ID: 9712602
Class.forName ("oracle.jdbc.OracleDriver");

See Oracle's page at

Assisted Solution

th83 earned 250 total points
ID: 9714266
Use this


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

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


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


Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login form jsp example 2 71
collection output issue 9 93
Delphi Firemonkey: if the Sms contain special characters it won't send it 3 83
Java ArrayList and if statement 2 55
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

738 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