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 > How to take delta/only difference data from a backup till now

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-12, 04:03
freaksterharry freaksterharry is offline
Registered User
 
Join Date: Aug 2012
Posts: 7
How to take delta/only difference data from a backup till now

Hi,

We are planning to move DB to another box with latest release of IBM WCS.We have restored the DB a week before and we are updating IBM WCS and DB2(Updation will result in new table addition). So while setting up, some data in tables is changed(as it is a live system and customer are accessing it.) System is supposed to be live next week. So is there any ways where we can take the delta backup(only changed/updated/added/deleted/removed) data from the last week DB backup data and restore it?

We cannot restore the whole DB as it will delete the new table and data created during the update activity.

Please help.
Reply With Quote
  #2 (permalink)  
Old 08-02-12, 04:40
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,749
if you have incremental/delta backup on source you can restore these on target
if you have left target in rollforward mode pending - you could copy all log files from source since backup to target and rollforward..
__________________
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, 04:55
freaksterharry freaksterharry is offline
Registered User
 
Join Date: Aug 2012
Posts: 7
Hi przytula_guy,

I am not having Backup in incremental or Delta mode. We are taking only full online backup everyday at 12PM.

Also could not get your second way. Plz explain in detail.

Any other way to get the delta data from two backups taken at different time.
Reply With Quote
  #4 (permalink)  
Old 08-02-12, 05:04
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,749
if the source db was enabled for archive logging (yes, because you take online backup)
at restore time (full) the target db will be in rollforward mode pending = waiting for rollforward command
if you ship all log files from src db since full backup start to target db, you could execute rollforward to this target pointing to these shipped logfiles, and all modif since full backup will be applied only..
__________________
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
  #5 (permalink)  
Old 08-02-12, 05:55
freaksterharry freaksterharry is offline
Registered User
 
Join Date: Aug 2012
Posts: 7
Hi Przytula,

To be more specific, we have rollforwarded the db after restoring the DB and then we have applied some fix packs in application. These fix packs would have created/updated more tables.
Now we cannot restore full data backup and we have not enbaled it for incremental/Delta backup.

We are using following command to restore and rollforward:

RESTORE DB MALL FROM D:\Shared\db\db LOGTARGET C:\DB2\NODE0000\SQL00001\SQLOGDIR REPLACE HISTORY FILE WITHOUT PROMPTING



ROLLFORWARD DB PMALL USER db2admin USING <pwd> to end of logs

ROLLFORWARD DB PMALL USER db2admin USING <pwd> QUERY STATUS

ROLLFORWARD DB PMALL USER db2admin USING <pwd> COMPLETE

ROLLFORWARD DB PMALL USER db2admin USING <pwd> QUERY STATUS
Reply With Quote
  #6 (permalink)  
Old 08-02-12, 07:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 5,031
Quote:
Originally Posted by freaksterharry View Post
So is there any ways where we can take the delta backup(only changed/updated/added/deleted/removed) data from the last week DB backup data and restore it?
Not the backup. This has to be done at the application level. I'd consider DB2 replication, Infosphere CDC, or something similar.
__________________
---
"It does not work" is not a valid problem statement.
Reply With Quote
  #7 (permalink)  
Old 08-02-12, 08:52
freaksterharry freaksterharry is offline
Registered User
 
Join Date: Aug 2012
Posts: 7
Hi n_i,

I did not get you.
Reply With Quote
  #8 (permalink)  
Old 08-02-12, 09:05
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,749
he means this can NOT be done with the backup file
you need an additional product as indicated or an application to maintain this delta update
__________________
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
  #9 (permalink)  
Old 08-02-12, 09:44
freaksterharry freaksterharry is offline
Registered User
 
Join Date: Aug 2012
Posts: 7
Thanks przytula
Reply With Quote
Reply

Tags
delta db2 backup, update db2 backup

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