ODBC driver needed need for the java app

  • Follow


Hi,Do anyone have idea of the ODBC driver needed for a simple javaapplication accessing the ORACLE DB? do we need to1. install the oracle client in local (for the ODBC driver) Or2.the ODBC driver for oracle installed with windows will besufficient?Thanks in advance,Mahesh
0
Reply registered.here (11) 3/7/2007 2:12:55 PM

Mahesh wrote:
> Hi,
> 
> Do anyone have idea of the ODBC driver needed for a simple java
> application accessing the ORACLE DB? do we need to
> 1. install the oracle client in local (for the ODBC driver) Or
> 2.the ODBC driver for oracle installed with windows will be
> sufficient?

You'd be better off using the JDBC driver. Oracle provides one for free 
download (ojdbc,jar - there might be a version number embedded in the name, 
I'm not sure).

Snoop around Oracle's database site and you'll find it.

-- Lew
0
Reply Lew 3/7/2007 2:23:18 PM


thanks Lew,I will be installing this app in different machines, so need to knowwhether we need to install any driver or the drver avaialble withwindows is sufficient?Thanks,Mahesh
0
Reply Mahesh 3/7/2007 2:27:57 PM

Mahesh wrote:> thanks Lew,> I will be installing this app in different machines, so need to know> whether we need to install any driver or the drver avaialble with> windows is sufficient?Oracle's JDBC drivers are written in Java. Since JDBC is used from Java only, it is safe to assume that there will be Java available on any machine where you use JDBC. It is like any other JAR in the application's classpath that way.-- Lew
0
Reply Lew 3/7/2007 2:50:31 PM

Mahesh wrote:> I will be installing this app in different machines, so need to know> whether we need to install any driver or the drver avaialble with> windows is sufficient?Windows doesn't come with any kind of driver for Oracle (unless there'ssomething new in Vista).  So whether you use the Oracle JDBC driver or theOracle ODBC driver, you'll have to install /something/ on the users' machines.And the JDBC<->ODBC bridge which comes with Java is not intended for productionuse, so the chances are that the Oracle JDBC driver will work best.    -- chris
0
Reply Chris 3/7/2007 3:24:44 PM

Mahesh wrote:> I will be installing this app in different machines, so need to know> whether we need to install any driver or the drver avaialble with> windows is sufficient?Actually Oracle comes with 2 JDBC drivers.The OCI requires Oracle Client installed on the system.The thin does not require anything installed on the system.I will strongly recommend the thin JDBC driver.The jar in classpath, load the driver, use thecorrect connection URL and you are going.Arne
0
Reply ISO 3/13/2007 1:41:57 AM

5 Replies
107 Views

(page loaded in 0.047 seconds)

Similiar Articles:













7/30/2012 9:50:34 AM


Reply: