db2diag.log file delete on Linux and DB2

Comments

db2diag.log file delete on Linux and DB2

I’ve been running this code via a cron job on Linux, which handles removing db2diag files , up to 3 days old.

db2diag -A

find <db2_instance_home>/db2dump -mtime +3 -exec rm -f {} ;

On some servers there is a requirement to archive the db2diag file , which I add a “cp” command prior to the above

 Ref:Jack Vamvas(

Leave a Reply

Discover more from ciquery

Subscribe now to keep reading and get access to the full archive.

Continue reading