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 JANUARY 30, 2022
Applies to:
Oracle Data Provider for .NET - Version 10.2.0.1.0 and laterOracle Net Services - Version 8.1.7.0.0 to 10.2.0.1.0 [Release 8.1.7 to 10.2]
Oracle Objects for OLE - Version 8.1.7.0 to 10.2.0.1 [Release 8.1.7 to 10.2]
Oracle ODBC Driver - Version 8.1.7.0.0 to 10.2.0.1.0
Oracle Provider for OLE DB - Version 8.1.7.0 to 10.2.0.1.0
Microsoft Windows x64 (64-bit)
Symptoms
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
or
ORA-6413: Connection not open.
Additionally...
- You can compile your application and then run the executable outside this location and it connects and executes successfully
- You have installed 32-bit Oracle client software on a 64-bit Windows operating system (OS)
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |