Unix Technical Forum

Lock Mode Question

This is a discussion on Lock Mode Question within the DB2 forums, part of the Database Server Software category; --> I am trying to decipher deadlock events in a event monitor. I am trying to determine what type of ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 03:13 AM
Mike
 
Posts: n/a
Default Lock Mode Question

I am trying to decipher deadlock events in a event monitor. I am
trying to determine what type of lock was held. If I look at the data
elements it shows LOCK MODE 5
LOCK MODE REQUESTED 3

I can not seem to find any docs which shows what type of lock a LOCK
MODE of 5 or any other number is. Can anyone please point me in the
right direction?
Specs:
Win2k3
Db2 ver 8.2

Something has changed with locking in Db2 8.2 but I can not seem to
figure out what it is. I have read all of the new docs on locking and
have tried all suggestions and just can not put my finger on it.
Programs are not reacting to deadlocks the way they used to. I know it
is hard to explain what it is but I basically have 2 apps that are
deadlocking each other I just can't seem to figure out why. Which
itself is ok, but it is almost like the apps are not always seeing the
-911 codes being returned. Was there a new code added or some other
code I may be getting that would result in a deadlock? Any info would
be much appreciated!!

Thanks,
Mike
Thanks,
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 03:13 AM
dotyet
 
Posts: n/a
Default Re: Lock Mode Question

Correct me here if need be, but I thought that lock modes were in
ALPHABETS rather than digits. Example X for and Exclusive Lock, IX for
Intent Exclusive and S for Share. I have being seeing this in UDB 6.1
till 8.1, has it changed in UDB 8.2?

thanks,
dotyet

mike.mcneer@thomson.net (Mike) wrote in message news:<a3ab20a1.0411090848.458cae43@posting.google. com>...
> I am trying to decipher deadlock events in a event monitor. I am
> trying to determine what type of lock was held. If I look at the data
> elements it shows LOCK MODE 5
> LOCK MODE REQUESTED 3
>
> I can not seem to find any docs which shows what type of lock a LOCK
> MODE of 5 or any other number is. Can anyone please point me in the
> right direction?
> Specs:
> Win2k3
> Db2 ver 8.2
>
> Something has changed with locking in Db2 8.2 but I can not seem to
> figure out what it is. I have read all of the new docs on locking and
> have tried all suggestions and just can not put my finger on it.
> Programs are not reacting to deadlocks the way they used to. I know it
> is hard to explain what it is but I basically have 2 apps that are
> deadlocking each other I just can't seem to figure out why. Which
> itself is ok, but it is almost like the apps are not always seeing the
> -911 codes being returned. Was there a new code added or some other
> code I may be getting that would result in a deadlock? Any info would
> be much appreciated!!
>
> Thanks,
> Mike
> Thanks,
> Mike

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 03:13 AM
Mike
 
Posts: n/a
Default Re: Lock Mode Question

If you are doing a get snapshot for locks on database you will get the
info in Alpha form. I am looking at the data element information from
event analyzer it is a Integar. Can you compare this?











dotyet@yahoo.com (dotyet) wrote in message news:<6c6dc4d2.0411091537.5eb43b8@posting.google.c om>...
> Correct me here if need be, but I thought that lock modes were in
> ALPHABETS rather than digits. Example X for and Exclusive Lock, IX for
> Intent Exclusive and S for Share. I have being seeing this in UDB 6.1
> till 8.1, has it changed in UDB 8.2?
>
> thanks,
> dotyet
>
> mike.mcneer@thomson.net (Mike) wrote in message news:<a3ab20a1.0411090848.458cae43@posting.google. com>...
> > I am trying to decipher deadlock events in a event monitor. I am
> > trying to determine what type of lock was held. If I look at the data
> > elements it shows LOCK MODE 5
> > LOCK MODE REQUESTED 3
> >
> > I can not seem to find any docs which shows what type of lock a LOCK
> > MODE of 5 or any other number is. Can anyone please point me in the
> > right direction?
> > Specs:
> > Win2k3
> > Db2 ver 8.2
> >
> > Something has changed with locking in Db2 8.2 but I can not seem to
> > figure out what it is. I have read all of the new docs on locking and
> > have tried all suggestions and just can not put my finger on it.
> > Programs are not reacting to deadlocks the way they used to. I know it
> > is hard to explain what it is but I basically have 2 apps that are
> > deadlocking each other I just can't seem to figure out why. Which
> > itself is ok, but it is almost like the apps are not always seeing the
> > -911 codes being returned. Was there a new code added or some other
> > code I may be getting that would result in a deadlock? Any info would
> > be much appreciated!!
> >
> > Thanks,
> > Mike
> > Thanks,
> > Mike

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:50 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com