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

來源:互聯網
上載者:User

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

問題描述:

原先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,執行個體可以啟動了

Linux-6-64下安裝Oracle 12C筆記

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

相關文章

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.