oracle 10g 使用rman做异机恢复时,不能批量恢复datafile

[复制链接]
查看11 | 回复2 | 2017-3-27 08:04:23 | 显示全部楼层 |阅读模式
我使用rman做异机恢复的时候,使用批量语句,但是每次都只能恢复4-6个datafile,是什么原因呢?脚本如下:
run
{
startup force mount;
set newname for datafile5 to"xxx";
set newname for datafile6 to"xxxf";
set newname for datafile7 to"xxx";
set newname for datafile8 to"xxx";
set newname for datafile9 to"xxx";
set newname for datafile12 to"xxx";
set newname for datafile14 to"xxx";
set newname for datafile16 to"xxx";
set newname for datafile17 to"xxx";
set newname for datafile20 to"xxx";
set newname for datafile21 to"xxx";
set newname for datafile22 to"xxx";
set newname for datafile23 to"xx";
set newname for datafile24 to"xxx";
set newname for datafile27 to"xxx";
set newname for datafile28 to"xxx";
set newname for datafile29 to"xxx";
restore datafile 5,6,7,9,12,15,16,17,18,19,22,23,24,25,26,27,28,29;
switch datafile all;
recover datafile 5,6,7,9,12,15,16,17,18,19,22,23,24,25,26,27,28,29;
}

说明:
xxx,是恢复到新的datafile的目录

回复

使用道具 举报

千问 | 2017-3-27 08:04:23 | 显示全部楼层
Not sure what you mean? Any error? And Oracle version?
回复

使用道具 举报

千问 | 2017-3-27 08:04:23 | 显示全部楼层
已经解决!谢谢!
oracle 10g 10.2.0.1的
从solaris10恢复到另外一台的solaris10上
出现问题,是因为在catalog start with “”前没有使用crosscheck backup检查无效备份集造成的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行