我正在尝试将备份恢复安排到我的oracle 11g数据库,我将上述脚本与windows任务调度程序一起使用:
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;
}
调度程序在指定时间启动,但备份未启动。当我通过:rman执行备份时它工作正常。
========我从寡妇调度任务中获得了什么===========
=========我应该得到什么(没有任务安排,它工作正常)===
显然,运行脚本无效:
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;
}