My Oracle Support Banner

EZCONNECT connection attempt fails with ORA-12154: TNS:could Not Resolve The Connect Identifier Specified (Doc ID 2087623.1)

Last updated on DECEMBER 10, 2015

Applies to:

Oracle Net Services - Version and later
Information in this document applies to any platform.


When attempting to connect using an "EZCONNECT" method, formerly HOSTNAME, the connection fails with ORA-12154: TNS:could not resolve the connect identifier specified.

The screen shot will look something like this:

sqlplus <userid>/<pwd>@<hostname>.<domainname>:<port_number>/<service_name>
ERROR: ORA-12154

However, the same Client can connect when using the TNSNAMES alias:
sqlplus <userid>/<pwd>@<alias>


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

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