Solved

Oracle 9i JDBC conenction in Linux and Windows

Posted on 2003-11-09
4
220 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.
Suggested Courses

617 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