I'm trying to schedule a backup recovery to my oracle 11g Database, I use the above script with the windows task scheduler :
rman target/
run
{
shutdown immediate;
startup mount;
backup incremental level 0 database plus archivelog delete input;
backup archivelog all delete input;
delete force noprompt obsolete;
backup current controlfile spfile;
alter database open;
}
The scheduler started at the specified time, however backup doesn't start. When i excute the backup via : rman it works fine.
========What i got from widows scheduling task===========
=========What i should get (it's working fine without task scheduling)===
Obviously, the run script isn't working :
run
{
shutdown immediate;
startup mount;
backup incremental level 0 database plus archivelog delete input;
backup archivelog all delete input;
delete force noprompt obsolete;
backup current controlfile spfile;
alter database open;
}