Hi Perlers..............

I am not able to connect to my perl script to 
database................Could u plz help me..................
my Code in the simple form is listed below...................

and the error i have listed in BOLD letters.


use strict;
use warnings;
my $dbh = DBI->connect( 'DBI:DB2:SAMPLE',
                        'db2admin',
                        'db2admin',
                      );
 
 
DBI connect('SAMPLE','db2admin',...) failed: Total Environment allocation 
failure!  Did you set up your DB2 client environment? at test2.pl line 3

Do we have to set some environment variable.for perl in db2.............

Actually the above program works fine when I login as databse 
administartor on my unix machine if I login as somebody else then It 
doesn't work..........
and give the above listed error.



Mayank Ahuja
Team Member
Tata Consultancy Services Limited
Ph:- 044-55555816
Cell:- 9283199460
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com

Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Reply via email to