1
I’m having trouble when an application tries to connect with the database, I get error ORA-12154 TNS: could not resolve the connect Identifier specified.
When I give a tnsping or try to connect by pl/sql Developer up to sql plus everything happens normally. I’m using visual studio 2013, oracle 10g and windows 7 Enterprise 64 bits.
check if the service specified exists in tnsnames.ora, if it exists, check if the file tnsnames.ora is in the appropriate directory, if it is, check if the variable TNS_ADMIN is pointing to the directory of the file tnsnames.ora
– Otto
See what alias the
DBLINK
are using, doselect owner, db_link, username, host from dba_db_links
and check the column value host is the same as in the file tnsnames..– stderr
It’s all right Otto, I’ve checked tns_admin, tnsnames.
– Gabriel Scossi
qmechanik, do not have access to this table
– Gabriel Scossi
How is the
connection string
? As is the specification of TNS?– Leonel Sanches da Silva
con = new Oracleconnection("User Id=.... ;Password=****;Data Source=....");
– Gabriel Scossi
I had the same problem and to solve the incredible it seems was that Tnsname.ora was in a sample folder and I only had to put it in the proper folder with a cut and Paste. C: app username product 12.1.0 client_1 Network Admin Sample
– user67503