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 error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-11, 09:15
Billa007 Billa007 is offline
Registered User
 
Join Date: Sep 2011
Posts: 107
Db2 error

Hi;

Please help me on that below error..While do Insert or Update in the front end screen ,the below error comes from the Stored Proc

UNSUCCESSFUL EXECUTION CAUSED BY A SYSTEM ERROR THAT DOES NOT PRECLUDE THE SUCCESSFUL EXECUTION OF SUBSEQUENT SQL STATEMENTS. SQLCODE=-901, SQLSTATE=58004, DRIVER=3.53.70DSRA0010E: SQL State = 58004, Error Code = -901
com.ibm.websphere.ce.cm.StaleConnectionException: UNSUCCESSFUL EXECUTION CAUSED BY A SYSTEM ERROR THAT DOES NOT PRECLUDE THE SUCCESSFUL EXECUTION OF SUBSEQUENT SQL STATEMENTS. SQLCODE=-901, SQLSTATE=58004, DRIVER=3.53.70DSRA0010E: SQL State = 58004, Error Code = -901


Again if we do the Insert or Update,Below error is received

MMPRXTM.DUAL IS AN UNDEFINED NAME. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.53.70DSRA0010E: SQL State = 42704, Error Code = -204
com.ibm.websphere.ce.cm.StaleConnectionException: MMPRXTM.DUAL IS AN UNDEFINED NAME. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.53.70DSRA0010E: SQL State = 42704, Error Code = -204


If I compiled the Strored proc again means the error wont come and the data inserted or updated successfully..
So that every time i need to compile the program again and again..
Please help me how to solVe it?
Reply With Quote
  #2 (permalink)  
Old 10-30-11, 09:21
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by Billa007 View Post
MMPRXTM.DUAL IS AN UNDEFINED NAME. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.53.70
As it says, there no table with the name "MMPRXTM.DUAL".
(Btw, table name sounds very Oracle-ish to me...)
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #3 (permalink)  
Old 10-30-11, 09:29
Billa007 Billa007 is offline
Registered User
 
Join Date: Sep 2011
Posts: 107
Thanks for the quick reply...
But I got sucessfull execution after i compiled the program again..
The error comes usually for the first time in a day...If i compiled again means it wont come for the rest of the day
Reply With Quote
  #4 (permalink)  
Old 10-30-11, 09:59
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by Billa007 View Post
The error comes usually for the first time in a day...If i compiled again means it wont come for the rest of the day
You'll need to give more details (e.g. content of your stored procedure) if you want a useful response!
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #5 (permalink)  
Old 10-30-11, 10:34
Billa007 Billa007 is offline
Registered User
 
Join Date: Sep 2011
Posts: 107
It has update,Insert and delete qurey and do the all prrocess for multiple records..Front end program will call this Stored proc while 'Save'...Getting multiple datas from front end and store it to the DB2 Table.

The Error usually comes rarely and first time in a day..
Reply With Quote
  #6 (permalink)  
Old 10-30-11, 12:22
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by Billa007 View Post
It has update,Insert and delete qurey and do the all process for multiple records..Front end program will call this Stored proc while 'Save'...Getting multiple datas from front end and store it to the DB2 Table.

The Error usually comes rarely and first time in a day..
You'll need to give more details (e.g. content of your stored procedure) if you want a useful response!
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #7 (permalink)  
Old 10-31-11, 03:27
Billa007 Billa007 is offline
Registered User
 
Join Date: Sep 2011
Posts: 107
We are receiving 50000 bytes length of Input record from front end via Linkage Section and moved to the Working variables
,Each recoed length is 2140 and occurs for 25 times(First 4 bytes as a Record count in the input record and next
is 1 byte query indicator )

The insert,Update and Delete query will be performed based on the record count and the query indicator.
For ex..

Code:
0004W098459900....Y098459911......W01198459900......Z098459901.......
First record      Second Rec       Third Rec         Fourth Rec
004-->Record count
W---->Update query
Y---->Insert query
Z---->Delete query
All query is direct simple,What we have received in the Input Record and store it into the table.
Please let me,if you want more info
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