473,396 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DB2 UDB (Propagatable) Log records: Undo/Redo/Compensation/Normal: Explanation, subtypes, events

The (limited to propagatable since version 9) log records are described
in the API reference manual.

What is meant by: normal/undo/redo/compensation records, what are the
possible subtypes for each of these record, what events trigger there
creation and when are they propagatable?

Remark: I believe this should be part of the documentation.
Bernard Dhooghe

Jan 25 '07 #1
2 2990
Bernard Dhooghe wrote:
The (limited to propagatable since version 9) log records are described
in the API reference manual.

What is meant by: normal/undo/redo/compensation records, what are the
possible subtypes for each of these record, what events trigger there
creation and when are they propagatable?
I can't answer all the questions, but here are a few pointers:

When you run an INSERT statement, data is written to data pages, indexes are
updated etc. This is written as _normal_ log record. The log records
include the data that is inserted. In case of a DELETE, the before image
is written.

Now let's do a ROLLBACK. DB2 has to undo the previous INSERT/DELETE. To
that end, DB2 goes through the log records of the transaction being rolled
back, figures out what had been done and compensates the changes. I'm not
exactly sure what counts as _undo_ and what as _compensation_ log record,
though.
Remark: I believe this should be part of the documentation.
Have you used the Feedback button in the online reference already?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 25 '07 #2
I've (just) send the posting to db*****@ca.ibm.com.

Bernard Dhooghe

On Jan 25, 10:32 pm, Knut Stolze <sto...@de.ibm.comwrote:
Bernard Dhooghe wrote:
The (limited to propagatable since version 9) log records are described
in the API reference manual.
What is meant by: normal/undo/redo/compensation records, what are the
possible subtypes for each of these record, what events trigger there
creation and when are they propagatable?I can't answer all the questions, but here are a few pointers:

When you run an INSERT statement, data is written to data pages, indexes are
updated etc. This is written as _normal_ log record. The log records
include the data that is inserted. In case of a DELETE, the before image
is written.

Now let's do a ROLLBACK. DB2 has to undo the previous INSERT/DELETE. To
that end, DB2 goes through the log records of the transaction being rolled
back, figures out what had been done and compensates the changes. I'm not
exactly sure what counts as _undo_ and what as _compensation_ log record,
though.
Remark: I believe this should be part of the documentation.Have you used the Feedback button in the online reference already?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jay | last post by:
I need to implement an undo and redo for an entire row in a listview containing approximately 10 columns. I'm not sure of the best way to implement this. The only thing that I've thought of is a...
5
by: Mickel Grönroos | last post by:
Hello everybody I'm developing a tool in Tkinter and would like to add Undo and Redo commands to my Edit menu. Does somebody know if anybody has implemented standard Undo/Redo as a Python...
6
by: lkrubner | last post by:
I'm offering users the ability to type weblog posts into a form and post them. They type the text into a TEXTAREA which is on a form. The form, when submitted, hits a PHP script. Before it is...
2
by: Nathan Bloom | last post by:
Hi, I understand that when a record is deleted it is still in the database but just flagged as deleted. Is there anyway to recover these deleted records? I am using Access 2000. Any help in...
3
by: babylon | last post by:
any facilities in csharp that can help me implmenting undo/redo in my application? thx
3
by: Teis Draiby | last post by:
I'm looking for some information (books, articles, tutorials) on how to implement a multiple undo/redo framework. I'm a beginner in this so I prefer information specifically targeting C# with code...
2
by: Christian H | last post by:
Hello, I've tried to find information about how to implement an Undo/Redo pattern. This article describes such a pattern: http://www.codeproject.com/csharp/PcObjectUndo.asp , but is a little bit...
1
by: anupam roy | last post by:
Hi All, I want to perform basic Edit menu functionalities on my custom design surface. While all the Cut/Copy/Paste/Deelete/Select functionalities working fine with code below,Undo/Redo standard...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.