文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>perl操作DB2数据库的环境准备

perl操作DB2数据库的环境准备

时间:2008-03-12  来源:starB6

Compiling the DBD :: DB2 module on Linux or UNIX

To build and install the DBD::DB2 module, you need the following:

  • Perl 5.005_03 or later
  • DB2 Application Development Client
  • A supported C compiler as documented under 'Supported operating systems' on the Application development Web page.
  1. Set the DB2_HOME environment variable to the location of your DB2 instance. For example:bash# export DB2_HOME=/home/db2inst1/sqllib
  2. Install the DBI module:bash# perl -MCPAN -e 'install DBI'
  3. Install the DBD::DB2 module:bash# perl -MCPAN -e 'install DBD::DB2'

Installing DBD::DB2 with ActivePerl on Windows

If you are using the ActiveState Perl distribution on Windows, you can install a binary version of the DBI and DBD::DB2 modules.

Prerequisites:

  • ActivePerl 5.8 or later
  • DB2 client, Version 8.1 or later

For example, if you have ActivePerl 5.8.7 installed, you can install the DBD::DB2 modules as follows:

  • Install the DBI module by issuing the following command (the DBI module is a prerequisite for the DBD::DB2 module): ppm install DBI
  • Install the DBD::DB2 module by issuing the following command: ppm install http://theoryx5.uwinnipeg.ca/ppms/DBD-DB2.ppd
  • To uninstall the DBD-DB2 module, issue: ppm uninstall DBD-DB2

When the DBD::DB2 module is successfully installed, you can access documentation and a sample application by issuing the following command:

 

 

 

http://www-306.ibm.com/software/data/db2/perl

相关阅读 更多 +
排行榜 更多 +
丛林反击战

丛林反击战

飞行射击 下载
宝宝情商养成宝宝巴士

宝宝情商养成宝宝巴士

休闲益智 下载
燥热手机版

燥热手机版

飞行射击 下载