Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to connect SQLState=08004 [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified in ms odbc administrator

Tags:

I want to add two service names in one tnsnames.ora file and getting error in below 2 image in "Microsoft ODBC Driver Configuration". enter image description here

like image 789
sandhiya Avatar asked Sep 11 '16 08:09

sandhiya


People also ask

How do you solve the Oracle error ORA 12154 TNS could not resolve the connect identifier specified?

If the sqlnet. ora file does not exist or does not specify a resolution method, then Oracle Net uses tnsnames. ora. If you fix the naming issues, but you still see the ORA-12154 error, check the Oracle service to confirm that it's available for connections.

How do I find my Oracle connect identifier?

Connect identifiers are defined and stored in a file called tnsnames. ora located in $ORACLE_HOME/network/admin/ directory.


1 Answers

One trick which help me is, when you fill:

Data Source Name     Test
TNS Service Name     10.1.1.105:1521/ALXTEST

so you need to specify the hostname:port/servicename, then it should work

like image 61
PV8 Avatar answered Sep 23 '22 16:09

PV8