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 > Need help - DB2 Table changes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-08, 03:52
pjugali pjugali is offline
Registered User
 
Join Date: Jul 2008
Posts: 3
Smile Need help - DB2 Table changes

Scenario: We have DB2 table which get updated on daily basis. we need to extract only data which got changed during updation.

Is there any way to find out changes to thes table. I understand there is Log that get updated evrytime the table data gets updated. Is there any DB2 utility which can be used to read this log and find/extract out changed information.
Reply With Quote
  #2 (permalink)  
Old 07-01-08, 05:31
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Depending on your DB2 version and platform, you may be able to use the last modification timestamp to find the desired rows. See the ROW CHANGE expression: http://publib.boulder.ibm.com/infoce.../r0052407.html
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 07-01-08, 17:10
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
you actually have a few choices here. You can do as Mr. Stolze suggested, but a log analysis tool and create reports based on the logs, set up triggers to capture the changes in another table, select from your update. Of course, as was mentioned some of these may depend on which version of DB2 you are using.
Dave
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