Solved

RMAN Scheduling Question

Posted on 2010-11-30
6
695 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 6

Accepted Solution

by:
sridharv9 earned 500 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

631 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