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.
最后打开数据库就可以了

转载于:https://blog.51cto.com/12015549/2165927

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值