在oracle 11g中安排备份恢复

时间:2015-05-29 13:10:43

标签: oracle oracle11g scheduled-tasks database-backups rman

我正在尝试将备份恢复安排到我的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执行备份时它工作正常。

========我从寡妇调度任务中获得了什么=========== enter image description here

=========我应该得到什么(没有任务安排,它工作正常)=== enter image description here

显然,运行脚本无效:

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;
}

0 个答案:

没有答案