473,320 Members | 2,107 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,320 software developers and data experts.

DB2 Point in Time Recovery

I want to take an Online backup of DB on one system and restore on other. While doing this I want to ensure I get only the data/structure that was committed till the time backup kicked off. Any data inserted (and may be even committed) after backup kicked off should not come. This has to be a (an automated) daily End of Day process in our production environment. Hence I can not know point in time for writing an automated restore process.
I did a POC with
1) Start Backup of DATA1 (Online and Including Logs)
2) Made a dummy (committed) transaction to DATA1
3) Restored DATA1 to another DB DATA2, with log target to log destination of DATA2
4) Roll-forwarded DATA2 to END OF LOGS with NORETRIEVE. I made sure the archived log files for DATA1 do not exist, when I roll-forward

Still the effect of committed transaction of DATA1 in step2 is present in DATA2.
Has any one done anything like this earlier? Is it possible at all?
Sorry if my question seems Out of the box/too naive.

I am using DB2 LUW UDB 9.7 Fixpack 1. My POC was on WINDOWS XP Desktop but the full fledged solution will be platform independent.
Oct 18 '10 #1
1 3274
vijay2082
112 100+
Hi Sameer,

Your POC is right on the dot, But the concept behind POC is wrong. I will suggest you to refer inforamtion centre regarding the Backup concept for the database. I will give you an overview of what happens during the backup.

1) Once you start a backup during time A, it will start backing up all the data accordign to estimated time period and available resources for the backup.

2) At the start time backup will note the active log file and will try to include all teh log files till the end of backup so that once database is restored it's consistent.

3) Once database backup completes at time C backup will try to include all the log files till time C to make the backup image recoverable to PIT of the backup timestamp.

Suggest you to look at the database restore from the timestamp recorded in the backup image. All the transactions till that time will be present in the restored backup.

Cheers, Vijay
Oct 18 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rajesh Garg | last post by:
I have a scenario like this....... update esan set tes_address_city = 'TEST1' --at some time update esan set tes_address_city = 'TEST12' --at some time update esan set tes_address_city =...
1
by: David McGeorge | last post by:
Coming more from Oracle background, I want to do a point in time recovery test on SQl Server. Let's say database PUBS backed up every night and Trans log backup 3 time every 6 hours between 6 a.m....
1
by: AP | last post by:
Could someone please give me an idea of the differences between SQL Server and Oracle, backup and recovery options. Thanks
1
by: Philippe Lang | last post by:
Hello, Sorry if this post was sent twice. Is it possible to restore a database previously backed-up with "dump", and then recover some of the changes made after the backup, until a specific...
8
by: Neil Truby | last post by:
There's something clearly missing in my understanding of recovery: I set up a small sample datavase and deleted all the rows from a table. Crucially, I omitted the "commit". I then shut down...
0
by: Lew | last post by:
Hi, If I want to recover my database to just before a certain transaction occurred how do I do it? How do I determine the exact timestamp to rollforward to. I remember years ago when I worked...
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
1
by: postgresql | last post by:
Hello, 1) I know that PostgreSQL writes its transactions to logs (WAL). If I take exports once a day (say 7am) and I have a client that somehow ruins their database at 5pm today and it is now...
0
by: rdudejr | last post by:
According to an article here: http://64.21.60.9/ups_042002.cfm FDR/Upstream supports full backup and point in time recovery strategy. Has anyone used this before? I understand that it is...
31
by: Ioannis Vranos | last post by:
Regarding C95: Is srand(time(NULL)); an effective solution for seeding rand(), or is there any better approach?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.