Oracle 11g ORA-00845 在Linux 下的解決方案

來源:互聯網
上載者:User

環境:CentOS 6.2 + Oracle 11.2.0.3

問題描述:安裝oracle或配置dataguard時,資料無法啟動,錯誤資訊ORA-00845: MEMORY_TARGET not supported on this system

這個錯誤的主要原因是tmpfs的值小於memory_target的值。

 

[root@dac-vm02 ~]#oerr ora 845

00845, 00000, "MEMORY_TARGET notsupported on this system"

// *Cause: The MEMORY_TARGET parameter wasnot supported on this operating system or /dev/shm was not sized correctly onLinux.

// *Action: Refer to documentation for alist of supported operating systems. Or, size /dev/shm to be at least theSGA_MAX_SIZE on each Oracle instance running on the system.

解決方案:

因此我們只需要將tmpfs的值改大一點就好了。

先來看一下memory_target的值是多大

SQL> show parameter memory_target

NAME TYPE VALUE
------------------------------------ -------------------------------- ------------------------------

memory_target big integer 1296M

SQL>

只需要將tmpfs的值設定大於800M即可,tmpfs的初始值為記憶體的一半

編輯/etc/tmpfs檔案,將tmpfs的值定為3G

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults,size=3G 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

加入紅顯部分即可,接著要將tmpfs重新mount一下

[root@Ginna ~]# umount tmpfs

[root@Ginna ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
28G 11G 16G 40% /
/dev/sda1 99M 22M 72M 24% /boot

[root@Ginna ~]# mount tmpfs

[root@Ginna ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
28G 11G 16G 40% /
/dev/sda1 99M 22M 72M 24% /boot
tmpfs 3.0G 0 3.0G 0% /dev/shm


OK,更改完畢,接著就可以啟動Oracle資料庫了,但是在OEL下,更改tmpfs有點區別,還需要更改/etc/rc.d/rc.sysinit檔案,詳細見

聯繫我們

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