Oracle資料庫dbf檔案誤刪除後的解決方案

來源:互聯網
上載者:User

問題描述:

誤刪除Oracle資料庫的dbf檔案,在啟動和關閉資料庫是會提示錯誤。

startup啟動資料庫時提示:

ORA-01157:無法標識/鎖定資料檔案

ORA-01110:資料檔案:‘....../X1000_1.dbf' 未找到

解決方案:

1、sql>alter system set "_ALLOW_RESETLOGS_CORRUPTION"=true scope=spfile;

System altered.

2、sql>shutdown immediate

ORA-01109:資料庫未開啟

已經卸載資料庫

ORACLE常式已關閉

3、sql>startup mount

ORACLE常式已經啟動

....

....

資料庫裝載完畢

4、alter database datafile '.../X1000_1.dbf' offline drop;

資料庫已更改

5、alter database open;

資料庫已更改

6、串連資料庫

sql>conn scada/scada

已串連

問題解決。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.