If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 SQLDA Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-05, 22:22
vidyaraok vidyaraok is offline
Registered User
 
Join Date: Aug 2004
Posts: 15
DB2 SQLDA Error

Hello,


While running SQL SP, some times i am getting error:

-804: [SQL State] 07002: [IBM][CLI Driver][DB2/6000] SQL0804N The application program input paramet
ers for the current request are not valid. Reason code "102". If a host variable or SQLVAR in the SQLDA is invalid then: host variable/SQLVAR number = "10", SQLTYPE = "167213132", SQLLEN = "13132", host variable/SQLVAR type = "INPUT". SQLSTATE=07002


The error does not occur every times. coupe of times SP gets executed smoothy. The SP is caiing other 4 SPs to compete the processing.

DB2 i am USing is Ver 7.2, OS - AIX.

can anybody put focus on it?

thnaks in advance
Reply With Quote
  #2 (permalink)  
Old 02-26-05, 01:56
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
Well the reason code indicates the SQLTYPE is invalid, and it certainly looks unhealthy. http://publib.boulder.ibm.com/infoce...n/r0001030.htm has a list of valid sqltypes. I've found that -804s are symptomatic of a program overwriting its memory areas - including the sqlda.

All I can suggest is grabbing the C code generated by the SQL preprocessor and doing some debugging at that level.

James Campbell
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On