IBM created the DB2 driver for Perl in 1995 and periodically updates it as the DBI specification evolves.
The latest version of the driver (at the time of writing this article) is 0.78.
DBI, the standard for connecting Perl scripts to an RDBMS, was introduced in 1994.
You can find the DBI driver source and its documentation at
Starting from Perl 5 it has become very easy to write database applications using DBI module.
DBI stands for Database Independent Interface for Perl which means DBI provides an abstraction layer between the Perl code and the underlying database, allowing you to switch database implementations really easily.
This tutorial will teach you how to access a database inside your Perl script.
You'll find the main DBD:: DB2 (this is the naming technique within the Perl language) driver information page at
This article shows you how to write simple Perl programs that extract or manipulate data stored in DB2 UDB.
See the next section, "Raise Error" and "Test inserts worked".
The handle attribute Raise Error is, by default, turned off.