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
 
Deadlock in DB2

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

New User


Joined: 12 Jan 2010
Posts: 66
Location: US

PostPosted: Tue Jul 27, 2010 11:46 am    Post subject: Deadlock in DB2
Reply with quote

This question was asked in interview.
Deadlock occured for the table EMP (-911). If we use CS (cursor stability) can we remove the deadlock ? If so how can we remove deadlock ?.
I know that while binding we can give CS parameter to avoid deadlocks but after deadlock happens i dont know how to remove the deadlock? Please explain how to remove deadlock.
I have searched the forum but am confused, hence i posted this question....
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: Tue Jul 27, 2010 7:15 pm    Post subject:
Reply with quote

Hello,

You don't remove a deadlock - it is automatically removed. When a deadlock (sometimes known as a "fatal embrace" is detected, the task causing the the deadlock is terminated.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Jul 27, 2010 7:29 pm    Post subject:
Reply with quote

considering the lack of experience and knowledge of the TS,
i think it is important to modify the statement.
Quote:
the task causing the the deadlock is terminated

to
Quote:
the DB2 task (not the task requesting db2 to process the sql) causing the the deadlock is terminated
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: Tue Jul 27, 2010 8:58 pm    Post subject: Reply to: Deadlock in DB2
Reply with quote

Hi Dick,

Yup, good point - i should have said the same icon_smile.gif

d
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 -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts Can a select query participate in a d... apvardhini DB2 1 Fri May 29, 2015 12:39 pm
No new posts Related to Deadlock issue sivareddy123 DB2 2 Fri Jan 30, 2015 3:59 pm
No new posts table scan can cause deadlock over RID? dejunzhu DB2 10 Fri Jul 04, 2014 8:36 am
No new posts Creating IDMS Deadlock seahawk789 IDMS/ADSO 1 Fri Apr 11, 2014 5:47 pm

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