Want to use the Entity Framework for Oracle

Discussion in 'Installation and Configuration in Windows and Linux' started by moukhabo, Mar 10, 2013.

  1. moukhabo


    Currently our web applications are installed on Windows 2003 Server, IIS 6.0. Yes, this seems like the dark ages...years behind. They have an older version of the Oracle Client on the machine (11.0.1). This version does not support Oracle.DataAccess 4.x. .NET Framework 4.0 is installed on the Windows 2003 server. This version also does not support the Entity Framework.


    However, my development environment does not have any Oracle Client installed. I am just using the latest version of ODAC/ODP.NET with Visual Studio 2010. I am able to create apps locally with the Entity Framework but unfortunately cannot get them to work on the server because there of the older Oracle Client on that machine. Also there are approx. 50 applications on that server that are accessing this old version of OracleDataAccess 2.116.0 with references hard coded in the web.config. What's the best practice for dealing with legacy applications that are accessing older versions of Oracle?

    In short, what do I need to do in order to upgrade to the version of Oracle that will support the Entity Framework while still supporting legacy apps? Do I go for an Oracle Client upgrade or I just merely get the latest version of ODAC/ODP.NET installed on that server?
    What I would probably like to do is somehow set the dll directory to my local bin directory and just put all the .dlls for the most recent ODP.NET in my app and leave the existing applications as they are until I can migrate them.

    I've seen examples of this but doesn't seem to work for me.

    You can do that by having both Oracle clients installed, and using the DLLPath configuration option to force the applications to use the one you want.

    That said, the next version of the managed client is going to support working in Entity Framework, and that is just an assembly you can include in the project with no Oracle installation at all. So really, the best answer is going to be to use that once they release it.

    (Also - most of the time something compiled for Oracle 11.x will work in without doing anything. The installer adds binding redirects to itself from older versions, provided you were loading from the GAC.)

Share This Page