O
oillai
Hi,
I write a perl program to connect to a remote DB2 database to generate
daily report.
I execute the program by command line is OK, but executed by crontab
is failed.
The program connection section:
$uid="username";
$pwd="password;
$dsn = "dbiB2ATABASE=WAREHOUS";
$warehouse_dbh = DBI->connect($dsn, $uid, $pwd) || die "Connection
failed with error: $DBI::errstr";
============================================================================
The error message is following.
Connection failed with error: Total Environment allocation failure!
Did you set up your DB2 client environment?
I write a perl program to connect to a remote DB2 database to generate
daily report.
I execute the program by command line is OK, but executed by crontab
is failed.
The program connection section:
$uid="username";
$pwd="password;
$dsn = "dbiB2ATABASE=WAREHOUS";
$warehouse_dbh = DBI->connect($dsn, $uid, $pwd) || die "Connection
failed with error: $DBI::errstr";
============================================================================
The error message is following.
Connection failed with error: Total Environment allocation failure!
Did you set up your DB2 client environment?