Home  >  Article  >  Database  >  Oracle 8.1.7.4 数据库故障恢复解决实例

Oracle 8.1.7.4 数据库故障恢复解决实例

WBOY
WBOYOriginal
2016-06-07 16:49:571058browse

客户数据库版本为8.1.7.4,数据文件所在磁盘发生故障,故障解决后,数据文件需要recover,并置为online; ORA-00376:file 7 can

客户数据库版本为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,,所有数据文件已恢复完成。数据完成不一致性恢复。

Oracle教程:实例故障恢复

Linux-6-64下安装Oracle 12C笔记

在CentOS 6.4下安装Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

本文永久更新链接地址:

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn