Unix Technical Forum

Details on DB2_SKIPDELETED

This is a discussion on Details on DB2_SKIPDELETED within the DB2 forums, part of the Database Server Software category; --> Hi. We have deadlocks involving DELETEs, and I was hoping that DB2_SKIPDELETED might be able to help in the ...


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, 12:30 PM
misterutterbag@yahoo.com
 
Posts: n/a
Default Details on DB2_SKIPDELETED

Hi.

We have deadlocks involving DELETEs, and I was hoping that
DB2_SKIPDELETED might be able to help in the short term.

I was looking at the following link:

"http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/index.jsp?topic=/com.ibm.cmgmtreadmefp.doc/d104742.htm"

It states that:

db2set DB2_EVALUNCOMMITTED=ON
db2set DB2_SKIPINSERTED=ON
db2set DB2_SKIPDELETED=ON

(specifically DB2_SKIPDELETED) are variables which can protect from
locking in some cases.

Is this intended to protect a SELECT from deadlocking against a DELETE?

And do you know which versions of DB2 have these variables available?

Any help would be much appreciated.

Joel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 12:30 PM
Mark A
 
Posts: n/a
Default Re: Details on DB2_SKIPDELETED

<misterutterbag@yahoo.com> wrote in message
news:1169125922.869409.188010@v45g2000cwv.googlegr oups.com...
> Hi.
>
> We have deadlocks involving DELETEs, and I was hoping that
> DB2_SKIPDELETED might be able to help in the short term.
>
> I was looking at the following link:
>
> "http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/index.jsp?topic=/com.ibm.cmgmtreadmefp.doc/d104742.htm"
>
> It states that:
>
> db2set DB2_EVALUNCOMMITTED=ON
> db2set DB2_SKIPINSERTED=ON
> db2set DB2_SKIPDELETED=ON
>
> (specifically DB2_SKIPDELETED) are variables which can protect from
> locking in some cases.
>
> Is this intended to protect a SELECT from deadlocking against a DELETE?
>
> And do you know which versions of DB2 have these variables available?
>
> Any help would be much appreciated.
>
> Joel


It takes two different applications, each locking on two different objects
to cause a deadlock (usually from two different SQL statements).

With DB2_SKIPDELETED=ON, if a row is deleted by application program 1, then
application program 2 will assume the row does not exist (and will not
lockwait on that row) even if application 1 has not committed the delete.

I believe DB2_SKIPDELETED=ON was introduced in 8.1 FP 4.


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 04:28 PM.


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