oracle啟動報錯ORA-00845: MEMORY_TARGET not supported on this system解決辦法,memorytarget

來源:互聯網
上載者:User

oracle啟動報錯ORA-00845: MEMORY_TARGET not supported on this system解決辦法,memorytarget

oracle啟動報錯ORA-00845: MEMORY_TARGET not supported on this system

原因可能:ORACLE MEMORY_TARGET參數設定超過了oracle伺服器本身記憶體、或超過了現在伺服器空閑記憶體(就是oracle啟動時無法擷取設定的記憶體)

 

eg:

oracle version:11gR2

OS version:RedHat 6.4企業版

伺服器:虛擬機器

 

分析步驟:

1.查看當前 MEMORY_TARGET參數的值為*.memory_target=408944640,大致為390M;(可以通過spfile查看)

2.查看當前系統的記憶體,大概為200M

     grep -i memtotal /proc/meminfo
     MemTotal:         236376 kB

 

 

問題確認:

確認為oracle MEMORY_TARGET參數設定SGA大於作業系統的空閑記憶體

 

解決:

 修改MEMORY_TARGET的值為合適的範圍之內(如果是正式環境切oracle需要設定MEMORY_TARGET的記憶體,需要增加伺服器記憶體,本初不討論)

 

 1.備份現有spfile檔案


 cp spfilestudy.ora spfilestudy.ora.bak


 2.使用spfile建立pfile(spfile為二進位文本,不可直接修改),修改pfile後,重建spfile


  SQL> create pfile from spfile;


 File created.

 

        修改pfile參數*.memory_target=104857600

 

        SQL> create spfile from pfile;


         File created.

 

         確認後,啟動oracle


 

 

 

相關文章

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.