Oracle.DataAccess.Client Dependencies

こ雲淡風輕ζ 提交于 2019-11-28 10:13:11

I managed to make it work.

  • Download the good version of the ODAC that will target your project.

    1. For a 32bit project you need to download the ODAC12..._x32.zip (ODAC121021Xcopy_32bit.zip).

    2. For the 64bit project you need to download the ODAC12..._x64.zip

  • Unzip it in an empty folder depending on the version you want (32bit vs 64bit).

  • Locate in the instantclient_12_1 folder all the dlls by searching *.dll in the windows search bar. You need to grab:

  1. oci.dll

  2. ociw32.dll

  3. orannzsbb12.dll

  4. oraociei12.dll

  5. oraons.dll

  • Locate in the odp.net4 or odp.net20 folder depending on your .NET version this two dlls:
  1. OraOps12.dll

  2. Oracle.DataAccess.dll

  • Copy the those 32bit dlls or 64bit dlls and put them directly in the Output path of your project. For example in C:\...\vsProjects\BulkInsert\BulkInsert\bin\Debug.

  • Browse Oracle.DataAccess.dll in your project by pointing on the Output path.

I experienced similar problem; install oracle data access components (odac ODTwithODAC122010.zip) for solution.

Looks like you did not install the Oracle Instant client (or any other version of Oracle Client). This is a prerequisite for unmanaged ODP.NET provider.

Install the Oracle Instant client and you are fine. Otherwise you will get nothing but trouble.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!