How to resolve deadlock issue
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?
For Read Stability locks are not applicable for phantoms, What is Phantoms?
What are the various data types available in db2?
What is db2 look?
What does CURRENTDATA option in bind indicate
how can you copy records present in a flat physical file to a database file(physical file).please explain in rpg400 with a simple example
Which catalog tables contain authorization information?
Is it possible using max on a char column?
How to define the data items to receive the fetch items for the SQL?
What is correlation names?
What does DML stand for and what are some examples of it?
what is the soft code for deadlock ?