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 > Undo mechanism

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-21-04, 12:19
krz krz is offline
Registered User
 
Join Date: Nov 2004
Posts: 25
Undo mechanism

Hello all,

I know that Oracle uses undo table spaces or rollback segments as its undo mechanism. what does DB2 use as its undo mechanism?

Krz
Reply With Quote
  #2 (permalink)  
Old 11-22-04, 01:18
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
undo

in db2 there is a mechanism of pages in the buffer and the log file - this is the only area needed.
Best Regards, Guy Przytula
Reply With Quote
  #3 (permalink)  
Old 11-22-04, 11:18
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Oracle uses undo table spaces or rollback segments not just as its rollback mechanism, but also to provide support for different isolation levels; If you have a transaction, with isolation level RR, if you read a table with 5000 records, even if you choose 2 records, you lock 5000 records and may be it will be escalated to a table lock, in DB2. Oracle will use undo. For a simple rollback, log files will suffice, because each record has before and after a change INFO.
__________________
mota
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