Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: OCI9 driver
> conn = DriverManager.getConnection("jdbc:oracle:oci9:@ORASID", dbUser,
> dbPass);
>
> ORASID is defined on the client's tnsnames.ora file. But I'm still
> getting that "Invalid URL" exception. Any ideas??
try putting the complete string instead the alias in this way
conn =
DriverManager.getConnection("jdbc:oracle:oci9:@(description=(address=(host=<you
host>)(protocol=tcp)(port=<your port>))(connect_data=(sid=<your database
sid>)))", dbUser,dbPass);
Received on Fri Sep 20 2002 - 07:27:56 CDT