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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle数据库启动时出现ORA-01157和ORA-01110问题相关的知识,希望对你有一定的参考价值。

出现问题:
SQL> startup;
ORACLE instance started.

Total System Global Area 2371719168 bytes
Fixed Size 2215624 bytes
Variable Size 1342177592 bytes
Database Buffers 1023410176 bytes
Redo Buffers 3915776 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: ‘/opt/oracle/oradata/orcl/srcmsg.dbf‘

解决办法:
1.关库
SQL> shutdown immediate;

  1. alter database open
    ORA-01157: cannot identify/lock data file 10 - see DBWR trace file
    ORA-01110: data file 12: ‘/oradata/orcldata/sacproduce02.dbf‘
    报错信息为不能进行读写操作,挂载的硬盘不能进行读写操作了。要打开数据库,只能将该文件进行离线操作了。
  2. SQL> archive log list; //查一下数据库的归档模式,
    Database log mode No Archive Mode //非归档模式
    Automatic archival Disabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 4
    Current log sequence 6
    若归档模式下,则:
    alter database datafile ‘/oradata/orcldata/sacproduce02.dbf‘ offline
    非归档模式下(现在情况)
    alter database datafile ‘/oradata/orcldata/sacproduce02.dbf‘offline drop
    SQL> alter database datafile ‘/opt/oracle/oradata/orcl/srcmsg.dbf‘ offline drop;

Database altered.

SQL> alter database datafile ‘/opt/oracle/oradata/orcl/srcmsg.dbf‘ offline;
Database altered.
最后打开数据库就可以了

以上是关于Oracle数据库启动时出现ORA-01157和ORA-01110问题的主要内容,如果未能解决你的问题,请参考以下文章

ORA-01157报错"cannot identify/lock data file"解决

Orace 删除表空间后,数据库启动失败(ORA-01157,ORA-01110)

Orace 删除表空间后,数据库启动失败(ORA-01157,ORA-01110)

原创oracle ORA-01157 ORA-01110 DataGuard 备库 临时表空间报错

ORA-01157 错误解决,原因DBWR锁定产生

记一次Oracle启动报错问题解决