The provider is not compatible with the version of Oracle client error when using Oracle.DataClient

穿精又带淫゛_ 提交于 2019-11-28 23:21:37

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, which is the problem you're seeing (either that or the oci.dll is totally missing, in which case it annoyingly gives the same error).

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:

Have you created and successfully tested a connection using the ODBC Administrator on your client system?

There is a patch out for a permissions issue in the 9i and 10g client that results in this error. If you're at 10.2.0.1, you may need to upgrade to 10.2.0.3 to solve this.

Well I've made my app use Ole DB(System.Data.Oledb namespace ) connection, and it works fine. Considering that the app is just a front end for calling Oracle SP, and there are no values being returned, I guess this approach is approach acceptable, because in the 2 days I spent trying to figure solution to this problem I could've completed lot more development on the app. I'm still open to answers, as I can learn from what mistake I'm committing for any such applications in the future.

I ran into the same problem. If you have the 11g client installed on your machine, then you need to be using the 11g ODP.Net DLL. I had to completely uninstall everything, and then install the 11g client, and then the 11g ODP.NET drivers. The drivers get installed in the GAC and it gets to be kinda a pain.

*Note, it is my understanding from my DBA that this only works if you don't have to connect to any version less than 9i *

We had to do this on our servers also.

HTH

Even after installing the appropriate Oracle Client version, we have to check that which .Net Framewark is installed in the server, ODP.Net supports to .Net Framework 3.5 to 4.5.2.

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