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