Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How resolve the deadlock: Db2 -911 error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Fri Mar 23, 2007 5:28 pm    Post subject: How resolve the deadlock: Db2 -911 error
Reply with quote

In Db2 i got -911 error. Now how to resolve this error
What is the way of solve this bug

Raghuraman
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Mar 23, 2007 5:37 pm    Post subject:
Reply with quote

Start at the Messages and Codes manual and see what it suggests:
Quote:
The reason code indicated whether a deadlock or timeout occurred.
Refer to message DSNT500I under "DSNT... Messages" in topic 3.15 for an explanation of 'resource-type' and 'resource-name'.
Refer to Table 3 in Appendix B, "Appendix B. Problem Determination" in topic APPENDIX1.2 for an explanation of resource type codes.
Back to top
View user's profile Send private message
raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Fri Mar 23, 2007 6:59 pm    Post subject: Re: How resolve the deadlock
Reply with quote

no
I can't see clearly
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Mar 23, 2007 7:53 pm    Post subject:
Reply with quote

Hello,

You most likely have 2 processes that are in conflict with each other. This is caused because the processes do not lock rows in the same order.

Process1 reads a row from tableA for update. Process2 reads a row from tableB for update. Next, process1 tries to read the same row that is held by process2 - it has to wait for the lock to be released. While process1 is waiting, process2 tries to read the row locked by process1.

Whoa, now they are both waiting on each other - a condition known as "deadly embrace", "fatal embrace", or deadlock. The request that "completes" the deadlock is ended with an error condition.

If both processes always locked tableA before tableB, this would not occur. This is best considered/done at design time - not after the code has made it to production use.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us