Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Running backup script from windows batch file

Keith JamiesonJan 27 2009 — edited Jan 27 2009
I have quite a simple backup script
rman target='sys/change_on_install as sysdba';
run
{
shutdown immediate;
startup mount;
configure controlfile autobackup format for device type disk clear;
configure retention policy to redundancy 2;
backup as compressed backupset database include current controlfile;
alter database open;
}
What I need to do is for this script to run from a batch file.
ie it should connect in and run the script. Currently it connects in but stops on the first line.
How do I get it to run and execute all in one go.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2009
Added on Jan 27 2009
4 comments
2,413 views