如何部署使用ODAC的.NET应用程序,而不将整个组件安装到用户? [英] How can I deploy a .NET application that uses ODAC without installing the whole component to the user?

查看:184
本文介绍了如何部署使用ODAC的.NET应用程序,而不将整个组件安装到用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个连接到Oracle 10g数据库的C#应用​​程序。使用Oracle数据访问组件11.2ODAC,它在我的机器上完美工作。



现在我要部署应用程序并将其安装在另一个干净的机器中只有.NET Framework!而且我不想安装整个ODAC组件给用户!



我该怎么做?我试图将所有必需的DLL文件包含在我的bin文件夹中,如:




  • oci.dll

  • ociw32.dll

  • Oracle.DataAccess.dll

  • orannzsbb11.dll

  • oraocci11.dll

  • oraociicus11.dll

  • OraOps11w.dll

  • msvcr71.dll



但仍然没有工作。我应该怎么做来解决这个问题?

解决方案

我不知道你是否关心必须安装Oracle客户端除了〜50 MB的ODAC安装或只是独立的ODAC。



如果担心安装Oracle客户端和ODAC,可以使用 Oracle Instant Client ?这是安装Oracle客户端最小的方法。您还需要ODAC xcopy补充。



如果您关心的只是ODAC安装,我认为没有足够的空间可用。


I have written a C# application that connects to an Oracle 10g database. Using Oracle Data Access Component 11.2 "ODAC", it works perfectly on my machine.

And now I want to deploy the application and install it in another "clean machine" that has the .NET Framework only! And I don't want to install the whole ODAC component to the user!

How could I do that? I have tried to include all the necessary DLL files to my bin folder, like:

  • oci.dll
  • ociw32.dll
  • Oracle.DataAccess.dll
  • orannzsbb11.dll
  • oraocci11.dll
  • oraociicus11.dll
  • OraOps11w.dll
  • msvcr71.dll

But still it didn't work. What should I do to solve this problem?

解决方案

I'm not sure whether your concern is about having to install the Oracle client in addition to the ~50 MB ODAC install or just the standalone ODAC.

If the concern is about having to install the Oracle client and the ODAC, you can use the Oracle Instant Client? That's the smallest footprint method for installing the Oracle client. You'll also need the ODAC xcopy supplement.

If your concern is just the ODAC install, I don't think there is a smaller footprint available.

这篇关于如何部署使用ODAC的.NET应用程序,而不将整个组件安装到用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆