ORA-01116: error in opening database file 14

dbhelper發表於2015-03-01
SQL>drop tablespace test including contents
ERROR at line 1:
ORA-01116: error in opening database file 14
ORA-01110: data file 14: '/oracle8/oradata/dtgdb/test.dbf'
ORA-27041: unable to open file
Linux Error: 2: No such file or directory
Additional information: 3[@more@]

由於在Linux下不小心誤刪除了一個資料檔案,結果刪除包含該資料檔案的表空間的時候報錯!但是如果在windows下面的話,正在使用的資料檔案是不能刪除的!


SQL>drop tablespace test including contents
ERROR at line 1:
ORA-01116: error in opening database file 14
ORA-01110: data file 14: '/oracle8/oradata/dtgdb/test.dbf'
ORA-27041: unable to open file
Linux Error: 2: No such file or directory
Additional information: 3

SQL>alter database datafile '/oracle8/oradata/dtgdb/test.dbf' offline drop;
datafile dropped;

SQL>drop tablespace test including contents;
Tablespace dropped.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8494287/viewspace-1444347/,如需轉載,請註明出處,否則將追究法律責任。

相關文章