MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deadlock with Rollback (-911)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
jayan.r
Beginner


Joined: 16 Jan 2006
Posts: 4
Topics: 2

PostPosted: Mon Jan 16, 2006 12:27 pm    Post subject: Deadlock with Rollback (-911) Reply with quote

Hi,
I have a peculiar situation here.
I have a database on which an INSERT is taking place.
The Logic goes something like this.
The program has to insert a record in the database whose primary key is a random number. The program generates a random number and tries to INSERT a record. If the record is duplicates then the program generates a new random number and inserts the record again. This process continues for 999 times after which if unsuccessful the job abends.
Now inorder to enable parallel processing 9 replicas of this job is executed at a single go.
At times this job abends with a -911. Can anyone give any idea of what could be wrong.
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Jan 16, 2006 1:11 pm    Post subject: Reply with quote

jayan.r,
What is the Commit frequency? It maybe holding locks for too long causing the parallel threads to timeout.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group