Solved

RMAN Scheduling Question

Posted on 2010-11-30
6
677 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 500 total points
Comment Utility
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
Comment Utility
A bit more detail appreciated
0
 

Author Comment

by:AndersBiro
Comment Utility
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 6

Expert Comment

by:sridharv9
Comment Utility
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
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now