Reputation: 2355
Is there any solution for this error on Windows 7 64 bit (because I think it's the main cause) in .NET application? (ASP.MVC2 with EF4)
I've:
I've also checked and tried:
I'd like to connect with Oracle DB via ASP application (as above) and I still see this error. .NET cannot see alias which is in tnsnames.ora
Upvotes: 0
Views: 7108
Reputation: 5865
One quick easy solution is here:
https://stackoverflow.com/questions/1567133/very-frustrating-ora-12154-excpetion-finally-resolved
Basically, TOAD.exe, if run from a path containing parentheses, such as:
C:\Program Files (x86)\Quest Software\TOAD\Toad.exe
...will encounter a TNS error when trying to conenct to a database:
ORA-12154: TNS:could not resolve the connect identifier specified
Copy the entire Quest Software folder into C:\Program Files and you should be good to go.
Upvotes: 0
Reputation: 11
The problem seems to be with the 32-bit Oracle client and the "(x86)" in the long-name file path. I've got mine to work by using this in a .bat file.
start /B "C:\Progra~2\Microsoft Visual Studio 10\Common7\IDE" "C:\Progra~2\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"
Upvotes: 1
Reputation: 2355
Error: ORC-12154 and Oracle Provider not compatible with current OS (povider 32 bit, OS 64)
OS: Windows 7 64-bit, .NET 4.0, Visual Studio 2010, Tunel via SSH (putty)
Solution:
Configure TNSNAMES.ORA and SQLNET.ORA
sqlnet.ora variables :
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
SQLNET.AUTHENTICATION_SERVICES = (NTS)
NAMES.DEFAULT_DOMAIN = ORCA
For me atleast works fine.
Upvotes: 1