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 > get the list of db2 tables which have been changed since a particular timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-12, 09:21
freaksterharry freaksterharry is offline
Registered User
 
Join Date: Aug 2012
Posts: 7
get the list of db2 tables which have been changed since a particular timestamp

Is there any way in IBM DB2 to get the list of tables which have been changed(updated/added/deleted) since a specific timestamp?

The problem i am facing is i have restored one backup on 25 July in one box from live db server and updated this restored DB while enabling features packs. Now the live DB server has changed since customer is accessing it and i cannot restore the latest backup as box1 have some addition tables/data.

So i wanted to know the list of tables which have been changed since last backup so that i can update those tables manually. Please help.
Reply With Quote
  #2 (permalink)  
Old 08-02-12, 09:26
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,755
if using v10 - maybe LASTUSED in syscat.tables can be used..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7-V10 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-02-12, 09:35
freaksterharry freaksterharry is offline
Registered User
 
Join Date: Aug 2012
Posts: 7
Thanks Przytula
Reply With Quote
  #4 (permalink)  
Old 08-02-12, 09:35
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 5,054
Quote:
Originally Posted by przytula_guy View Post
if using v10 - maybe LASTUSED in syscat.tables can be used..
1) this information is not 100% reliable
2) LASTUSED is also updated on SELECTs, so you'll probably end up with the complete list of your application tables
__________________
---
"It does not work" is not a valid problem statement.
Reply With Quote
Reply

Tags
db restore, ibm db2

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