0

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:

  • Windows 7 64 bit
  • Oracle Express 10g (i've tried to install Client 11g, but then, during installation i got another error - Net Configuration Assist~ Error - something about oraclj11 and java)

I've also checked and tried:

  • tnsnames.ora - everything is all right
  • tnsping - was successfull
  • sqlnet.ora - NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

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

4

3 に答える 3

1

問題は、32ビットのOracleクライアントとロングネームファイルパスの「(x86)」にあるようです。これを.batファイルで使用することで動作するようになりました。

start / B "C:\ Progra〜2 \ Microsoft Visual Studio 10 \ Common7 \ IDE" "C:\ Progra〜2 \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ devenv.exe"

于 2010-10-26T23:11:12.793 に答える
1

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:

  1. Uninstall oracle software, especially Oracle’s client (OracleExpress Client and whole db 10g)
  2. Install Oracle 11g Client for Windows 7 64-bit. If occurs errors during installation (Config Net Assistant), check and clean previous Oracle’s software. Everything including register and ORACLE_HOME, TNS_ADMIN environment variables should be removed.
  3. Install Oracles .NET tools for Visual Studio (it prevents 32 bit and 64 bit’s conflict)
  4. Configure TNSNAMES.ORA and SQLNET.ORA

    • tnsnames.ora - check aliast with tnsping in cmd prompt (tnsping.exe exists in /bin
    • check environment variables: ORACLE_HOME, optional TNS_ADMIN: “ORACLE_HOME/NETWORK/ADMIN”</li>
    • sqlnet.ora variables :

      NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
      SQLNET.AUTHENTICATION_SERVICES = (NTS)  
      NAMES.DEFAULT_DOMAIN = ORCA
      

For me atleast works fine.

于 2010-07-20T11:33:58.683 に答える
0

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.

于 2011-01-25T20:35:03.963 に答える