Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old August 19th, 2006, 07:35 PM
Konstantin Andreev
Guest
 
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.


  #2  
Old August 20th, 2006, 11:35 AM
graham_martin
Guest
 
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:
Quote:
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.
  #3  
Old August 21st, 2006, 02:45 PM
mel_apiso@hotmail.com
Guest
 
Posts: n/a
Default Re: Online backup to restore onto another system (or for disaster recovery): how to?


Konstantin Andreev wrote:
Quote:
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.

  #4  
Old August 21st, 2006, 05:35 PM
Pierre Saint-Jacques
Guest
 
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.coma écrit dans le message de news:
1156070866.282846.265080@i3g2000cwc.googlegroups.c om...
Quote:
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:
Quote:
>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.
>
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.