How to resolve deadlock issue

Answers were Sorted based on User's Feedback



How to resolve deadlock issue..

Answer / bala

Dead lock occurs when two jobs/transactions are waiting for the resources from each other and gets locked up.
Transaction A cannot proceed further until Transaction B is complete
similary Transaction B cannot proceed until Transaction A is complete.

To solve this issue, one of the transaction should be stopped for other transaction to proceed successfully.

Is This Answer Correct ?    10 Yes 1 No

How to resolve deadlock issue..

Answer / ashish

Deadlock issue you get when suppose same table is being used
by many applications. The first solution is you should wait
for a while til other users use it. or you can get the
utility thread kill by Database Administrators.

Is This Answer Correct ?    8 Yes 2 No

How to resolve deadlock issue..

Answer / akbar

Adding to the second part of Bala:
There may be involvement of multiple application in
deadlock situations and not just 2.

Is This Answer Correct ?    0 Yes 0 No

How to resolve deadlock issue..

Answer / ekalavya

USE AS MANY COMMITS IN THE PROGRAM.

Is This Answer Correct ?    0 Yes 2 No

How to resolve deadlock issue..

Answer / angoca

Try to change the isolation level. Also, always reserve the
resources in the same order:

For breakfast, first pick cereal and then milk. Do not do
the opposite (milk then cereal), and this will reduce the
deadlock occurencies. They will be block at the first ressource.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More DB2 Interview Questions

Which one allows duplicate values Union or Union All ?

3 Answers  


what is difference between Static call and Dynamic call? How does it function?

1 Answers   Syntel,


How to get Top 10 Salaries from a Table

11 Answers   Accenture, HTC,


Define data page.

0 Answers  


What is a cursor and what is its function?

2 Answers  






I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?

0 Answers  


Mention data types used in db2 ?

0 Answers  


Hi Team, Please tell me, If i don't declare the cursor in the program and i have given open and fetch and close, then what error will get.

6 Answers   IBM,


How do you select a row using indexes in db2?

0 Answers  


How to resolve SQL Code -310. The db table feild is declared as Decimal(7,2).

2 Answers   IBM, Infosys,


What is the purpose of the WHENEVER statement?

1 Answers  


i have cobol+ db2 program but it contains n number of subprograms for this how many dbrm members i need to mention in bind process

2 Answers  


Categories