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: How to check Oracle JDBC Driver (classes12.zip) verion

Re: How to check Oracle JDBC Driver (classes12.zip) verion

From: Joe Weinstein <joeNOSPAM_at_bea.com>
Date: Tue, 25 Jul 2006 11:41:23 -0700
Message-ID: <44C665D3.9000208@bea.com>

lovingmononoke_at_gmail.com wrote:

> Oracle JDBC driver has been called classes12.zip.
> Is there any way that I can check what Oracle database version comes
> with the classes12.zip that I am using?
> Or is there any way that I can check the JDBC version of the
> classes12.zip that I am using?
> If so, can you tell me the command ? Many thanks!

       Driver dr = new oracle.jdbc.OracleDriver();
       Properties props = new Properties();
       props.put("user", "joe");
       props.put("password", "joe");

       Connection c = dr.connect("jdbc:oracle:thin:@joe:1521:JOEDB", props);
       System.out.println("The driver version is " + c.getMetaData().getDriverVersion() );
Received on Tue Jul 25 2006 - 13:41:23 CDT

Original text of this message

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