On Thu, 17 Oct 2002 17:18:46 -0700 Limei Zhang <[EMAIL PROTECTED]> wrote:
> 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?
http://xmlproj.com/fom-serve/cache/20.html
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.