Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / July 2006

Tip: Looking for answers? Try searching our database.

clean up old log files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adrian.alek@gmail.com - 05 Jul 2006 17:03 GMT
I have a question about DB2 ver 7.2

We are run out space and Network guys like to delete the old log files
of db2
Last week we had a problem in developer because they deleted the old
log files and DB2 was try to used it

My question is what is the best way for clean up old log files

thanks in advance


Adrian
Jeroen van den Broek - 05 Jul 2006 18:11 GMT
> I have a question about DB2 ver 7.2
>
[quoted text clipped - 6 lines]
>
>  thanks in advance

Assuming this is DB2 for LUW:

1. First find out what is the oldest log that is still active:
  a. db2 connect to <your db-id>
  b. db2 get db cfg for <your db-id>
  Search for 'First active log file'.
  This should give you something similar to S0000100.LOG
2. Issue the 'Prune' command as follows:
   db2 prune logfile prior to <output from step 1>

Note: you should also consider off-loading inactive logs to tape or
some other secondary media.

HTH.
Signature

Jeroen

adrian.alek@gmail.com - 05 Jul 2006 19:50 GMT
Thank you

I will try !

> > I have a question about DB2 ver 7.2
> >
[quoted text clipped - 21 lines]
>
> HTH.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.