We have recently implemented an incremental backup-restore procedure for our ever growing database. The person who was in charge of this process informed us that, in order to enable this type of process, transaccion logging needed to be changed. That, instead of circular log files, archived logging needed to be enabled.
Upon doing this, we saw a change in our database log directory where our log files (1 GB total) are normally stored (...\DB2\NODE0000\SQL00001\SQLOGDIR). Subdirectories were created within that directory following with this structure: ...\SQLOGDIR\DB2\<db name>\NODE0000\<subdirectory name>, where <subdirectory name> varies and these subdirectories get created and erased by DB2, from what we can see (for example, we now have only one, named C0000004). Apparently, DB2 moves log files in there and never erases them. What we find strange is that there are logs in there with today's date, whereas there are logs with yesterday's date in the main log directory (...\SQLOGDIR).
We recently discovered this directory had grown to more than 120 GB, so we manually went it an erased the older logs.
Our question is as follows:
Even if this is necessarily true and this type of logging has to take place in order to be able to run incremental backups, is there a way for DB2 to erase the older log files without us having to create an external application that stays resident?