Recovery Manager (RMAN) provides a comprehensive foundation for efficiently
backing up and recovering the Oracle databases, it provides a common interface, via command line
and Enterprise Manager, for backup tasks across different host operating systems, automates
administration of your backup strategies.
Prerequisites:
- Database should be in archive log mode.
- We need to have super user credentials.
- Create Rman scripts
textpad
ORACLE_SID=<DB_Name>
target / cmdfile= ‘F:Backup_scriptsdbname_rman_target.sql’ log=’F:Backup_scriptsdbname_target_backup.log’
and exit
Run
channel c1 device type disk;
channel c2 device type disk;
channel c3 device type disk;
backup;
archivelog all;
noprompt expired backup;
noprompt expired archivelog all;
as compressed backupset database;
as compressed backupset archivelog all;
noprompt backup completed before ‘sysdate-3’;
noprompt archivelog all completed before ‘sysdate-2’;
current controlfile;
- Open the task scheduler from start menu then right click and
click on create new Task.
- Give name
and description of Backup in General Tab.
- Click on trigger tab then click on new to
schedule.
- Now click
on action tab then new.
- On this
screen browse and supply Rman script name and location then click ok.
- Now
go to condition tab and check the conditions.
setting tab and click OK
- Once click ok, it will prompt for password, provide Administrator
password and click ok
- Backup has been schedule
now.
Conclusion:
In above article we have learned that, how
to schedule Rman backup on windows environment, where we have prepared Rman
scripts and schedule it through task scheduler.












Leave a Reply