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 > Restore from compressed backup in v8 fix 5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-04, 10:58
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Restore from compressed backup in v8 fix 5

Hi All,
I am working with db2 v8 fixpac 5 aix 5.2,
could you [please somebody tell me the syntax of restorig from compressed backup, I tryied with COMPRESS LIBRARY from restore command it does not work,
your help realy appriciated.
Reply With Quote
  #2 (permalink)  
Old 09-29-04, 15:10
Santosh Kumar Santosh Kumar is offline
Registered User
 
Join Date: Sep 2004
Posts: 6
you can uncompress and restore.
To uncompress, use command --
uncompress <file_name>
Reply With Quote
  #3 (permalink)  
Old 09-29-04, 15:16
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by Santosh Kumar
you can uncompress and restore.
To uncompress, use command --
uncompress <file_name>
Kumar, in db2 v8 we can restore compressed backup image without using Uncompress command and I am looking for that command.

Thanks
Reply With Quote
  #4 (permalink)  
Old 09-29-04, 15:43
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
If I remember right, db2 system knows about the library to use when you compress on backup; you should be able to restore using the regular command(NO uncompress); when db2 tries to restore, it should know if backup was compressed and if so, it should use the same library to uncompress.
__________________
mota
Reply With Quote
  #5 (permalink)  
Old 09-29-04, 15:56
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by dbamota
If I remember right, db2 system knows about the library to use when you compress on backup; you should be able to restore using the regular command(NO uncompress); when db2 tries to restore, it should know if backup was compressed and if so, it should use the same library to uncompress.


Could you please more detail or an example.
Thanks
Reply With Quote
  #6 (permalink)  
Old 09-29-04, 17:13
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
db2 "BACKUP DATABASE sample to '/backup' compress "
db2 "BACKUP DATABASE sample to '/backup' "
ls -ltr /backup
12603392 Sep 29 15:55 SAMPLE.0.db2inst1.NODE000.CATN0000.20040929155503. 001

29380608 Sep 29 15:56 SAMPLE.0.db2inst1.NODE0000.CATN0000.20040929155612 .001

as you can see in the size compressed is about 40% of non compressed; filenames are similar; you can use the usual
db2 "restore db sample from '/backup' "
look in command reference for details
__________________
mota
Reply With Quote
  #7 (permalink)  
Old 10-03-04, 20:21
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by dbamota
db2 "BACKUP DATABASE sample to '/backup' compress "
db2 "BACKUP DATABASE sample to '/backup' "
ls -ltr /backup
12603392 Sep 29 15:55 SAMPLE.0.db2inst1.NODE000.CATN0000.20040929155503. 001

29380608 Sep 29 15:56 SAMPLE.0.db2inst1.NODE0000.CATN0000.20040929155612 .001

as you can see in the size compressed is about 40% of non compressed; filenames are similar; you can use the usual
db2 "restore db sample from '/backup' "
look in command reference for details
Thank you so much mota for your help.
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