DB2 Diag

Will there be any issue if I move/remove the db2diag.log file.
Who is Participating?
data_bitsConnect With a Mentor dbaCommented:
If you issue this command, the current db2diag.log file will be renamed and a new one restarted:

              db2diag -A

There are some other options for this that allow you to save the old db2diag.log file to a different location and/or name. Once "archived", you can compress the file to save space. You need to have sysadm privs since it needs to deal with the db2diag.log file. For more detail about the command, see the reference below.


there is a configuration parameter that points to the db2diag path, so if you move/ remove the file, a new file will be created in that location
MurpheyConnect With a Mentor Application ConsultantCommented:
Hi syedmquadri,

No there isn't any problem as momi_sabag already declared, but!!! if it's a production sever, be carefull, maybe it contains usefull info.
What we do is rename the db2diag.log file every day, after removing the logfile from the day before,
So you have always 24 hour info... any problem after that time isn't use full to check (most of the time).

Guy Hengel [angelIII / a3]Billing EngineerCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.