oracle 启动时出现ORA-01157: cannot identify/lock data和ORA-01110: data file 错误

本文详细记录了一次数据库遇到ORA-01109错误并最终成功恢复的过程。从关闭数据库、启动数据库、识别数据文件错误、离线删除损坏的数据文件,到重新打开数据库的整个故障排查步骤被详尽阐述。通过此案例,读者可以了解如何应对数据库中常见的数据文件识别和锁定问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SQL> shutdown
ORA-01109: database not open
Database dismounted.

ORACLE instance shut down.


SQL> startup
ORACLE instance started.
Total System Global Area  422670336 bytes
Fixed Size    1336960 bytes
Variable Size  314575232 bytes
Database Buffers  100663296 bytes
Redo Buffers    6094848 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: '/bk/dba_tablespaces/ts3.dbf'


SQL> alter database open
  2  ;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: '/bk/dba_tablespaces/ts3.dbf'


SQL> alter database datafile '/bk/dba_tablespaces/ts3.dbf' offline drop;
Database altered.

SQL> alter database open
  2  ;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
ORA-01110: data file 9: '/bk/dba_tablespaces/ts6.dbf'


SQL> alter database datafile '/bk/dba_tablespaces/ts6.dbf' offline drop;
Database altered.


SQL> alter database open
  2  ;
Database altered.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值