Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

Ora-12154 TNS:could not resolve the connect identifier specified using oracle.dataaccess.dll

$
0
0

I have a local console app that connects to an Oracle 11 database to execute a simple Select * from View query.  It runs fine in localhost, with any of the following connection strings 

(FYI the host isn't really 1.2.3.4 :)  ) 

value="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=1.2.3.4)(PORT=1601))(CONNECT_DATA=(SERVICE_NAME=UAT1)))"

value="1.2.3.4:1601/UAT1" 

value="myTNSentry" 

This value is used in as follows

OracleConnection conn = new OracleConnection();
conn.ConnectionString = "User Id=myUserId;Password=myUserPassword;Data Source="+value+ ";";
conn.Open();

When I publish this to a server & run the setup.exe, conn.Open(); fails with the Ora-12154 error.

Any suggestions gratefully received


Viewing all articles
Browse latest Browse all 1350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>