[oracle]Ubuntu下ORA-27102及ORA-00845错误处理
错误信息: ORA-27102: out of memory
00845,00000,"MEMORY_TARGET not supported on this system"
数据库版本: 11.2.0.1.0 操作系统版本: Ubuntu 12.04.5
原由: 想扩大oracle内存使用,在/etc/fstab中已经添加 tmpfs /dev/shm tmpfs defaults,size=40G 0 0 然而oracle还是无法使用到超过20G的内存,开始是报: ORA-00845MEMORY_TARGET not supported on this system
解决: 1. 先解决ORA-00845,由于是ubuntu 12的系统,没有了/dev/shm 处理:
2. 处理ORA-27102,这个错误一般是由于内核参数文件/etc/sysctl.conf设置导致的(大部分情况下,我们都按默认设置来的) 主要是两个参数值kernel.shmall和kernel.shmmax 关于kernel.shmmax 官方解释为:Available physical memory Defines the maximum allowable sizeof one shared memory segment. The SHMMAX setting should be large enoughto hold the entire SGA in one shared memory segment. A low setting cancause creation of multiple shared memory segments which may lead toperformance degradation. 意思就是最大共享内存段,应该设的比SGA要大,我这里就直接设置为kernel.shmmax = 42212254720,大约40多G的样子
kernel.shmall: This parameter sets the total amount of shared memory pages that can be used system wide. Hence,SHMALL should always be at least ceil(shmmax/PAGE_SIZE) 它是设置系统共享内存页的最大数量,shmall*4096应该大于或等于shmmax,那么我这里就要至少设为kernel.shmall = 10305728(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- Vue组件中的data必须是一个function的原因浅析
- cocos2d-x开发完iOS后改为Android遇到的一些问题
- 只有在Postgresql中列不为null时,如何强制执行约束?
- c# – 在.NET中解析最简单的键/值对文件
- vb.net – 无法将xml发送到webservice – 底层连接已关闭.发
- jaxb解析xml遇到的问题
- ruby-on-rails – Rails管理员修改列表/显示视图以添加新的
- Flex Channel.Connect.Failed error NetConnection.Call.Fa
- 13-Ajax链接与Ajax表单的快速对比Demo
- 何时在C中使用指针指针?