【ORACLE】ORA-27102: out of memory報錯的處理

來源:互聯網
上載者:User

標籤:size   data-   設定   sys   ted   echo   cat   getconf   lin   

****************************************************************************原文:blog.csdn.net/clark_xu  徐長亮的專欄************************************************************************

問題描寫敘述:

原先SGA 4G。PGA 2G。

alter system set sga_max_size=30G scope=spfile;

alter system set sga_target=30G scope=spfile;

之後,

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
再次啟動

SQL> startup
ORA-27102: out of memory
Linux-ia64 Error: 28: No space left on device

 

解決方案:

(1)linux下 getconf PAGE_SIZE
                         16384=8K 

          表示虛擬記憶體的一個頁面大小為8K

 (2)查看cat /proc/sys/kernel/shmall

           524288

          表示同意共用的記憶體頁最大能夠是  524288個頁面。

  (3)算出能夠共用的頁面為:

            524288*(16384/1024)/1024/1024=8G

           之前設定SGA+PGA=6G < 8G 所以沒有報錯。改動sga=30G之後。啟動執行個體才報ORA-27102: out of memory
Linux-ia64 Error: 28: No space left on device

   (4)改動可共用記憶體為128G

          128*1024*1024/8K=8388608

          在linux下:echo "8388608" > /proc/sys/kernel/shmall

    (5)再次startup,執行個體能夠啟動了

【ORACLE】ORA-27102: out of memory報錯的處理

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.