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 > stored procedure error on 8.1 fp 18 ( 64 bit)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-11, 19:08
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
stored procedure error on 8.1 fp 18 ( 64 bit)

Hi, we just migrated from 32-bit 8.1 FP 15 db2 udb to 64-bit 8.1 FP 18 db2 udb on linux. I successfully restored the backup image of the 32-bit machine to the 64-bit machine, when I call a stored procedure on the new ( 64-bit) machine.. I get the error below... any ideas? thanks!!



db2 "call db2inst1.SAMPLEPROC (2238, 'Name', '2011-07-11-04.00.00.000000', '2011-07-13-04.00.00.000000', '1 DAY', 'US/Eastern', 0)"
SQL0901N The SQL statement failed because of a non-severe system error.
Subsequent SQL statements can be processed. (Reason "Sdir len bad:
1535!=1520+13".) SQLSTATE=58004
Reply With Quote
  #2 (permalink)  
Old 05-12-11, 00:20
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I bet that if you thought about this, you could come up with some things to try that might fix the Stored Procedure.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 05-12-11, 19:46
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by db2user24 View Post
I successfully restored the backup image of the 32-bit machine to the 64-bit machine

What did you have to do to get it successfully restored?
Reply With Quote
  #4 (permalink)  
Old 05-13-11, 00:08
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
Quote:
Originally Posted by BELLO4KA View Post
What did you have to do to get it successfully restored?

Hi,

Our restore failed on Lenny and Squeeze so I eventually found an article where someone mentioned that he had successfully restored the image on CentOS.. so we pretty much changed the operating system to CentOS and it worked! So a 32-bit restore on 64-bit CentOS works... thanks for all your help!
Reply With Quote
  #5 (permalink)  
Old 05-13-11, 00:13
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
Quote:
Originally Posted by Marcus_A View Post
I bet that if you thought about this, you could come up with some things to try that might fix the Stored Procedure.
And you're absolutely right! I think with the slight change in versions.. there was a problem with an underlying the sproc on 8.1 FP 18 where if I try to reuse the same prepare statement, then it would complain saying that it's already in use. So all I had to do was create another prepare statement with another variable name and it fixed it!
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