Oracle.DataAccess.Client Dependencies

前端 未结 3 871
没有蜡笔的小新
没有蜡笔的小新 2020-12-09 19:54

First of all, I want to use the Oracle.DataAccess.dll to use OracleBulkCopy.

I want to know all the dlls that I need to be able to read fro

相关标签:
3条回答
  • 2020-12-09 20:35

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

    0 讨论(0)
  • 2020-12-09 20:37

    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.

    0 讨论(0)
  • 2020-12-09 20:46

    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.

    0 讨论(0)
提交回复
热议问题