473,386 Members | 1,803 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,386 software developers and data experts.

Online backup to restore onto another system (or for disaster recovery): how to?

Hello, everybody.

I've spent a lot of time reading "DB2 Information Center" and Raul Chong's book "Understanding DB2. Learning Visually with
Examples", but still unable to answer this simple question.

I need to perform the full database backup for at least these two goals:

- to restore data onto developers' database system.
- to ensure disaster recovery

I can't perform the "OFFLINE" backup because database must be available 24x7. Also, "INCLUDE LOGS" option is not available in
database, because its version is 8.1 ( on Windows platform ).

But everybody knows, the "BACKUP ONLINE" database image is good-for-nothing by itself, it requires some logs to be restored.

Help, please. What should I do for this database image (backup online) could be restored in workable state onto another system ?
--
Konstantin Andreev.
Aug 19 '06 #1
3 2491
Perform a re-directed restore into the development database - the
database will remain in rollforward pending as it is an online backup.
You can attempt to take the database out of RF pending,
by...rollforward database DBNAME complete...you may well get an error,
as a log/or logs are required (DB2 will advise which one).
Keep in mind the rollforward query status command is also useful, to
determine which log is requried.

Konstantin Andreev wrote:
Hello, everybody.

I've spent a lot of time reading "DB2 Information Center" and Raul Chong's book "Understanding DB2. Learning Visually with
Examples", but still unable to answer this simple question.

I need to perform the full database backup for at least these two goals:

- to restore data onto developers' database system.
- to ensure disaster recovery

I can't perform the "OFFLINE" backup because database must be available 24x7. Also, "INCLUDE LOGS" option is not available in
database, because its version is 8.1 ( on Windows platform ).

But everybody knows, the "BACKUP ONLINE" database image is good-for-nothing by itself, it requires some logs to be restored.

Help, please. What should I do for this database image (backup online) could be restored in workable state onto another system ?
--
Konstantin Andreev.
Aug 20 '06 #2

Konstantin Andreev wrote:
Hello, everybody.

I've spent a lot of time reading "DB2 Information Center" and Raul Chong's book "Understanding DB2. Learning Visually with
Examples", but still unable to answer this simple question.

I need to perform the full database backup for at least these two goals:

- to restore data onto developers' database system.
- to ensure disaster recovery

I can't perform the "OFFLINE" backup because database must be available 24x7. Also, "INCLUDE LOGS" option is not available in
database, because its version is 8.1 ( on Windows platform ).

But everybody knows, the "BACKUP ONLINE" database image is good-for-nothing by itself, it requires some logs to be restored.

Help, please. What should I do for this database image (backup online) could be restored in workable state onto another system ?
--
Konstantin Andreev.
Hi,
execute in production environment:

list history backup since yyyyMMDD for DBNAME

and look first and last logs information.

Copy all logs between first and last to development environment
(database log directory), with database in rollforward pending state.
You need al least this logs (plus your backup image) to restore your
database.

Execute in development environment:

rollforward deatabase DBNAME to end of logs and stop
Mel.

Aug 21 '06 #3
If you're at V8.1 below Fix Pack for 8.2, and you are archiving your logs
somewhere, the DB2 ARCHIVE LOGS command is still available.
Do your online backup
use: db2 archive log command

One of the things it will do is "cut" the last archive log when the backup
finished.
db2 list history backup will show you this for that backup entry: first and
last log active as the backup finished.

You now know which logs to bring to the target system. In V8.2 the online
backup command does this automatically unless you tell it not to.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"graham_martin" <gr***********@uk.ibm.coma écrit dans le message de news:
11**********************@i3g2000cwc.googlegroups.c om...
Perform a re-directed restore into the development database - the
database will remain in rollforward pending as it is an online backup.
You can attempt to take the database out of RF pending,
by...rollforward database DBNAME complete...you may well get an error,
as a log/or logs are required (DB2 will advise which one).
Keep in mind the rollforward query status command is also useful, to
determine which log is requried.

Konstantin Andreev wrote:
>Hello, everybody.

I've spent a lot of time reading "DB2 Information Center" and Raul
Chong's book "Understanding DB2. Learning Visually with
Examples", but still unable to answer this simple question.

I need to perform the full database backup for at least these two goals:

- to restore data onto developers' database system.
- to ensure disaster recovery

I can't perform the "OFFLINE" backup because database must be available
24x7. Also, "INCLUDE LOGS" option is not available in
database, because its version is 8.1 ( on Windows platform ).

But everybody knows, the "BACKUP ONLINE" database image is
good-for-nothing by itself, it requires some logs to be restored.

Help, please. What should I do for this database image (backup online)
could be restored in workable state onto another system ?
--
Konstantin Andreev.
Aug 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Morrison | last post by:
MSDE2000 I have an application in which I am running a TSQL command of BACKUP DATABASE and RESTORE DATABASE for the backup and restore commands for my application. For testing purposes, i did the...
18
by: Jason Tesser | last post by:
We are evaluating Postgres and would like some input about disaster recovery. I know in MsSQL they have a feature called transactional logs that would enable a database to be put back together...
4
by: ScottH | last post by:
I am running 7.2 with fixpack 10a under W2K. I got a backup from someone else in an attempt to debug a data issue. The other person created the database with UTF-8 (codepage 1208), so I created a...
2
by: Vikrant | last post by:
Friends, I have read DB2/UDB 8.x 'RESTORE DATABASE Command', with my 'limited' knowledge & skill. I think it should address my concern, but I want advice/ opinion / experience and any care I...
4
by: manwiththeaxe.70 | last post by:
I have recently begun to migrate our DB2 UDB v7.2 enterprise databases up to DB2 UDB v8.2. One question I can't seem to understand is why would I want to run an offline backup for a database now...
5
by: Gladiator | last post by:
Hai..... I have a database............ i took an online backup for tht..... After tht mistakenly i dropped the database.......... now i dont have the logs also....... now after i restore the...
10
by: Konstantin Andreev | last post by:
Hello. Some time ago I asked in this conference, - How to use an ONLINE BACKUP to restore database onto another system? - but got no answers. Therefore I can conclude it is not possible. But......
6
by: javelin | last post by:
I'm having difficulty searching for an answer to this challenge. Can someone give me a clue on the right keywords to use to find a discussion on this subject? All of the ones I saw appear to touch...
4
by: aj | last post by:
DB2 LUW v8.2 FP 14 RHAS 2.1 I have a DB2 online DB backup that was done w/ the INCLUDE LOGS option. I am interested in restoring that backup, and rolling forward ONLY the logs contained in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.