|
|
 |
DB2 Perl Database Interface for LUW
 |
| | | Question | | How can my application written in Perl access my DB2 UDB Version 8, 9 and above database for LUW? | | | | | | Cause | DBI is an open standard application programming interface (API) that provides database access for client applications written in Perl. DBI defines a set of functions, variables, and conventions that provide a platform-independent database interface. The DBD::DB2 driver works with DBI and a DB2 client to access databases. The latest release is 1.2. (See below for previous releases.)
README DBD::DB2 source | | | | | | Answer | 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.2 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 (For Version 5.8) ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/DBD-DB2.ppd (For Version 5.10)
- 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:
perldoc DBD::DB2 | | For help running Perl with DB2 UDB Version 8 64-bit for AIX 5.2, refer to this
technote. | | | | | | | | | | |
 |
 |
| Please take a moment to complete this form to help us better serve you. |
 |
 |
 |
|
|
|
 |
 |
| Product categories: |
 |
| | Software |  | | | Data Management |  | | | Data Servers (Database Management Systems) |  | | | DB2 for Linux, UNIX and Windows |  | | | DB2 Programming Interfaces - Scripting Languages- Rexx- Perl |  |
 |
| Operating system(s): |
| |
AIX, HP-UX, Linux, Solaris, Windows
|
 |
| Software version: |
| |
8, 9.1, 9.5
|
 |
| Software edition: |
| |
Enterprise Server
|
 |
| Reference #: |
| |
1297335
|
 |
| IBM Group: |
| | Software Group |
 |
| Modified date: |
| | 2008-09-23 |
 |
|
|