Installing Oracle 10 ODP.NET on Microsoft Windows 2008 Server 64bit

后端 未结 5 2133
萌比男神i
萌比男神i 2021-02-06 19:36

I\'ve tried to install \"Oracle10g Release 2 ODAC (64-bit) 10.2.0.3 for Windows x64\" from: http://www.oracle.com/technology/software/tech/windows/odpnet/64-bit

5条回答
  •  醉梦人生
    2021-02-06 19:49

    Donwload and install Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (32-bit) on your development computer. Delete former references to Oracle.DataAccess on your project. Add the new reference pointing to this new version. In Visual Studio, after adding the reference select it, then choose properties to check the setting. Set “Specific Version” true , then check that “Copy Local” is false. Build your solution using ANY CPU target.

    Next, prepare your server. Install Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) . When installing, select the RUNTIME OPTION.

    Finally, deploy your solution to your server, as you always use to do. This time it should work.

    The trick is to have the same ODAC version (11.2.0.1.0) on both the development and deployment enviroments. This ODAC contains the Oracle.DataAcces.Client which you should reference on your code to access classes like OracleConnection, OracleDataReader, etc.

    I had problems because I had developed using ODAC 11.2.0.1.2 (32 bits, latest at this time) but there's no x64 version for this ODAC.

    So, always use the latest stable ODAC version which has 32 bits and 64 bits version if you are going to develop on 32 bits and deploy on 64 bits.

提交回复
热议问题