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 clean these files??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-04, 07:16
shedb shedb is offline
Registered User
 
Join Date: Dec 2003
Posts: 78
Question can i clean these files??

hello,
our aix db2 server is having full disk space problems.
I have recognised that the below files are so large in size
Can i clean them with simply doing "rm"? Will the database and instance work properly without them?
ıf simply removing the files won't work, how can i clean it??
tnks all


-rw------- 1 db2dvlp2 db2iadm1 16785408 25 Feb 15:05 /home/db2inst1/NODE0000/SQL00010/SQLOGDIR/S0000000.LOG

-rw------- 1 db2dvlp2 db2iadm1 16785408 25 Feb 15:05 /home/db2inst1/NODE0000/SQL00010/SQLOGDIR/S0000001.LOG

-rw------- 1 db2dvlp2 db2iadm1 16785408 25 Feb 15:05 /home/db2inst1/NODE0000/SQL00010/SQLOGDIR/S0000002.LOG

-rw------- 1 db2dvlp2 db2iadm1 16785408 25 Feb 15:05 /home/db2inst1/NODE0000/SQL00010/SQLOGDIR/S0000003.LOG
Reply With Quote
  #2 (permalink)  
Old 05-03-04, 07:42
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
These are database log files ... Please do not remove them ...
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 05-03-04, 08:25
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by sathyaram_s
These are database log files ... Please do not remove them ...
I wish they hadn't used the extention .LOG - it's very confusing for sysadmins not familiar with databases, they assume it's just a traditional informational log file. I've seen more than one occasion where the database was failing to start, then you look in the transaction log directory and see:
S0000001.LOG.gz

Argh! :P

S0000001.DO.NOT.TOUCH would be preferable.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #4 (permalink)  
Old 05-04-04, 10:08
shedb shedb is offline
Registered User
 
Join Date: Dec 2003
Posts: 78

you're right
so what cleans up transaction log file in db2?? will an offline backup of the database clean the log files, as it works for sybase and sqlserver??
Reply With Quote
  #5 (permalink)  
Old 05-04-04, 10:19
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
AFAIK, the offline backup will not delete these log files ... They will be on the disk ... When you restart the db, these files will be formatted ...

You may delete these files after an offline backup ...

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 05-04-04, 22:57
famudba famudba is offline
Registered User
 
Join Date: Jan 2004
Location: Tallahassee, FL, USA
Posts: 96
stop instance , rm all *.LOG files from NEWLOGPATH , re-start the instance

That is OK, if it is development instance


Lekharaju Ennam
Reply With Quote
  #7 (permalink)  
Old 05-05-04, 08:13
shedb shedb is offline
Registered User
 
Join Date: Dec 2003
Posts: 78
thanks guys
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