![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Frederik, I'm curious about one thing, what are you doing to produce backup images on the standby server? *Are you disabling HADR and running a DB2 BACKUP command there, or something else? As far as the PRUNE command, historically the easy answer is that it has just always been this way. *The DB history and the PRUNE command have existed since DB2 V2, long before there was ever such a thing as HADR. *A better answer, believe it or not, is that I just don't think we have ever heard about this being a requirement before. *Having said that, these days the PRUNE command does have capabilities that require a connection to an active DB, such as automatic deletion of archived logs and backup images. Hope that helps. Kelly Rodger |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Hi Ian, I actually think of the two flavours of the PRUNE command as distinct, independent commands. You're right about the PRUNE LOGFILE command. It is for pruning logs from the active log path, not the log archives. The earlier discussion in this thread was about the PRUNE HISTORY command, or at least that's what I was talking about. ;-) |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Hi Ian. You might want to take a look at the "AND DELETE" option of the "PRUNE HISTORY" command: Fromhttp://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=... quote AND DELETE Specifies that the associated log archives will be physically deleted (based on the location information) when the history file entry is removed. This option is especially useful for ensuring that archive storage space is recovered when log archives are no longer needed. If you are archiving logs via a user exit program, the logs cannot be deleted using this option. If you set the auto_del_rec_obj database configuration parameter to ON, calling PRUNE HISTORY with the AND DELETE parameter will also physically delete backup images and load copy images if their history file entry is pruned. /quote I believe that PRUNE LOGFILE was intended for use with "LOGRETAIN" and thus I can see why it would not do the deletion of archives, because in that configuration DB2 would not be aware of where, if anywhere, the user may have archived the log files. I would be interested to know if you are using PRUNE LOGFILE and if so to what end. Regards, - Steve P. --- Steve Pearson IBM DB2 UDB Development Portland, OR, USA |
![]() |
| Thread Tools | |
| Display Modes | |
| |