Hi, there,
I am using DB2 UDB workgroup 7.2 on linux redhat 7.3, DBD-DB2 0.73 DBI 1.30
Perl 5.
I have no problem to connect to database by runnig the perl program
containing the following code in a command line:
......
my $dbh = DBI->connect("dbi:DB2:$mydatabase", "$user", "$password");
.....
However, I got the following error if the same program called through a web
server even within the same system (I have already create catalog of the
database and the database name I enter here is the alias name in the
catalog):
"Total Environment allocation failure! Did you set up your DB2 client
environment?"
The solution I found on the web said that I add
/home/instanceowner/sqllib/db2profile to Apache user. I tried this, but it
does not work.
Could anyone give me some information to set up db2 client environment?
Thanks in advance.
zl