简体   繁体   English

通过ODP.NET连接到Oracle

[英]Connect to Oracle via ODP.NET

I have installed oracle 12C ODP.NET in my server.i am using it to connect with my oracle 11g database.it is working fine in my Development server.But when i deployed my application to Live server, it shows "Unhandled exception". 我已经在服务器中安装了oracle 12C ODP.NET。我正在使用它来连接oracle 11g数据库。它在开发服务器中运行良好。但是,当我将应用程序部署到Live服务器时,它显示“未处理的异常”。 I dont know why it shows that.It worked on my development server.Is there any conflict between 32 or 64 bit? 我不知道为什么会这样显示。它可以在我的开发服务器上运行.32位或64位之间是否存在任何冲突? my application built on "Any CPU" mode and my server is 64 bit.Anyone can help ? 我的应用程序是基于“任何CPU”模式构建的,服务器是64位的。任何人都可以帮忙吗?

You simply have to copy dll Oracle.ManagedDataAccess.dll to same folder as your application. 您只需要将dll Oracle.ManagedDataAccess.dll复制到与您的应用程序相同的文件夹即可。 It does not matter if 32 bit or 64 mode, the managed driver works on both. 不管是32位还是64位模式,托管驱动程序都可以同时工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM