IBM DB2驱动程序的部署/安装 [英] IBM db2 driver deployment / installation

查看:1353
本文介绍了IBM DB2驱动程序的部署/安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用C#应用程序连接到IBM DB2数据库。起初,我已经安装了 IBM数据服务器驱动程序包,其中,根据<一href="http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html"相对=nofollow>文档是的使用ODBC,CLI,.NET,OLE DB,PHP,Ruby的,JDBC或SQLJ应用程序,使用IBM数据服务器驱动程序包的。后来我想,我可以用的IBM.Data.DB2 组件,并愉快地连接。它没有在所有的工作,因为该应用程序保持崩溃而寻找 db2app.dll 在其当前的工作目录。

I'm trying to connect to IBM DB2 database with C# application. At first I've installed IBM Data Server Driver Package, which, according to the documentation is for applications using ODBC, CLI, .NET, OLE DB, PHP, Ruby, JDBC, or SQLJ, use IBM Data Server Driver Package. Then I thought I could use IBM.Data.DB2 assembly and happily connect. It didn't work at all, as the app kept crashing while looking for db2app.dll in its current working directory.

然后我安装 IBM数据服务器客户机,里面有这个DLL中的bin目录,我加入到系统路径。这并没有帮助,所以我把它复制到我的应用程序的build目录,并且它现在的作品。但我不认为这是正确的,因为我也有复制味精\ EN_US \ db2nmp.xml 文件到我的build目录获得异常错误文本。

Then I installed IBM Data Server Client, which has this dll in "bin" directory, which I added to system path. That didn't help, so I copied it to my app's build directory, and it now works. But I don't think that is correct, as I also had to copy msg\en_US\db2nmp.xml file to my build directory to get exception error texts.

我认为这是错误的,所有这些文件从DB2安装复制的,我应该以某种方式能够迫使的IBM.Data.DB2 组装查找其所需文件系统路径,而不是在它的工作目录。我还认为,数据服务器驱动程序包应该是足够了,但我没能与 IBM.Data.DB2.dll ,直到我安装了较大的数据服务器客户机

I think it's wrong to copy all these files from DB2 installation, and I should somehow be able to force IBM.Data.DB2 assembly to look for its required files in the system path, not in its working directory. I also think that Data Server Driver Package should be enough, but I wasn't able to do anything with IBM.Data.DB2.dll until I installed the larger Data Server Client.

我认为这个问题是我的结束,而不是与IBM,所以我做的事情很明显或微妙的错误。

I assume that the problem is on my end, not with IBM, so I'm doing something obviously or subtly wrong.

我的问题是:我如何使用较小的 IBM数据服务器驱动程序包与.NET应用程序

My question is: How do I use the smaller IBM Data Server Driver Package with .NET application?

推荐答案

我认为你正在寻找此信息是在DB2手册中找到: <一href="http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.swg.im.dbclient.adonet.doc/doc/c0010960.html" rel="nofollow">http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.swg.im.dbclient.adonet.doc/doc/c0010960.html

I think you are looking for this information that is available in DB2 manual: http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.swg.im.dbclient.adonet.doc/doc/c0010960.html

也许这也帮助: <一href="http://www.ibm.com/developerworks/wikis/display/DB2/DB2%20and%20.NET%20FAQs#DB2and.NETFAQs-WherecanIfindtheDB2.NETproviderandVSAddins?" rel="nofollow">http://www.ibm.com/developerworks/wikis/display/DB2/DB2%20and%20.NET%20FAQs#DB2and.NETFAQs-WherecanIfindtheDB2.NETproviderandVSAddins%3F

在一般情况下,我想你应该已经安装了IBM数据库插件的Visual Studio从这里(需要IBM注册): https://www14.software。 ibm.com/webapp/iwm/web/$p$pLogin.do?source=swg-daivs

In general, I think you should've installed IBM Database Add-Ins for Visual Studio from here(Requires IBM Registration): https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=swg-daivs

这篇关于IBM DB2驱动程序的部署/安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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