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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: JDBC and class.ForName

Re: JDBC and class.ForName

From: <ryan_gaffuri_at_comcast.net>
Date: Wed, 16 Feb 2005 15:20:29 +0000
Message-Id: <021620051520.9782.421364BD000EF982000026362207003201079D9A00000E09A1020E979D@comcast.net>


is the option to use register instead of class.forname oracle specific? all the non-oracle docs say i need to use class.forname? -------------- Original message --------------

> class.ForName is to register the JDBC Driver.
>
> Either you can use class.ForName("Driver")
>
> OR
> you can use registerDriver method from DriverManager class as below..
> DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
>
> HTH
> Sami
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Feb 16 2005 - 10:23:29 CST

Original text of this message

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