Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: JDBC Problem: Can't establish the connection

Re: JDBC Problem: Can't establish the connection

From: Thomas Kellerer <spam_eater_at_gmx.net>
Date: Fri, 31 Oct 2003 08:04:40 +0100
Message-ID: <bnt1i4$155ak4$1@ID-13919.news.uni-berlin.de>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US