Home » RDBMS Server » Networking and Gateways » TNS:could not resolve service name
TNS:could not resolve service name [message #67442] Tue, 27 July 2004 20:12 Go to next message
Qi
Messages: 3
Registered: July 2004
Junior Member
I got ORA-12154:TNS:could not resolve service name when I try to make a connection from asp.net application ( web server runs on my 2k pc). I used the same connection string I used in window application (in .net).

I tried to set impersonate to "true" <IDENTITY impersonate="true" />in the web.config file for the application. But it is still not working.

Can anyone help?

Thanks.

Qi 
Re: TNS:could not resolve service name [message #67451 is a reply to message #67442] Fri, 30 July 2004 20:37 Go to previous messageGo to next message
K.SREENIVASAN
Messages: 110
Registered: January 2001
Location: banglore
Senior Member
Add this environment varaible.
my computer->properties-advrnced-environment variables

Variablename ORACLE_SID
value Your database SID
Re: TNS:could not resolve service name [message #67456 is a reply to message #67451] Wed, 04 August 2004 06:26 Go to previous messageGo to next message
Qi
Messages: 3
Registered: July 2004
Junior Member
Thank you for your reply.But it still not working.

We have tnsname.ora on the network share and I have to make a local copy and store it under my local oracle folder to make my application work.
Re: TNS:could not resolve service name [message #67465 is a reply to message #67442] Sun, 08 August 2004 09:28 Go to previous messageGo to next message
Suresh
Messages: 189
Registered: December 1998
Senior Member
Hi,
There are many reasons for that error.
Here is a usefull link.

http://www.easywebtech.com/oracle/con_err.html

Thanks,
Suresh
Re: TNS:could not resolve service name [message #67590 is a reply to message #67456] Wed, 03 November 2004 08:26 Go to previous message
Isela Romo
Messages: 1
Registered: November 2004
Junior Member
Hello,

When I trying to connect to sqlplus the error is

TNS could not resolve service name,
Previous Topic: How to make a client server connection through dial-up.
Next Topic: ORA-12203 TNS
Goto Forum:
  


Current Time: Thu May 02 23:59:24 CDT 2024