Unix Technical Forum

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

This is a discussion on Online backup to restore onto another system (or for disaster recovery): how to? within the DB2 forums, part of the Database Server Software category; --> Hello, everybody. I've spent a lot of time reading "DB2 Information Center" and Raul Chong's book "Understanding DB2. Learning ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:56 AM
Konstantin Andreev
 
Posts: n/a
Default 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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:56 AM
graham_martin
 
Posts: n/a
Default Re: Online backup to restore onto another system (or for disaster recovery): how to?

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:57 AM
mel_apiso@hotmail.com
 
Posts: n/a
Default Re: Online backup to restore onto another system (or for disaster recovery): how to?


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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:57 AM
Pierre Saint-Jacques
 
Posts: n/a
Default Re: Online backup to restore onto another system (or for disaster recovery): how to?

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" <graham_martin@uk.ibm.com> a écrit dans le message de news:
1156070866.282846.265080@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.

>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com