Solved

RMAN Scheduling Question

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

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.

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…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup

860 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