Connecting to Oracle from Within Visual Studio Fails With: ORA-12154 or ORA-6413, While Compiled Applications Run Fine

(Doc ID 334968.1)

Last updated on JULY 05, 2017

Applies to:

Oracle ODBC Driver - Version to
Oracle Provider for OLE DB - Version to
Oracle Data Provider for .NET - Version and later
Oracle Net Services - Version to [Release 8.1.7 to 10.2]
Oracle Objects for OLE - Version to [Release 8.1.7 to 10.2]
Microsoft Windows x64 (64-bit)
***Checked for relevance on 14-Jun-2016***


You are developing an application inside Microsoft Visual Studio and receive one of the following errors when trying to connect to the Oracle database

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


     ORA-6413: Connection not open.



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms