archive backup deletion [message #624209] |
Fri, 19 September 2014 01:27  |
smunir362
Messages: 310 Registered: September 2007
|
Senior Member |
|
|
AOA,
I have set level 0 backup on Saturday. (shell script)
I have set archive log backup on every 4 hours (shell script).
I have set level 1 backup on Sun,Mon,Tue,Wed,Thu,Fri (shell script)
I have redundancy 4 and run delete obsolete. It applies on level 0 and 1 backups But not on archive log backups.
In this situation how I delete archive log backups not needed automatically.
|
|
|
|
Re: archive backup deletion [message #624419 is a reply to message #624245] |
Mon, 22 September 2014 11:18   |
smunir362
Messages: 310 Registered: September 2007
|
Senior Member |
|
|
rman>list backup summary;
level 0 12-Sep-2014-1630
Arch 13-Sep-2014-0900
Arch 13-Sep-2014-1100
Arch 13-Sep-2014-1400
level 1 13-Sep-2014-1630
Arch 14-Sep-2014-0900
Arch 14-Sep-2014-1100
Arch 14-Sep-2014-1400
level 1 14-Sep-2014-1630
Arch 15-Sep-2014-0900
Arch 15-Sep-2014-1100
Arch 15-Sep-2014-1400
level 1 15-Sep-2014-1630
Arch 16-Sep-2014-0900
Arch 16-Sep-2014-1100
Arch 16-Sep-2014-1400
Arch 16-Sep-2014-1630
RMAN>rebort obsolete redundancy 1;
It should obsolete Arch backups between Level 1 and 0. But it is not do so.
|
|
|
Re: archive backup deletion [message #624426 is a reply to message #624419] |
Mon, 22 September 2014 12:09   |
 |
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
Like I said, "your concept of when rman should consider when a given backupset is considered to be obsolete is flawed."
ALL recovery ... I repeat, "ALL recovery" begins with restoring from the level 0 backup. And backups of archivelogs cannot be considered oboslete until such time as they are no longer needed to enforce the recovery window.
Now, suppose you need to recover to 13-Sep-2014-1629. That is still within your recovery window, and the three archivelog backups taken on 23-sep are needed to perform that recovery, so cannot be considered obsolete.
If you have access to MOS, you might want to review notes 462978.1 and 463875.1.
[Updated on: Mon, 22 September 2014 13:29] Report message to a moderator
|
|
|
|
|
|
Re: archive backup deletion [message #624622 is a reply to message #624605] |
Wed, 24 September 2014 03:36   |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
No. From the documentation, REDUNDANCY "specifies how many full or level 0 backups of each data file and control file that RMAN should keep. If the number of full or level 0 backups for a specific data file or control file exceeds the REDUNDANCY setting, then RMAN considers the extra backups as obsolete."
RECOVERY WINDOW "specifies the number of days between the current time and the earliest point of recoverability. RMAN does not consider any full or level 0 incremental backup as obsolete if it falls within the recovery window. Additionally, RMAN retains all archived logs and level 1 incremental backups that are needed to recover to a random point within the window."
|
|
|
|
Re: archive backup deletion [message #624716 is a reply to message #624650] |
Thu, 25 September 2014 00:00   |
smunir362
Messages: 310 Registered: September 2007
|
Senior Member |
|
|
Ok.
I am confusing.
While using redundancy.
I restore 0 level backup. then all avaliable level 1 backups. Now I did not required archived backups that are between the level0 and level1 backups.
It is my point
|
|
|
|
|