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 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

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>
Connected.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms