博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ORA-00845: MEMORY_TARGET not supported on this system
阅读量:6328 次
发布时间:2019-06-22

本文共 2584 字,大约阅读时间需要 8 分钟。

There is always something that gets in the way. One problem I regularly stumble upon when installing a new Oracle 11g R2 installation is the following error when I try to start the database:

SQL> startup nomount;ORA-00845: MEMORY_TARGET not supported on this system

So I keep this post mainly for my own reference when installing a new database on a Linux system.

This error comes up because you tried to use the Automatic Memory Management (AMM)  of Oracle 11g R2. Well done, but it seems that your shared memory filesystem (shmfs) is not big enough. So let’s look at the steps necessary to enlarge your shared memory filesystem to avoid the error above.

First of all, login as root and have a look at the filesystem:

[root@oracle-em oracle]# df -hFilesystem            Size  Used Avail Use% Mounted on/dev/mapper/vg_oracleem-lv_root                       93G   19G   69G  22% /tmpfs                 5.9G  112K  5.9G   1% /dev/shm/dev/sda1             485M   99M  362M  22% /boot

So we can see that tmpfs has a size of 6GB. We can change the size of that filesystem by issuing the following command (where “12g” is the size I want for my MEMORY_TARGET):

[root@oracle-em oracle]# mount -t tmpfs shmfs -o size=12g /dev/shm

This command (re)mounts the shmfs filesystem (check  for more information about shmfs) with the option “size=12g“.

The shared memory file system should be big enough to accommodate the MEMORY_TARGET and MEMORY_MAX_TARGET values, or Oracle will throw the ORA-00845 error. Note that when changing something with the mount command, the changes are not permanent.

To make the change persistent, edit your /etc/fstab file to include the option you specified above:

[root@oracle-em ~]# cat /etc/fstab[..]tmpfs                   /dev/shm                tmpfs   size=12g        0 0[..]

In my case, I replaced the “defaults” option with the size=12g option. After saving the file, the changes should be permanent. Now back to Oracle. Let’s see if we can start the database now…

SQL> startup nomountORACLE instance started.Total System Global Area 1.1758E+10 bytesFixed Size                  2239056 bytesVariable Size            5939135920 bytesDatabase Buffers         5804916736 bytesRedo Buffers               12128256 bytes

Bingo! Now go and enjoy your automatically managed memory configuration!

 

Comments

Sorry, because of spam and legal reasons, comments are disabled. If you want to get in touch with me, please do so via e -mail: simon@krenger.ch

转载于:https://www.cnblogs.com/Dennis-mi/articles/5210050.html

你可能感兴趣的文章
我的友情链接
查看>>
OSPF状态机
查看>>
开源网络备份软件 bacula 的安装、配置和运行
查看>>
ospf单域配置
查看>>
PDF转换器注册码(支持所有版本)
查看>>
Netflix Archaius 分布式配置管理依赖构件
查看>>
07_apply rolling updates to a service
查看>>
HBase性能优化
查看>>
Windows操作系统DOS命令
查看>>
Confluence 6 使用 CSS 样式化 Confluence 的介绍
查看>>
css多栏布局探讨1
查看>>
记一次地址库修改导致的连锁反应
查看>>
WebSocket的原理,以及和Http的关系
查看>>
6.1 压缩打包介绍 6.2 gzip压缩工具 6.3 bzip2压缩工具 6.4 xz压缩工具
查看>>
LAMP环境搭建(centos6.9+apache2.4+mysql5.7+php7.1)
查看>>
[Linux学习笔记] Linux常用命令 - 权限管理命令
查看>>
SpringBoot-Spring Data Jpa使用(一)
查看>>
CentOS5 MySQL优化
查看>>
在Codeigniter框架中使用NuSOAP
查看>>
java IO
查看>>