Solved

RMAN Scheduling Question

Posted on 2010-11-30
6
680 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
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
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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database

910 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

22 Experts available now in Live!

Get 1:1 Help Now