problem connecting to DB2 in perl using DBI
- From: Shilpa.Desawale@xxxxxxxxxxxxxxxxx
- Date: 28 Apr 2006 01:48:06 -0700
Hi All,
I am trying to connect to DB2 via cross platform call, which
fails. I am able to connect to the DB2 in a standalone perl. I am also
able to connect to DB2 via Java. But when I make a call to the perl
through java, and that perl tries connecting to the DB2, the connection
does not succeed. It fails at the following statement --
$dbh = DBI->connect ("dbi:ODBC:$server", $username, $password);
And the error is --
DBI->connect(DP2K) failed: [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_ENV failed (SQL-IM004)(DBD:
db_login/SQLConnect err=-1)
I am connecting to DB2 in java through the --
com.ibm.db2.jcc.DB2Driver -- Driver and it connects successfully its
next when I try to connect to DB2 again through perl (which is called
via java class) it fails.
Is some different connect string required when we make such a call ?
Thanks and Regards
Shilpa
.
- Prev by Date: Re: Re: DBD::Oracle ppd
- Next by Date: problem connecting to DB2 in perl using DBI
- Previous by thread: dbi.perl.org isn't working all that great
- Next by thread: problem connecting to DB2 in perl using DBI
- Index(es):
Relevant Pages
|