How do I handle -911 (deadlock) error in a db2 program so
that the program will never abend?

Answer Posted / sireesha

Dead lock time out erro occurs in the following case:
If two or more programs acquired exclusive lock on the
data,which may be needed for other programs without that
data which can not proceed further.

Solution: You can roll back current unit of work for one of
the programs after preset time interval for deadlocks and
terminate that program.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are db2 objects?

641


What are packages in db2?

599


What are the prerogatives?

617


Mention some fields that are a part of sqlca.

603


How to execute stored procedure in db2 command editor?

532






What is data manager?

611


What is a db2 schema?

764


What is release/acquire in bind?

656


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

706


How do I add a column to a table in db2?

624


How does a cursor work?

558


What is explain in db2?

585


What is temporal table in db2?

605


Highlight all the advantages that are attached to a package.

629


What action db2 takes when a program aborts in the middle of a transaction?

659