溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

oerr ora 000845解決方法是擴(kuò)大/dev/shm空間

發(fā)布時(shí)間:2020-08-10 00:58:03 來源:網(wǎng)絡(luò) 閱讀:1271 作者:vast2006 欄目:關(guān)系型數(shù)據(jù)庫

打開虛擬機(jī)發(fā)現(xiàn)實(shí)例起不來


[root@wenxi ~]# su - oracle
sq[oracle@wenxi ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Tue Aug 2 14:59:54 2016

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to an idle instance.

SYS@ odb>startup nomout
SP2-0714: invalid combination of STARTUP options


[oracle@wenxi ~]$ oerr ora 000845
00845, 00000, "MEMORY_TARGET not supported on this system"
// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.
// *Action: Refer to documentation for a list of supported operating systems. Or, size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running on the system.


在oracle 11g中新增的內(nèi)存自動管理的參數(shù)MEMORY_TARGET,它能自動調(diào)整SGA和PGA,這個(gè)特性需要用到/dev/shm共享文件系統(tǒng),而且要求 /dev/shm必須大于MEMORY_TARGET,如果/dev/shm比MEMORY_TARGET小就會報(bào)錯(cuò)


[oracle@wenxi ~]$ df -h /dev/shm/
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.5G   72K  1.5G   1% /dev/shm



*.memory_target=1603272704     約為1.6G


解決辦法是加大/dev/shm的空間

[oracle@wenxi ~]$  cat /etc/fstab | grep tmpfs
tmpfs                   /dev/shm                tmpfs   defaults        0 0


[root@wenxi ~]#  mount -o remount,size=2G /dev/shm



[root@wenxi ~]# df -h /dev/shm/
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           2.0G   72K  2.0G   1% /dev/shm


[root@wenxi ~]# vim /etc/fstab


tmpfs                   /dev/shm                tmpfs   defaults,size=2G

正常打開了


SYS@ odb>startup
ORACLE instance started.

Total System Global Area 1603411968 bytes
Fixed Size                  2253664 bytes
Variable Size             989858976 bytes
Database Buffers          603979776 bytes
Redo Buffers                7319552 bytes
Database mounted.
Database opened.




向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI