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

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle & JDBC

Re: Oracle & JDBC

From: John Alexander <jalexander_at_summitsoftwaredesign.com>
Date: Mon, 11 Dec 2000 04:19:34 GMT
Message-ID: <qBYY5.29442$58.4990088@typhoon.tampabay.rr.com>

To download drivers, go to:
http://technet.oracle.com/software/index.htm

Technet has alot of useful information on using JDBC. Here are some links that might help you:

http://technet.oracle.com/doc/server.804/a58237/toc.htm
http://technet.oracle.com/doc/server.804/a58237/toc.htm#420967
http://technet.oracle.com/sample_code/index.htm

John Alexander
St. Petersburg, FL
www.SummitSoftwareDesign.com

sang <laoxiu100_at_hotmail.com> wrote in message news:911f8f$i50$1_at_nn-os106.ocn.ad.jp...
> Hi,
>
> I am new to JDBC.
>
> when i run it, the error message is :
>
> java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
>
> where i can download Oracle JDBC driver?
>
> ---------- source code -----------------------------------
>
> public int dbTest() {
> String _driver = "oracle.jdbc.driver.OracleDriver";
> String _url = "jdbc:oracle:thin:system/manager_at_server:1521:sid";
>
> try{
> // Load the Driver
> Class.forName (_driver);
> // Make Connection
> DriverManager.getConnection(_url);
> } catch (Exception e) {
> e.printStackTrace();
> System.out.println("connection error");
> System.out.println(e.toString());
> return 0;
> }
> }
> }
> ---------------------------------------------------------
>
> Thanks in advance
>
>
>
Received on Sun Dec 10 2000 - 22:19:34 CST

Original text of this message

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