RMAN backup deleted even within recovery window [message #527477] |
Tue, 18 October 2011 04:31 |
|
pt12340
Messages: 8 Registered: August 2011
|
Junior Member |
|
|
I have problem on using "delete obsolete" in RMAN.
First, let describe my backup configuration.
1. Full backup every Monday (17-Oct, 10-Oct, 3-Oct, 26-Sep)
2. Incremental backup for other days
3. Enable autobackup of control file
4. Backup archive log every day
5. RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS
6. Execute "Delete obsolete" every day
7. control file is used instead of catalog
The results observed:
1. Backup of control files older than 30 days will be deleted
2. Backup of archive log files older than 30 days will be deleted.
3. Backup of datafiles older than ~14 days but before 30 days are also DELETED.
In my example, the backup of datafiles created at 26-Sep is deleted at 16-Oct.
What is going wrong?
I tried "restore database validate until time "sysdate-22"" at 17-Oct. And RMAN reported "datafile xx will be created automatically during restore operation". It seems that RMAN failed to do restoration up to 22 days ago. The retention policy I set seems not effective on datafile backups.
I checked view v$backup_set and the "Keep" is "No" and "Keep until" is empty.
The only thing I can think of, is the settings of "CONTROL_FILE_RECORD_KEEP_TIME". It is marked "7" in the Oracle, which is less than the retention. But I suppose this only causes the backup not deleted, but NOT be deleted earlier.
Thanks.
|
|
|
|
|
|
|
|
Re: RMAN backup deleted even within recovery window [message #537924 is a reply to message #537908] |
Tue, 03 January 2012 01:02 |
|
Michel Cadot
Messages: 68729 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Thanks for the feedback.
CONTROL_FILE_RECORD_KEEP_TIME is a lower limit, it does not mean Oracle will delete the maching records as soon as the limit is reached but it does not do it before the limit is reached.
Actually Oracle deletes the matching records when there is a lock of entries in the control file.
Regards
Michel
|
|
|