oracle初始參數設定錯誤導致資料庫無法啟動報ORA-00821的解決方案

來源:互聯網
上載者:User

標籤:分享圖片   nbsp   使用   sys   sql   from   spec   10g   rac   

今天為了修改資料庫配置,將sga_max_size設定為了20G,但是sga_target沒改,仍然為10G結果改完後重啟資料庫就啟動不了了,報ORA-00821錯誤ORA-00821: Specified value of sga_target *** is too small, needs to be at least ***而直接alter system set sga_target=20800M是不行的,因為資料庫已經啟動不了了,根本沒法直接修改資料庫參數,所以只能手動修改spfile檔案來修改啟動參數瞭解決方法如下:1.進入$oracle_home\bin目錄cd D:\Oracle\App\product\11.2.0\dbhome_1\BIN 2.執行sqlplus / as sysdba 3.執行create pfile from spfile,根據spfile檔案產生pfile檔案,此處為D:\Oracle\App\product\11.2.0\dbhome_1\database\INITc2.ORA 4.編輯INITc2.ORA檔案,將其中的sga_target賦值改為和sga_max_size一致 5.執行create spfile from pfile;,將修改過的檔案轉回去 6.使用startup啟動資料庫搞定

oracle初始參數設定錯誤導致資料庫無法啟動報ORA-00821的解決方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.