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 > Can I delete or remove archive log files before backup database?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-11, 23:49
ponk.nr ponk.nr is offline
Registered User
 
Join Date: Dec 2011
Posts: 2
Question Can I delete or remove archive log files before backup database?

Can I delete or remove archive log files before backup database? (Archive logs sink with database files?)

- How I can check completed backup files or not? (Have a method for checking?)




Thank you very much
Reply With Quote
  #2 (permalink)  
Old 12-16-11, 00:10
wolaos123 wolaos123 is offline
Registered User
 
Join Date: Nov 2011
Location: Shen Zhen,China
Posts: 37
if using db2 v9.1 or higher,db2 archive log file are stored at:

# db2 get db cfg for sample|grep LOGARCHMETH1
First log archive method (LOGARCHMETH1) = OFF
#

db2 list utilities show detail

or

db2top

show u if a backup is in progress.
Reply With Quote
  #3 (permalink)  
Old 12-16-11, 02:02
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
wait with removing logfiles till the backup has finished. if any file still needed, it will be included in backup file. after this you can cleanup - if not needed for recovery anymore
eg. last backupfile corrupted - need to restore backupfile -1 and all logfiles in between..
that you have to decide.. how many backupfiles do we keep and all logfiles in between
__________________
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
  #4 (permalink)  
Old 12-16-11, 02:07
ponk.nr ponk.nr is offline
Registered User
 
Join Date: Dec 2011
Posts: 2
Quote:
Originally Posted by wolaos123 View Post
if using db2 v9.1 or higher,db2 archive log file are stored at:

# db2 get db cfg for sample|grep LOGARCHMETH1
First log archive method (LOGARCHMETH1) = OFF
#

db2 list utilities show detail

or

db2top

show u if a backup is in progress.


thank you for your info,
But If I will delete or move path archivelog files and db2diag.log, Its effect to backup process or backup files will completely?

Reply With Quote
  #5 (permalink)  
Old 12-16-11, 02:13
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
never do such an operation while backup is running - wait for it to terminate and then decide what to move where
__________________
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
  #6 (permalink)  
Old 12-16-11, 03:26
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by ponk.nr View Post
Can I delete or remove archive log files
Please specify what you want to do. I fear that you want to remove those DB2-objects with non-db2 utilities on the file-system like "del" or "rm"... so DB2 looses track.

If you want to get rid of those files, always use the db2 "prune" command. If an object is still needed by db2, prune will refuse to delete it.... I would not have it any other way.
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