Perl DBI failing to connect to cataloged DB2 database.
Posted
by Buzkie
on Stack Overflow
See other posts from Stack Overflow
or by Buzkie
Published on 2010-04-19T17:14:29Z
Indexed on
2010/04/20
18:33 UTC
Read the original article
Hit count: 302
I've downloaded the IBM DBI package, including all the packages in my program as specified in the docs. I've cataloged the DB and can connect to it from the command line, but my DBI connect fails:
$dbh = DBI->connect ("dbi:DB2:warehou1", user, pass) or die "Can't connect to sample database: $DBI::errstr";
Can't connect to sample database: [IBM][CLI Driver] SQL1031N The database directory cannot be found on the indicated file system. SQLSTATE=58031
© Stack Overflow or respective owner