andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:
I get the following error after having upgraded DBI and DBD::DB2 to the latest versions (1.604 and 1.1, respectively):
The intarweb suggests it has something do to with the environment variables, which are as follows:$ /usr/bin/perl use strict; use warnings; use DBI; use DBD::DB2; DBI->connect('DBI:DB2:viper', 'db2inst3', ''); __END__ DBI connect('viper','db2inst3',...) failed: Total Environment allocation failure! Did you set up your DB2 client environment?
Note that I can access the database on the command line just fine:$ set | egrep '(DB2|INSTHOME)' CUR_INSTHOME=/home/db2inst3 DB2DIR=/opt/ibm/db2/V9.5 DB2INSTANCE=db2inst3 INSTHOME=/home/db2inst3
Any guidance as to how to resolve this issue is appreciated.$ db2 connect to viper Database Connection Information Database server = DB2/LINUX 9.5.0 SQL authorization ID = DB2INST3 Local database alias = VIPER $ db2 select CURRENT_TIMESTAMP from sysibm.sysdummy1 1 -------------------------- 2008-04-24-15.00.39.518770 1 record(s) selected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Total Environment allocation failure" after DBI and DBD::DB2 upgrade
by tachyon-II (Chaplain) on Apr 24, 2008 at 13:35 UTC | |
by andreas1234567 (Vicar) on Apr 24, 2008 at 20:18 UTC | |
by tachyon-II (Chaplain) on Apr 25, 2008 at 00:15 UTC |