Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RMAN Scheduling Question

Posted on 2010-11-30
6
Medium Priority
?
705 Views
Last Modified: 2012-05-10
Hi Experts,

I am a newbie in RMAN backups, so would need some guidance for the scheduling of Full/Incremental backups.We have couple of instances (different machines) which needs backup.My concern is that i don't have a tape device and my backup destination as of now is a SAN storage with size of 700GB( This is enough to store 8-9 days of backup).For now i was planning to do following scheduling

Sun: Incr Level 0 backup
Mon - Sat: Incr Level 1 backup

SETTINGS
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COMPRESSED BACKUPSET;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '\\nyx\sesto01sql06\ora_df%t_s%s_s%p';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '\\nyx\sesto01sql06\%F';
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE BACKUP OPTIMIZATION ON;

INCR LEVEL 0 BACKUP
BACKUP INCREMENTAL LEVEL 0  DATABASE FILESPERSET 15;
NOT BACKED UP SINCE TIME 'SYSDATE-1'
BACKUP ARCHIVELOG ALL;
DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-2';

INCR LEVEL 1BACKUP
DELETE BACKUP COMPLETED BEFORE 'SYSDATE-7' DEVICE TYPE DISK;
BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DEVICE TYPE DISK DATABASE FILESPERSET 15;
NOT BACKED UP SINCE TIME 'SYSDATE -1 ';
BACKUP BACKUPSET ALL; # copies backups from disk to tape
BACKUP ARCHIVELOG ALL;
DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-2';

-----------------------------------------------------------------

For the above scenario i am planning to move the Level 0 backup to seperate place until new Level 0 is created.Is it correct or do i need to keep all the Level 0 or just the last Level 0 backup + recent Level 1 cumulative backup is enough to restore the DB?

Also will the "DELETE BACKUP COMPLETED BEFORE 'SYSDATE-7' DEVICE TYPE DISK" command in the Level 1 backup script delete my Level 0 backup

Kindly revert if you guys have any feedback.

Thx







0
Comment
Question by:AndersBiro
  • 3
  • 3
6 Comments
 
LVL 6

Accepted Solution

by:
sridharv9 earned 1500 total points
ID: 34240894
last/latest level 0 full + recent level 1 cumulative backup should be enough. Just make sure to run CROSSCHECK to Update the RMAN Repository.
For more info read http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/maint002.htm
0
 

Author Closing Comment

by:AndersBiro
ID: 34245007
A bit more detail appreciated
0
 

Author Comment

by:AndersBiro
ID: 34245021
Hi Sridhar,

Thanks for the valuable comments.May i know if the "DELETE BACKUP COMPLETED BEFORE 'SYSDATE-7' DEVICE TYPE DISK" command in the Level 1 backup script  will delete my Level 0 backup also ?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 6

Expert Comment

by:sridharv9
ID: 34245053
You may call  this command from any script from RMAN perspective it is same. So it will delete all SYSDATE-7 backups including level 0 and level 1 fall with the date.
0
 

Author Comment

by:AndersBiro
ID: 34245143
Thanks for the info.So can i conclude that to be on safe side after Level 0 backup file is completed, make a copy of it somewhere else ( may b in other disk since we don't have a tape device) and then let the DELETE statement remove it.With this scheduling in the case of DB crash before Level 0 completion i can restore the Level 0 from the other disk and along with latest Level 1 cumulative backup, can proceed with restoration ? For the above scenario is "CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS" fine ?

Thanks,
0
 
LVL 6

Expert Comment

by:sridharv9
ID: 34253233
yes, you got it right. BTW you can always catalog back the old backups if needed for restore or recovery. For more info read http://arjudba.blogspot.com/2008/09/how-to-catalog-and-uncatalog-backup-to.html
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question