My Oracle Support Banner

"java.sql.SQLException: Io exception: could not resolve the connect identifier" Trying to Connect with JDBC Thin Driver Using Tnsnames.ora Entry (Doc ID 1253486.1)

Last updated on FEBRUARY 03, 2019

Applies to:

JDBC - Version 11.1.0.7 and later
Information in this document applies to any platform.

Symptoms

Java application trying to connect to the database using JDBC thin 11.1.0.7 with connect string with tnsnames.ora alias entry fails with error:

java.sql.SQLException: Io exception: could not resolve the connect identifier

even after setting System.setProperty("oracle.net.tns_admin") to the location of the tnsnames.ora file.

The same connection succeeds with JDBC OCI.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.