Home > Database > Mysql Tutorial > Oracle数据库启动时出现ORA-01157和ORA-01110问题

Oracle数据库启动时出现ORA-01157和ORA-01110问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:30:01
Original
1932 people have browsed it

今天遇到oracle启动报ORA-01157和ORA-01110的错误sqlgt;startup mount;sqlgt;alter database open;RA-01157: 无法标识/锁定数据

今天遇到Oracle启动报ORA-01157和ORA-01110的错误

sql>startup mount;

sql>alter database open;

RA-01157: 无法标识/锁定数据文件 10 - 请参阅 DBWR 跟踪文件ORA-01110: 数据文件 10: 'D:\ORACLE\ORADATA\ORCL\USERS02.DBF'

解决过程如下:

1. startup mount

2. alter database open

ORA-01157: cannot identify/lock data file 10 - see DBWR trace file

ORA-01110: data file 12: '/oradata/orcldata/sacproduce02.dbf'

3. cd /oradata

4. cd orcldata

报错信息为不能进行读写操作,哈哈。找到原因了,,挂载的硬盘不能进行读写操作了。要打开数据库,只能将该文件进行离线操作了。

5. archive log list

归档模式下

alter database datafile '/oradata/orcldata/sacproduce02.dbf' offline

非归档模式下

alter database datafile '/oradata/orcldata/sacproduce02.dbf'offline drop

6. 到此,数据库就可以open了。但是文件中还有需要的数据,接下来就是挂载硬盘,online数据文件,open数据库。

alter database datafile '/oradata/orcldata/sacproduce02.dbf' online;

ORA-01113: file 12 needs media recovery

ORA-01110: data file 12: '/oradata/orcldata/sacproduce02.dbf'

recover datafile '/oradata/orcldata/sacproduce02.dbf'

alter database datafile '/oradata/orcldata/sacproduce02.dbf' online;

alter database open;

OK,问题解决^_^

linux

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template