误删除Oracle datafile 无法打开数据库
1、在Oracle open方式下,直接从OS上删除了datafile文件。
rm /u02/rmants.dbf
2、数据库关闭后,无法打开数据库,只能到mount状态。
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: '/u02/rmants.dbf'
3、在mount状态下,删除被误的数据文件。
alter database datafile '/u02/rmants.dbf' offline drop;
4、打开数据库
alter database open;
5、验证状态
select open_mode from v$database
OPEN_MODE
--------------------
READ WRITE
相关推荐
lbyd0 2020-11-17
sushuanglei 2020-11-12
腾讯soso团队 2020-11-06
gaobudong 2020-11-04
yangkang 2020-11-09
85477104 2020-11-17
KANSYOUKYOU 2020-11-16
wushengyong 2020-10-28
lizhengjava 2020-11-13
星月情缘 2020-11-13
huangxiaoyun00 2020-11-13
luyong0 2020-11-08
Apsaravod 2020-11-05
PeterChangyb 2020-11-05
wwwjun 2020-11-02
gyunwh 2020-11-02
EchoYY 2020-10-31
dingyahui 2020-10-30