The provider is not compatible with the version of Oracle client

前端 未结 27 1195
一生所求
一生所求 2020-11-22 05:37

I\'m trying to use the Oracle ODP.NET 11g (11.1.0.6.20) Instant Client on my ASP.net project as a Data Provider but when I run the aspx pag

27条回答
  •  旧时难觅i
    2020-11-22 06:20

    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 of it though:

    • Download ODP.Net
    • Unzip the file
    • Unzip all the JAR's in it
    • Grab these dll's that were just unzipped:
      • oci.dll (renamed from 'oci.dll.dbl')
      • Oracle.DataAccess.dll
      • oraociicus11.dll
      • OraOps11w.dll
      • orannzsbb11.dll
      • oraocci11.dll
      • ociw32.dll (renamed from 'ociw32.dll.dbl')
    • Put all the DLLs in the same folder as your C# Executable

提交回复
热议问题