Home / Oracle Errors / ORA-12154

ORA-12154

TNS: could not resolve the connect identifier specified

What it means

The client cannot translate the connect name you used into a host and port.

Common causes

How to fix it

  1. Test: tnsping <alias>
  2. Check echo $TNS_ADMIN and that the file is in that folder
  3. Or use the full Easy Connect string: sqlplus user@//host:1521/service_name
  4. Check NAMES.DIRECTORY_PATH in sqlnet.ora

How to prevent it

Standardise one TNS_ADMIN location per server.

Still stuck? Ask the community in Q&A.

Get the weekly Vismo digestNew Oracle articles and Q&A in your inbox. No spam.

One email a week. Unsubscribe any time.