SPFILE導致Oracle資料庫啟動失敗

來源:互聯網
上載者:User

SPFILE導致Oracle資料庫啟動失敗

伺服器斷電重啟後,報Oracle資料庫服務無法啟動,在伺服器上使用AS SYSDBA 登入後串連到空執行個體,使用startup啟動時報‘ORA-24324: 未初始化服務控制代碼,ORA-01041: 內部錯誤, hostdef 副檔名不存在’錯誤。

分步啟動startup nomount ,依然報以上錯誤,判斷為spfile檔案損壞造成。但本機沒有使用pfile備份過spfile,而修改spfile要啟動修改。

解決辦法,手工建立pfile 檔案INITSID.ORA,開啟alert日誌,找到資料庫啟動資訊,把資訊複製粘貼到INITsid.ORA,檔案中,使用pfile啟動資料庫 startup pfile='$ORACLE_HOME/database/INITSID.ORA',啟動成功。

建立spfile, create spfile from pfile.問題解決 !

總結:1 注意用pfile備份spfile 2 修改任何資料庫參數前一定要先使用pfile備份。

又一例SPFILE設定錯誤導致資料庫無法啟動 

相關文章

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.