in reply to Re: "Total Environment allocation failure" after DBI and DBD::DB2 upgrade
in thread "Total Environment allocation failure" after DBI and DBD::DB2 upgrade

Thanks tachyon-II. I think I already got those covered:
$ tail -5 ~/.bashrc if [ -f /home/db2inst3/sqllib/db2profile ]; then . /home/db2inst3/sqllib/db2profile fi $ ls -l /home/db2inst3/sqllib/db2profile -rwxr-xr-x 1 db2inst3 db2iadm1 6625 Apr 24 12:26 /home/db2inst3/sqlli +b/db2profile $ /home/db2inst3/sqllib/db2profile $ perl use strict; use warnings; use DBI; use DBD::DB2; DBI->connect('DBI:DB2:viper', 'db2inst3', ''); __END__ DBI connect('viper','db2inst3',...) failed: Total Environment allocati +on failure! Did you set up your DB2 client environment? at - line 5
Could the explanation lay elsewhere?
--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]
  • Comment on Re^2: "Total Environment allocation failure" after DBI and DBD::DB2 upgrade
  • Download Code

Replies are listed 'Best First'.
Re^3: "Total Environment allocation failure" after DBI and DBD::DB2 upgrade
by tachyon-II (Chaplain) on Apr 25, 2008 at 00:15 UTC

    The line in your .bashrc and what you type at the command line are not equivalent. There is a subtle and very important difference, particularly when it comes to setting the environment.

    $ /home/db2inst3/sqllib/db2profile

    Will fork a subshell, set the environment (for that subshell), and exit. The environment in your current shell remains unchanged.

    Although your .bashrc should be handling it there would seem to be no harm in trying either of these which will run db2profile in your current shell.

    $ . /home/db2inst3/sqllib/db2profile $ source /home/db2inst3/sqllib/db2profile