Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

DB2 and ODBC

by jdklueber (Beadle)
on Jul 30, 2003 at 18:10 UTC ( [id://279300]=perlquestion: print w/replies, xml ) Need Help??

jdklueber has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to get a CGI running properly talking to a DB2 database over ODBC. My webserver is on an NT4 box, and ODBC seems to be properly configured- at least, we can use IBM's nifty little command center to query the database in question.

Inexplicably, when we run the cgi, we get this:
Content-type: text/plain DBD::ODBC::st execute failed: [IBM][CLI Driver][DB2] SQL0805N Package + "CDNXDB3T .NULLID.SQLLC000.3741676351614450" was not found. SQLSTATE=51002 (SQL-51002) [IBM][CLI Driver][DB2] SQL0031C File "D:\PROGRA~1\SQLLIB\bnd\db2ajgrt +.bnd" coul d not be opened. (SQL-HY000) [IBM][CLI Driver][DB2] SQL0805N Package "CDNXDB3T.NULLID.SQLLC000.374 +1676351614 450" was not found. SQLSTATE=51002 (SQL-51002)(DBD: st_execute/SQLExecute err=-1) at acif002.pl line 49. DBD::ODBC::st fetchrow_array failed: (DBD: no select statement current +ly executi ng err=-1) at acif002.pl line 56. <!-- #SET NAME=SQLErrStatusLine VALUE='EXEC failed: Could not execute +statement. ' --><!-- #SET NAME=TotalRows VALUE=0 --> C:\PROGRA~1\THINCL~1\FPO\CGI>
Just checked: it's the same query as we were running in the Command Center.

My question is this: Has anyone gotten DBD::ODBC to successfully talk to DB2? And does this error message look familiar to you? :-)

Just for the record, I'm currently waiting for a copy of the DB2 Application Development Client so I can compile DBD::DB2 and do this The Right Way. But I'm still miffed that ODBC isn't working and I want to know what didn't get configured correctly.
TIA...
--
Jason Klueber
ookami@insightbb.com

/(bb)|^b{2}/
--Shakespeare

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://279300]
Approved by sgifford
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found