0% found this document useful (0 votes)
229 views2 pages

Schedule RMAN Backup On Windows

The document describes how to schedule automated RMAN backups on Windows by creating a .bat file that calls an RMAN script to crosscheck and backup the database plus archived logs. It instructs to create the RMAN and .bat files, then use the Windows Task Scheduler to schedule the .bat file to run based on a defined frequency and start time to automate regular backups.

Uploaded by

endalk zemen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
229 views2 pages

Schedule RMAN Backup On Windows

The document describes how to schedule automated RMAN backups on Windows by creating a .bat file that calls an RMAN script to crosscheck and backup the database plus archived logs. It instructs to create the RMAN and .bat files, then use the Windows Task Scheduler to schedule the .bat file to run based on a defined frequency and start time to automate regular backups.

Uploaded by

endalk zemen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Schedule RMAN Backup on Windows

Create RMAN Backup Script File

We will create a backup.cmd file with our RMAN run block for database backup

run{
crosscheck backup;
backup database plus archivelog;
};

Create Bash Shell

Create a proddb_rman_backup.bat (.bat is a windows bash shell) file which will call above file

set oracle_sid=proddb
rman target sys/sys@ecccatalog rman_rc/rman_rc@rcat cmdfile='F:\backup.cmd'
log='F:\rman_backup_full\backup.log'

Add Schedule to
Windows Scheduler

Schedule the above .bat script in


windows scheduler

 Launch the Task Scheduler


from start menu
 On the right-hand panel, click
on Create Task
Give a name to your task

Click on Triggers tab >> New and define the schedule

Make sure you set proper frequency like daily or weekly and
set proper start date and time. Click on Actions tab >> New
and provide the location of .bat file you created

Click on OK and
task will be created.
You can even run the
task for testing by
right clicking on the task name and select Run

You might also like