我该如何部署使用ODAC无需安装整个组件给用户一个.NET应用程序? [英] How can I deploy a .NET application that uses ODAC without installing the whole component to the user?

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

问题描述

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

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框架只安装了!我不希望整个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?

推荐答案

我不知道你的关心是否是关于必须安装Oracle客户端除了〜50 MB ODAC安装或仅仅是独立的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天全站免登陆