ORA-12154: TNS could not resolve service name specified

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 18 Jan, 2020
  • 0 Comments
  • 26 Secs Read

ORA-12154: TNS could not resolve service name specified

Sometimes you will see the error message related to tns.

Error message will be like this.

ORA-12154: TNS could not resolve service name specified

Solutions

  1. Check if your listener is up and running
  2. Check if listener is listening to database services.
  3. Look for tnsnames.ora file. database entry needs to be available there
  4. Syntax error in tnsnames.ora
  5. Service name might have an alias, so check for global entries and local entries

Location of tnsnames.ora and listener.ora will be as $ORACLE_HOME/network/admin/