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 > Oracle V DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-08, 15:07
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
Oracle V DB2

Can someone confirm DB2 does not act like Oracle in the case below with the settings below?


2. If DB2 behaves like Oracle, then the committed transaction is placed on a queue to be updated and that did not occur before the next query.


[i] DB2_SKIPINSERTED=ON
[i] DB2_SKIPDELETED=ON

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-29-08, 16:10
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by redwolf
Can someone confirm DB2 does not act like Oracle in the case below with the settings below?


2. If DB2 behaves like Oracle, then the committed transaction is placed on a queue to be updated and that did not occur before the next query.


[i] DB2_SKIPINSERTED=ON
[i] DB2_SKIPDELETED=ON

Thanks
No, it does not.

This affects the rows that have been inserted or deleted but not committed yet. These rows are locked, and normally a query with a sufficient isolation level would block when hit one of such rows. The two registry variables change that behaviour so that the query skips uncommitted rows.

When the transaction commits all its locks are released.
Reply With Quote
  #3 (permalink)  
Old 09-30-08, 01:22
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
As already noted, the two environment settings do not make DB2 work the same as Oracle with regard to locking. However, the parameters do have the benefit of increasing concurrency and reducing DB2 lock contention, so it shares some advantages with Oracle in that regard. An even though these parameters do not make DB2 the same as Oracle, they increase concurrency a lot more efficiently than the Oracle optimistic locking and read consistency scheme.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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