If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Dead locks..and Lock waits..

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-05, 11:01
dba_udb dba_udb is offline
Registered User
 
Join Date: Mar 2005
Posts: 73
Dead locks..and Lock waits..

UDB ..8.2 ..OS AIX

Please throw some light on Dead lock issues..
why it occurs ?
when two applications tried to do some work on a same table ..do they go into deadlock state?

can some one give me more explanation with some examples...
Reply With Quote
  #2 (permalink)  
Old 10-13-05, 11:37
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
deadlock

deadlock is related to locking
if 2 or more applications are involved and trying in the same luw doing select and update - and this for both appl, you usually get a deadlock, because luw 1 is waiting for luw2 and vice versa
luw1 luw2
select select
update update

update1 -> wait update2
update2 -> wait update1
this is detected by system and latest luw is forced
such cases should be handled :
- in different luw
- doing select .. for update (and getting ulock instead of slock) preventing select 2 to come in
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On