dbTalk Databases Forums  

Re: Transaction history

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Re: Transaction history in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark A
 
Posts: n/a

Default Re: Transaction history - 08-29-2003 , 04:13 PM






"George McLean" <gmclean (AT) rrsytec (DOT) com> wrote

Quote:
Is there any way in v7.2 DB2 to get a history of transactions to see when
a
record was changed?

Is it possible to roll the database back to point in time based on a
history
file or transaction log?

Thanks

George

You can restore a database object (or entire database) to the last backup
before the point in time the update occurred, and then roll the logs forward
from the backup to just before the point in time when the update occurred.
To do this, it is necessary to previously have log retain enabled.

Figuring out the point in time to recover to is a bit more problematic. In
theory there is a entry in the log for every update, but it may not be
possible to figure out how to read the log to identify the transaction point
in time you need. The data in the log is designed to be used by DB2 internal
processes and not users or administrators. But if there is only one update
for the entire object (table) in question during a known timeframe, you
might be able to find it. Finding when a specific row was changed is more
difficult. Check out manuals for more information about reading the log
data.




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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.