ORA-12154: iSQLPlus Unable to Connect Using Tnsname.ora, but tnsping/SQL*Plus Okay (Doc ID 758149.1)

Last updated on OCTOBER 28, 2016

Applies to:

SQL*Plus - Version 10.2.0.1 to 10.2.0.3 [Release Oracle10g]
Oracle Solaris on x86-64 (64-bit)
Sun Solaris x86-64 (64-bit)

Symptoms

Using Database 10g release 10.2.0.1.0 on Sun Solaris x86-64 (64-Bit)

- TNS_ADMIN is pointing to the directory where tnsnames.ora exists.
- Tnsping works fine.
- Able to login using sqlplus (in the same ORACLE_HOME) 
- Able to connect by providing complete connection string in 'Connect Identifier' of isqlplus page.

But isqlplus is unable to connect to the database using connection information specified in tnsnames.ora file. It fails with:

ORA-12154: TNS:could not resolve the connect identifier specified.

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