Unix Technical Forum

Defining Obsolete Backups in RMAN

This is a discussion on Defining Obsolete Backups in RMAN within the Oracle Database forums, part of the Database Server Software category; --> Hi All, Question: Say I have 3 weeks of backup, and I want to get rid of everything but ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 01:33 PM
amerar@iwc.net
 
Posts: n/a
Default Defining Obsolete Backups in RMAN


Hi All,

Question:

Say I have 3 weeks of backup, and I want to get rid of everything but
one week. Will this REPORT command give me a list of everything I can
delete:

REPORT OBSOLETE UNTIL TIME 'SYSDATE-7';

Basically, anything outside the time window will be considered
obsolete. And, does this include backups, archive logs, and control
file copies?

We have to implement this and do not have 3 weeks to wait to test this
out.

Thanks,

Arthur

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 01:33 PM
Holger Baer
 
Posts: n/a
Default Re: Defining Obsolete Backups in RMAN

amerar@iwc.net wrote:
> Hi All,
>
> Question:
>
> Say I have 3 weeks of backup, and I want to get rid of everything but
> one week. Will this REPORT command give me a list of everything I can
> delete:
>
> REPORT OBSOLETE UNTIL TIME 'SYSDATE-7';
>
> Basically, anything outside the time window will be considered
> obsolete. And, does this include backups, archive logs, and control
> file copies?
>
> We have to implement this and do not have 3 weeks to wait to test this
> out.
>
> Thanks,
>
> Arthur
>


I've always understood that report obsolete gives you the list of backup pieces,
archived logs and what not that rman is going to delete when issuing delete
obsolete. Now why you want to delete this some other way is beyond me, but
you must have your reasons. And yes, rman will delete backups, archived logs,
controlfile copies as long as it is aware of them.

And you don't have to wait for 3 weeks, as soon as anything obsolete pops
out you'll see. And since you have to test before implementing anyway,
you can do so with a smaller retention window.

HTH
Holger
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 01:34 PM
Frank van Bortel
 
Posts: n/a
Default Re: Defining Obsolete Backups in RMAN

amerar@iwc.net wrote:
> Hi All,
>
> Question:
>
> Say I have 3 weeks of backup, and I want to get rid of everything but
> one week. Will this REPORT command give me a list of everything I can
> delete:
>
> REPORT OBSOLETE UNTIL TIME 'SYSDATE-7';
>

No:
RMAN> REPORT OBSOLETE UNTIL TIME 'SYSDATE-7';


no obsolete backups found

RMAN>
RMAN> REPORT OBSOLETE;

RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Backup Set 27 12-APR-05
Backup Piece 27 12-APR-05
/o/oracle9/920/dbs/0tghmhfs_1_1
Backup Set 28 12-APR-05
Backup Piece 28 12-APR-05
/o/oracle9/920/dbs/0sghmhfs_1_1
Backup Set 29 12-APR-05
Backup Piece 29 12-APR-05
/o/oracle9/920/dbs/0ughmhft_1_1
Backup Set 30 12-APR-05
Backup Piece 30 12-APR-05
/o/oracle9/920/dbs/10ghmhfv_1_1
Backup Set 31 12-APR-05
Backup Piece 31 12-APR-05
/o/oracle9/920/dbs/0vghmhfu_1_1

--
Regards,
Frank van Bortel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 01:34 PM
amerar@iwc.net
 
Posts: n/a
Default Re: Defining Obsolete Backups in RMAN


We are running Oracle 8i, where retention policies are not yet
implemented.

Basically, I want to run that REPORT OBSOLETE UNTIL TIME 'SYSDATE-7';
command, then I have written a script to parse the output and create
the proper delete commands.

I just want to make sure that the command does what I think, which is
to report a list of backups that are outside my window, which are the
ones I will delete.

Arthur

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com