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

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

问题描述

我编写了一个连接到 Oracle 10g 数据库的 C# 应用程序.使用 Oracle Data Access Component 11.2 "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.

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

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!

我怎么能这样做?我尝试将所有必要的 DLL 文件包含到我的 bin 文件夹中,例如:

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?

推荐答案

我不确定您是否担心除了约 50 MB 的 ODAC 安装之外还必须安装 Oracle 客户端,还是仅安装独立的 ODAC.

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.

如果担心必须安装 Oracle 客户端和 ODAC,您可以使用 Oracle 即时客户端?这是安装 Oracle 客户端的最小占用方法.您还需要 ODAC xcopy 补充文件.

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.

如果您只关心 ODAC 的安装,我认为没有更小的可用空间.

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

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

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