Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2007

Tip: Looking for answers? Try searching our database.

Details on DB2_SKIPDELETED

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
misterutterbag@yahoo.com - 18 Jan 2007 13:12 GMT
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.c
mgmtreadmefp.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
Mark A - 18 Jan 2007 19:24 GMT
> Hi.
>
[quoted text clipped - 21 lines]
>
> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.