Chinaunix首页 | 论坛 | 博客
  • 博客访问: 27725
  • 博文数量: 15
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 135
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-25 10:57
文章分类
文章存档

2014年(15)

我的朋友

分类: Oracle

2014-06-30 10:51:47

客户数据库版本为8.1.7.4,数据文件所在磁盘发生故障,故障解决后,数据文件需要recover,并置为online; 
ORA-00376:file 7 cannot be read at this time
 
ORA-01110:data file 7 。。。


查询v$recover_file查看需要恢复的数据文件
 
数据库通过nbu备份到磁带,需要从磁带中恢复数据文件7,8,9.
 
rman target "sys/manager" nocatalog
 
run
 
{allocate channel ch01 type "SBT_TAPE";
 
restore datafile 7;
 
recover datafile 7;
 
}
 


run
 
{allocate channel ch01 type "SBT_TAPE";
 
restore datafile 8;
 
recover datafile 8;
 
}
 


run
 
{allocate channel ch01 type "SBT_TAPE";
 
restore datafile 9;
 
recover datafile 9;
 
}


 


alter database open;


确认是否还有需要恢复的数据文件:
 
select * from v$recover_file;


查看v$datafile中offline的数据文件,分别online各个数据文件:
 
alter database datafile '......' onlien;
 
alter database datafile '......' onlien;
 
alter database datafile '......' onlien;


OK,所有数据文件已恢复完成。数据完成不一致性恢复。
阅读(457) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:使用shell自动发送Oracle AWR报告

给主人留下些什么吧!~~