How to write a .Net application that works with both SqlServer and Oracle (now that System.Data.OracleClient is deprecated)

EDIT: The fully managed ODP.NET is now available in production. It is very small (less than 10MB) and is not dependent on other files. You can obtain it here: http://www.oracle.com/technetwork/topics/dotnet/downloads/index.html Original answer: One way to easily ensure that the required Oracle client side software (including ODP.NET) is always available on the deployment machine is to … Read more

Could not load file or assembly Oracle.DataAccess

In the IIS Manager select your server and select “Application Pools“. Select the application pool used by your Web App and click on “Advanced Settings” from the right hand menu. In the “General Section” of the advanced Settings click on the “Enable 32-bit Applications” and set it to True. This fix only applies to 64-bit … Read more

Deploying and Configuring ODP.NET to work without installation with Entity Framework

This answer summarizes (hopefully) all the steps required, many of which documented in various places online and might save someone hours of Googling. A. How to deploy and configure Oracle.DataAccess.Client. A.1. Download ODAC112030Xcopy_64bit.zip or ODAC112030Xcopy_32bit.zip. A.1.1. Extract the content of the following folders within the zip file into your application/host’s bin/setup folder: A.1.1.1. instantclient_11_2 A.1.1.2. … Read more

Oracle ODP.net Managed vs Unmanaged Driver

I would like to share some results. I think that the small lack of performance is worth compared to the easiness of deployment. Note: seg means seconds. Sorry about that. Of course that it is a simple test, and there are several topics that is not covered like connection pool, stability, reliability and so on… … Read more

Can you use Microsoft Entity Framework with Oracle? [closed]

Update: Oracle now fully supports the Entity Framework. Oracle Data Provider for .NET Release 11.2.0.3 (ODAC 11.2) Release Notes: http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/whatsnew.htm#BGGJIEIC More documentation on Linq to Entities and ADO.NET Entity Framework: http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featLINQ.htm#CJACEDJG Note: ODP.NET also supports Entity SQL.

The provider is not compatible with the version of Oracle client

I’ve been looking into this problem further, and you simply need to grab all the appropriate DLL’s from the same downloaded version of ODP.Net and put them in the same folder as your Exe file, because ODP.Net is fussy about not mixing version numbers. I’ve explained how to do this here: http://splinter.com.au/using-the-new-odpnet-to-access-oracle-from-c Here’s the gist … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)