DB2 - to prune archive logs

 (1) get the last active log


>db2 get db config | grep -i log

[...]

 First active log file                                   = S0003690.LOG

[...]

$ db2 prune logfile prior to  S0003690.LOG


the above will be decom and use instead

$ db2 prune history 20220521000000     (YYYYMMDDHHMMSS)


Note that 202205 <-- implies from the first of May

Comments

Popular posts from this blog

Oracle: To clean up WRI$_ADV_OBJECTS