Re: How to connect to PO8 with JDBC thin driver

From: Urs Hunkeler <uhu_at_gmx.ch>
Date: Wed, 08 Dec 1999 09:06:54 +0100
Message-ID: <384E119E.57811DC7_at_gmx.ch>


I have (had) the same problem. My connection works, if I use the following code:

cn = DriverManager.getConnection("jdbc:oracle:thin:_at_(description=

                                  (address=(host=MyOracleServer)
                                  (protocol=tcp)(port=1521))
                                  (connect_data=(sid=ORCL)))",
                                 "scott", "tiger");

Actually I found the above solution in comp.databases.oracle.misc in the thread "oracle oci driver error" (3 Dec 1999).

If you find out more about this problem or the purpose of the SOException, please let me know.



"François" schrieb:

> My code is :
> Class.forName("oracle.jdbc.driver.OracleDriver"); -> OK
> cn = DriverManager.getConnection("jdbc:oracle:thin:_at_beq-local",
> "system", "manager"); -> SO Exception.
>
> Thanks
Received on Wed Dec 08 1999 - 09:06:54 CET

Original text of this message