Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: JDBC Problem: Can't establish the connection
Soeren Frey schrieb:
> String user = "scott";
> String password = "tiger";
> String database = "MeineDB";
> Connection conn =
> DriverManager.getConnection("jdbc:oracle:thin:@notebook:1521:"
> + database, user, password);
> }
> }
Is MeineDB the SID or the TNS Name of the Database?
When using the thin driver you have to specify the SID, it doesn't use
tnsnames.ora (in fact it doesn't require and does not use the Oracle client
software)
Thomas Received on Fri Oct 31 2003 - 01:04:40 CST
![]() |
![]() |