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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Using JDBC-ODBC bridge with Oracle 8

Re: Using JDBC-ODBC bridge with Oracle 8

From: Giuseppe Naccarato <giuseppe.naccarato_at_wuerth.it>
Date: Wed, 01 Dec 1999 08:34:31 +0100
Message-ID: <3844CF87.9552F4@wuerth.it>


hi

You should create a DSN (control panel->odbc32) and to specify Oracle as ODBC Driver Type. Creating an Oracle DSN you can insert the service name.

bye
joe

Matthew Jones wrote:

> Hello,
>
> I'm sure this question has been asked before, but I can't get Java 1.2
> to connect to an Oracle 8 database via the JDBC-ODBC bridge.
>
> I suspect this is because I have not specified the Oracle "Service" name
> in the Java code. How do you do this?
>
> My code currently reads:-
>
> String URL = "jdbc:odbc:OracleUGAdmODBC";
> String username = "ug_adm";
> String password = "fred";
> .
> .
> con = DriverManager.getConnection (
> URL,
> username,
> password);
>
> Where do I put the Service information? The ODBC connection works fine
> with other software, so I know that is OK.
>
> Many thanks,
>
> Matthew
Received on Wed Dec 01 1999 - 01:34:31 CST

Original text of this message

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