Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: JDBC Connection to Local Instance
In article <7gst40$hob$1_at_nnrp1.deja.com>, rmwilliams_at_my-dejanews.com
says...
> Does anyone know of a way to force the JDBC driver to use the local instance
> of Oracle running on a Java application's machine, rather than having to
> specify a URL? We want to utilize OS authentication and not have to embed a
> user/password into our application or be supplied on the command line. This
> will be a program that is run from a UNIX shell script and should have not
> user interaction.
>
> Thanks,
> Richard Williams
> rwilliam_at_cst-hsv.com
>
>
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
I'm new to the Oracle world, so maybe I'm reading your question wrong.
But I'm using the Oracle OCI drivers, and to specify the local machine, I
put this in the URL of the call to DriverManager.getConnection
"jdbc:oracle:oci8:@" (usually you put the database alias after the @ if
you're going to a remote machine).
-Joe Giessner Received on Thu May 06 1999 - 21:49:48 CDT
![]() |
![]() |