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: Register vs. Load of JDBC driver

RE: Register vs. Load of JDBC driver

From: Richard Ji <Richard.Ji_at_ztango.com>
Date: Fri, 27 Jun 2003 08:16:33 -0700
Message-ID: <F001.005BB0DF.20030627073452@fatcity.com>


So the "Class.forName" call is ten times faster than the "DriverManager.registerDriver()" call? Is that one tenth of a sec vs a sec thing?

Class.forName loads the JDBC driver class, then the static initializer part of the JDBC driver registers itself with DriverManager.

DriverManager can manage mutiple drivers, when using DriverManager it will load the property jdbc.driver from say "~/.hotjava/properties" if there is one. Also, one creates a new instances of the JDBC driver to register with DriverManager where Class.forName doesn't.

Richard Ji

-----Original Message-----
Sent: Thursday, June 26, 2003 6:10 PM
To: Multiple recipients of list ORACLE-L

Approximately 10 times slower.

Mladen Gogala
Oracle DBA
Phone:(203) 459-6855
Email:[EMAIL PROTECTED]

-----Original Message-----
Sent: Thursday, June 26, 2003 5:15 PM
To: Multiple recipients of list ORACLE-L

What sort of differences? Is the DriverManager method slower than Class.forName()?

-----Original Message-----
Sent: Thursday, June 26, 2003 3:35 PM
To: Multiple recipients of list ORACLE-L

Hi List!
I'm not a Java programer so please, forgive me my (blissful) ignorance. My developers
are experiencing wild differences when connecting using driverManager.registerDriver vs.
Class.forName (dynamic loading). Does anybody have any clue why is that? Any articles
about registering vs. loading?
Thanks!

Mladen Gogala
Oracle DBA
Phone:(203) 459-6855
Email:[EMAIL PROTECTED]

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Gogala, Mladen
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Richard Ji
  INET: [EMAIL PROTECTED]
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Gogala, Mladen
  INET: [EMAIL PROTECTED]
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Richard Ji
  INET: [EMAIL PROTECTED]
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Jun 27 2003 - 10:16:33 CDT

Original text of this message

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