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 > db2 archive

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-12-08, 01:37
manikandank_1984 manikandank_1984 is offline
Registered User
 
Join Date: Oct 2008
Posts: 65
db2 archive

Dear all,

In db2,db2/IRP/db2dump file system was full.I want to archive the db2dump.

what is the command in db2 for archiving.give a example

Please is urgent


Regards,
K.Manikandan
Reply With Quote
  #2 (permalink)  
Old 11-12-08, 02:34
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
tar this directory and gzip it and move the file to a different filesystem
cleanup the db2dump directory
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 11-12-08, 03:05
manikandank_1984 manikandank_1984 is offline
Registered User
 
Join Date: Oct 2008
Posts: 65
Hi,

Can you give me one example

Regards,
K.manikandan
Reply With Quote
  #4 (permalink)  
Old 11-12-08, 03:28
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Manikandan,
You will get some very goog example of Tar and Gzip in "about.linux.com".

Its nothing but you are compressing your previous archive logs and then you are Zipping the same (which reduces the size by 40-60%). And moving to another directory.

Regards,
Jayanta
New Delhi, India
Reply With Quote
  #5 (permalink)  
Old 11-13-08, 09:15
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The only thing you have to know is that DB2 will automatically re-create the contents of the db2dump/ directory when needed. So the "cleanup" is actually to remove all files in that directory. If you still need them for whatever purpose, you should create a backup. How exactly you do that doesn't matter, and using tar and gzip are just basic standard tools in Unix environments that can help you there.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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