出现这个的错误提示
The required library file libaio.so.1 is not found on the system.
Check the following web site for the up-to-date system requirements
of IBM DB2 9.5
http://www.ibm.com/software/data/db2/udb/sysreqs.html
http://www.software.ibm.com/data/db2/linux/validate
使用下面的命令安装
sudo apt-get install libstdc++5
sudo apt-get install libaio-dev
sudo ./db2setup

- IBM DB2 UDB 8.1.2(需要安装服务器版的DB2)
DB2Connection cn = new DB2Connection(
“Database=TEST;UserID=db2admin; Password=password;Server=IS500″);
DB2Command cmd = new DB2Command(“SELECT COUNT(*) FROM EMP01″, cn);
int count = Convert.ToInt32(cmd.ExecuteScalar());
- Microsoft Host Integration Server 2006
试用下载地址:https://thesource.ofallevil.com/taiwan/hiserver/evaluation/trial/default.mspx
- DataDirect Connect for .NET, Edition 2.0
http://www.ddtek.com/products/dotnet/dotnetrelhigh.asp (DataDirect)
- Mono.Data.DB2Client
http://www.go-mono.com/ibmdb2.html (Mono)
链接字符串:
TCP/IP
“Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=XXX.XXX.XXX.XXX;Initial Catalog=MyCtlg;Package Collection =MyPkgCol;Default Schema=Schema;User ID=MyUser;Password=MyPW”
APPC
“Provider=DB2OLEDB;APPC Local LU Alias=MyAlias;APPC Remote LU Alias =MyRemote;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema;UserID=MyUser;Password=MyPW”