Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: connect through jdbc

Re: connect through jdbc

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 17 Nov 2004 03:07:36 -0800
Message-ID: <92eeeff0.0411170307.65c1c339@posting.google.com>


"zeb" <spam_at_nowhere.com> wrote in message news:<419a65e7$0$1870$626a14ce_at_news.free.fr>...
> JDK 1.4
>
> CLASSPATH=$ORACLE_HOME/jdbc/lib/classes12.jar
> and
> CLASSPATH=$ORACLE_HOME/jdbc/lib/ojdbc14.jar
> ( loaded from otn for oracle 9.2.0.0 JDK1.4)
>
> private void connectToDB(ActionEvent e) {
> try {
> DriverManager.registerDriver(new
> oracle.jdbc.driver.OracleDriver())
> ;
> con = DriverManager.getConnection
> ("jdbc:oracle:thin:@pluto:1521:DB
> 9IDEV","system","manger");
> empValues.setText("Connected to the Database. Fetching Values

Make sure you have correctly entered $ORACLE_HOME/jdbc/lib/ojdbc14.jar in your CLASSPATH variable.

Open Readme.txt file located in $ORACLE_HOME/jdbc directory and review installation section for your platform. You only need ojdbc14.jar in the classpath... not classes12.jar.

You should change the register driver line to, oracle.jdbc.OracleDriver()

Regards
/Rauf Received on Wed Nov 17 2004 - 05:07:36 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US