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

In reply to DB2 and ODBC by jdklueber

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.