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 > log required for restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-05, 09:59
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
log required for restore

Is there any way to find out from backup image taken by online backup that which log files will be required while restoring it some other place.

Let me briefly explain:

We need to transfer backup to some other server.Since we have to take online back up , which needs some log files while restoring to other server so we comes to know about required file while restoring and rolling forward.
If We know while transfering backup and logs it can be known at that time so we can plan ahead instead of moving it while prompted by rollforward operation.

TIA.
Reply With Quote
  #2 (permalink)  
Old 02-11-05, 10:09
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
If TIVOLI is used try 'db2adutl query full db DBNAME' ; if backing up to disk, try 'db2ckbkup -l filename'; db2ckbkup -h etc are very useful in restoring.
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 02-11-05, 10:37
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
use

db2 list history backup all for database <database_name>

check the earliest log and current log.

The current log is your ending log.

regards

Mujeeb
Reply With Quote
  #4 (permalink)  
Old 02-12-05, 10:55
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
If you happen to be on 8.2, you can include the logs with the backup image ...

Have a look at the BACKUP DATABASE command ...

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

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