ORA-12154 or TNS-3505 Using EZCONNECT or Hostname Naming Adapter
Last updated on MAY 14, 2018
Applies to:Oracle Net Services - Version 10.2.0.1 to 220.127.116.11 [Release 10.2 to 11.2]
Information in this document applies to any platform.
This document describes an issue where the EZCONNECT or HOSTNAME naming adapter fails with ORA-12154 or TNS-3505. A client using the TNSNAMES adapter with the
same address information is likely to be successful if the issue documented here is the problem.
When using the EZCONNECT or HOSTNAME naming adapter the following errors are thrown:
TNS-12514 TNS: could not resolve the connect identifier specified
TNS-03505: TNS: Failed to resolve name
Example using the following might fail with an ORA-12154:
ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
Using the same information in a tnsnames.ora file will allow a successful connection:
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