Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: oracle jdbc connect GPF
Hi Cindy, I am using one form of what you had suggested. "local" is a tns
entry.
Are you using 8.05 jdbc without a problem?
parms.conn = DriverManager.getConnection("jdbc:oracle:oci8:@local", "system", "manager");
C. Ferguson <c_ferguson_at_rationalconcepts.com> wrote in message
news:384BE849.CD82DFBC_at_rationalconcepts.com...
> Try:
> To use the default connection:
> parms.conn = DriverManager.getConnection("jdbc:oracle:oci8:@",
"system",
> "manager");
> OR
> parms.conn =
DriverManager.getConnection("jdbc:oracle:oci8:@(description =
> (address=(host=<mc_name>)) (protocal=tcp)(port =
> <port-no>)(connect_data=(sid=<SID>)))", "system", "manager");
>
> OR
> parms.conn=DriverManager.getConnection("jdbc:oracle:oci8:@<tns-name>",
> "system", "manager");
>
> hope that helps,
> cindy
>
> ed zappulla wrote:
>
> > I have oracle 8.0.5.0.0 installed. When I use the following connect
> > statement my Java app GPFs. I've run into this before and have had to
roll
> > back to the 8.0.4 jdbc driver because they came with the debug (_g)
version
> > and the 8.0.5 version does not. However, rolling back is no longer an
> > option and I need to make the apps work with 8.0.5 out of the box.
> >
> > Does anyone know why the Oracle JDBC driver GPFs when I try to do a
simple
> > connect?
> >
> > Class.forName("oracle.jdbc.driver.OracleDriver");
> > parms.conn = DriverManager.getConnection("jdbc:oracle:oci8:@local",
> > "system", "manager");
>
Received on Tue Dec 07 1999 - 06:41:58 CST
![]() |
![]() |