温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

oerr ora 000845解决方法是扩大/dev/shm空间

发布时间:2020-08-10 00:58:03 来源:网络 阅读:1270 作者:vast2006 栏目:关系型数据库

打开虚拟机发现实例起不来


[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中新增的内存自动管理的参数MEMORY_TARGET,它能自动调整SGA和PGA,这个特性需要用到/dev/shm共享文件系统,而且要求 /dev/shm必须大于MEMORY_TARGET,如果/dev/shm比MEMORY_TARGET小就会报错


[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问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI