rman 备份恢复问题

[复制链接]
查看11 | 回复3 | 2012-7-12 18:47:29 | 显示全部楼层 |阅读模式
我用oracle 10g 作了备份恢复测试例子,例子在
http://www.cndw.com/tech/data/2006051166816.asp
数据库中有一些数据和表,
备份数据库后,试图恢复
  RMAN>startup
  配置RMAN
  RMAN> configure channel device type disk format 'F:\backup\%U';
  new RMAN configuration parameters:
  CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'F:\backup\%U';
  new RMAN configuration parameters are successfully stored
  
  RMAN>startup nomount
  RMAN>restore controlfile to '/opt/oracle/oradata/control01.ctl' from autobackup;
restore controlfile to '/opt/oracle/oradata/control01.ctl' from autobackup;
出错,
RMAN-03002: failure of restore command at 07/15/2007 08:58:49
ORA-19607: D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORADB\CONTROL01.CTL is an active con
trolfile
请问应该怎么处理呀?
回复

使用道具 举报

千问 | 2012-7-12 18:47:29 | 显示全部楼层
运行startup nomount时出现
database is already started信息
是否要shutdown immediate 后再startup nomount
再运行restore controlfile to 语句?
回复

使用道具 举报

千问 | 2012-7-12 18:47:29 | 显示全部楼层
最初由 eliych 发布
[B]运行startup nomount时出现
database is already started信息
是否要shutdown immediate 后再startup nomount
再运行restore controlfile to 语句? [/B]


是的!
回复

使用道具 举报

千问 | 2012-7-12 18:47:29 | 显示全部楼层
你 startup 后,数据库已经OPEN,原来的控制文件已经在使用,所以无法覆盖回去。
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行