Re: Cannot connect to one Oracle DB using JDBC



davis@xxxxxxxxxxxx wrote:
...
The message I am getting looks like this

Driver: oracle.jdbc.driver.OracleDriver
Connecting to jdbc:oracle:thin:@db5.netaspx.com:1521:c0ujP0...

With Thin driver you connect directly to Oracle's
SQL listener. In this case tnsnames.ora is useless.
The connection string has to be ended with System
Identifier of your Oracle instance - not with service
name or service id. The Oracle SID is the unique name
of instance/database of your Oracle installation.

Alfred
.