DB2 has an automatic process that checks for deadlocks. It "perks" up every
10 secs. by default.
If a deadlock is detected, one member will be rolled back and the other will
proceed. Unless you want a 7 day dissertation, do not ask how DB2 chooses.
If you are running DB2 V8 and up then when you create a db, by default an
event monitor called DB2 DETAILDEADLOCK with an auto start option is
created.
This means that if deadlocks are encountered and resolved, they have been
identified and detailed in the output files of the event monitor. On my
Windoze home box, they are in:
d:\instname\node0000\SQL0001\db2event
Those files need to be formatted for intelligent reading and you use the
db2evmon tool to do so.
HTH' Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"kavin" <ka*************@gmail.coma écrit dans le message de news:
11**********************@j27g2000cwj.googlegroups. com...
hi,
can any one help me in detecting a deadlock and to clear the deadlock
when it occours?
how to monitor the databases for deadlocks?