如何正确部署IBM DB2数据提供程序 [英] How to properly deploy IBM DB2 data provider

查看:159
本文介绍了如何正确部署IBM DB2数据提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在服务器上使用DB2,我的应用程序直接连接到该服务器。作为数据提供者,我使用 v9.7 FP5 ibm数据服务器驱动程序和Visual Studio插件。现在,要使用ClickOnce在客户端计算机上安装我的程序并提供整个IBM驱动程序包,那的确不是最好的解决方案,因为如果IBM更新他们的驱动程序,我所有的客户也必须更新它们。难道我只是将一些提供程序DLL包含在ClickOnce程序包中,并且仅在正在部署ClickOnce安装程序的计算机上更新它们?

PS:

如何做我要在应用程序中重新分发DB2 .NET吗?

Im using DB2 on server and my application connects directly to that server. As data provider i use v9.7 FP5 ibm data server driver and visual studio addins. Now..To install my program on client computers im using ClickOnce and providing WHOLE IBM driver package and thats really not best solution, because if IBM update their drivers-all my clients will have to update them too. Cant i just include some provider DLLs into ClickOnce package and update them only on the computer that is deploying ClickOnce setup?
PS: seem that i cant just deploy some dlls :(
How do I redistribute DB2 .NET with my application?


不能简单地复制DB2 .NET提供程序,它有几个
支持文件和安装操作,因此需要安装
。这可以通过以下方法之一完成:

The DB2 .NET provider can not simply be copied, it has several supporting files and installation actions, and thus it needs to be installed. This can be accomplished by one of these methods:


  1. 目标计算机上用于ODBC,CLI和.NET的数据服务器运行时客户端或数据服务器驱动程序(简称ds驱动程序)

  1. Install the Data Server Runtime Client or the Data Server Driver for ODBC, CLI and .NET (ds driver for short) on the target machine(s)

将Data Server Client Runtime合并模块与您的应用程序打包在一起,详细信息在Runtime Client Merge Module在线中
信息

Package the Data Server Client Runtime merge modules with your application. Details are in the Runtime Client Merge Module online information


从我的角度来看,这确实不是解决方案。事实证明,他们在开发应用程序时提供了与数据库一起使用的解决方案,并且在产品投入生产后,客户必须安装驱动程序(〜100mb)才能使我的软件可以与数据库一起使用...

And this really is not solution from their side i think. Turns out that they provide solution to work with their DB while developing application and after it goes production- clients MUST install their drivers(~100mb) to allow my software to work with their database...

推荐答案

我在这里看到了两种选择。第一,您不必安装完整的100mb + db2客户端。您可以安装数据服务器驱动程序包,英语版仅31mb。除非您需要新版本中包含的新功能或错误修复,否则您也不必每次IBM更新时都在客户端上对此进行更新。

I see two alternatives that you have here. One, you don't have to install the full 100mb+ db2 client. You can install the "Data Server Driver Package" which is only 31mb for the English version. You also don't have to update this on your clients every time IBM updates it unless you need new features or bug fixes that are included in the new version.

每秒更好的IMO,选项是使用IBM提供的数据服务器驱动程序合并模块。您可以将它们包含在.Net应用程序的安装包中。但是,尽管我不确定,您怎么做。我问了问题前一阵子,却没有得到回应。

A second, better IMO, option is to use the Data Server Driver Merge Modules that IBM provides. You can include them with the installation package of your .Net application. But HOW you do that though I'm not sure. I asked a question on it a while back and never got a response.

这篇关于如何正确部署IBM DB2数据提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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