Use RMAN to Manage BackupSet -RETENTION POLICY

With Oracle 9iR2, We have a new way to let RMAN to manage backupset better.
That is CONFIGURE RETENTION POLICY command .

If we have enough backups to meet a specific recovery window.
We can also tell RMAN to keep a specific number of copies of datafiles and controlfiles.

For example:
If I have enough backupset to recover the database to seven days ago, we can issue:

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;

Moreover, to insure that we have at least two copies of each datafile and controlfile backup, we can issue:

CONFIGURE RETENTION POLICY TO REDUNDANCY 2;

RMAN will keeps all archived redo logs and incremental backups necessary to insure the retention policies can be met.
When a backup piece is no longer needed, RMAN marks it as obsolete.

If we want to clear out all obsolete backup files, we can simply issue DELETE OBSOLETE;
RMAN command and RMAN handles the deletion of the corresponding physical files.

So,Under Oracle9iR2,We can use RMAN to manage all of us backupset. It's very easy and convenience.

Some testing is following:

1.Use CONFIGURE to change the setting

 

2.You may Need CROSSCHECK

If you have delete your backupset manual ,you may need to CROSSCHECK first.

 

With this step ,Rman will check does these file is exists on your disk.

If a backup piece is unreadable or absent, then RMAN marks the backup piece EXPIRED in the output of the list command
and the recovery catalog views.
If it was marked EXPIRED but is now available, RMAN marks the backup piece as AVAILABLE in the output of the list
command and the recovery catalog views.

3.DELETE OBSOLETE

Now you can use rman to list and delete obsolete file from disk.

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13165828/viewspace-610836/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/13165828/viewspace-610836/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值