Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-12154: TNS:could not resolve the connect identifier specified

1048603Oct 17 2013 — edited Oct 18 2013

HI all,

I am having an issue with connecting Oracle DB using tnsnames and ending up with the message "ORA-12154: TNS:could not resolve the connect identifier specified"

I am trying to establish the connection from asp.net using framework 2.x. What I am trying to do is replace the drivers of oracle from 32 bit to 64 bit drivers. I am running my application on Windows 7 64 bit version (Enterprise Edition).

When I suffix the host name to the DB name I am able to connect to the DB but I cannot do that as all applications in the organization is using just the dbname and rest of the information from tnsnames file.

This issue is happening only from ASP.net applications. I am able to connect to the database when I wrote test application using winforms.

Oracle driver version I am using is 2.112.3.0 (Oracle.DataAccess.dll). The server is Oracle 10g. Other applications such as TOAD and Oracle SQL Developer applications use the same tnsnames.ora and able to connect.

Thank you in advance and look forward to hear from the community and any help is greatly appreciated.

Mahidhar

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2013
Added on Oct 17 2013
3 comments
4,870 views