oracle 恢复 跳过 表空间,Oracle表空间恢复
如果誤刪除了一個表空間中test的數據文件test.dbf,然后下次重新啟動數據庫的時候發? ? ? 數據庫不能打開了(open),
老是報錯:SQL> alter database open;
alter database open*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 6 - see DBWRtrace file
ORA-01110: data file 6:'/u01/app/Oracle/oradata/orcl/test.dbf'
解決方案:
1、 在路徑/u01/app/oracle/oradata/orcl/新建一個test.dbf文件;
2、? 以sqlplus? / as sysdba登錄數據庫startup force;不過此時還會報錯,沒關系;
3、? 執行:
SQL> alter database datafile'/u01/app/oracle/oradata/orcl/test.dbf' offline drop;
Database altered.
4、接著執行:
SQL> startupforce
ORACLE instance started.
Total System Global Area 1570009088 bytes
Fixed Size? ? ? ? ? ? ? ? 2253584 bytes
Variable Size? ? ? ? ? ? 973081840 bytes
Database Buffers? ? ? ? 587202560 bytes
Redo Buffers? ? ? ? ? ? ? 7471104 bytes
Database mounted.
Database opened.
5、經過上述的步驟,就將數據庫open了。
總結
以上是生活随笔為你收集整理的oracle 恢复 跳过 表空间,Oracle表空间恢复的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle不能单步调试,oracle
- 下一篇: oracle 偶数与奇数,在PL /