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 > How to know if backup image is off-line or on-line with logs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-08, 02:06
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
How to know if backup image is off-line or on-line with logs

Hi,
on DB2 V9.5 fp2 on Linux I have created two backups. First was off-line backup and the second is on-line backup with logs included.

Looking into file names there is no different:
-rw------- 1 db2inst1 db2iadm1 72404992 2008-12-09 08:56 MYDB.0.db2inst1.NODE0000.CATN0000.20081209085628.0 01
-rw------- 1 db2inst1 db2iadm1 69808128 2008-12-09 08:58 MYDB.0.db2inst1.NODE0000.CATN0000.20081209085822.0 01

How can I now determinate which backup is off-line image and which one is on-line with logs included? I know there is some kind of command to look into backup image, but can't find out which command is it.

Regards,
Grofaty
Reply With Quote
  #2 (permalink)  
Old 12-09-08, 03:06
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
db2ckbkp command returns you the metadata stored for every backup image.
__________________

Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi
Reply With Quote
  #3 (permalink)  
Old 12-09-08, 05:23
tubdba tubdba is offline
Registered User
 
Join Date: Aug 2004
Posts: 18
you can also retrieve information from the history file, eg. list history backup since 20081209 for mydb
Reply With Quote
  #4 (permalink)  
Old 12-09-08, 09:09
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
@JAYANTA_DATTA, thanks a lot.

The syntax on Linux/Unix is:
Code:
db2ckbkp -H ime_db2_backup_datoteke | grep "Includes Logs"
Regards
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