ORA-04030: out of process memory when trying to allocate 64544 bytes (sort subheap,sort key)
来源:互联网 发布:qq抓取软件 编辑:程序博客网 时间:2024/05/17 07:48
生产库迁移到2节点的AIX oracle 10g RAC 上后,应用系统查询出现ORA-04030错误。
排除oracle内部参数的问题sga,pga等 。修改aix 的资源限制后,错误依旧。
/home/oracle$ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) unlimited
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) unlimited
经过两天的排查终于找到错误的原因:修改操作系统参数后,没有重启系统。重启AIX后问题解决。
网上一篇关于AIX资源限制的文章帮助我解决了这个问题。
原文链接地址如下:http://www.cublog.cn/u/7040/showart_124370.html
AIX 用户使用的系统资源限制包括两个概念 --- 硬限制(hard limits) 和软限制(soft limits)。
hard limits自AIX 4.1版本开始引入。hard limits 应由AIX系统管理员设置,只有security组的成员可以将此值增大,
用户本身可以减小此限定值,但是其更改将随着该用户从系统退出而失效。使用下列命令可以查看hard limits的限定值:
ulimit -Ha
soft limits 是AIX核心使用的限制进程对系统资源的使用的上限值。此值可由任何人更改,但不能超出
hard limits值。这里要注意的是只有security组的成员可使更改永久生效,普通用户的更改在其退出系统
后将失效。使用以下命令可以查看soft limits的设置:
下面为系统的soft limits的默认值:
3.2
4.1-4.3
===============
=================
fsize = 2097151
fsize = 2097151
core = 2048
core = 2048
cpu = 3600
cpu = -1
data = 131072
data = 262144
rss = 65536
rss = 65536
stack = 8192
stack = 65536
nofiles = 2000*
nofiles=2000 *
* 该值(nofiles)只能在AIX 4.3.1 或以后的版本中更改。
上述定义作为默认值存放在文件 /etc/security/limits 中,在新用户被加进系统后生效。直接更改此文件中的定义值
需要将系统重新启动以便使更改生效。将相应值该为"-1" 表示不受 soft limits的限制(unlimited)。
下面我们将就各字段逐一进行介绍:
fsize 用户创建的文件大小限制。此定义值(512字节为单位)为该用户可以生成的最大文件的大小。
core 生成的core文件大小的限制(512字节为单位)。
cpu 用户进程可用cpu的限定值(以秒为单位)。普通用户只能将此值减小,root可以将此值增大。这里要注意的
是进程使用CPU的时间取决于AIX Kernel(核心程序)进程调度算法,该值在此仅做参考。
data 进程数据段大小的限定值(以字节为单位)。
stack 进程堆栈段大小的限定值(以字节为单位)。
rss 进程常驻内存段的限定值(以字节为单位)。AIX核心并不参考此限定。
nofiles 进程中打开文件的最大数量。此限定在AIX 4.3.1之前的版本中固定为2000。在AIX 4.3.1及其之后的版本中
可将此值增大至32767。
下面介绍三种修改上述限定值的方法:
1. 编辑文件/etc/security/limits,直接修改各定义值。此更改在系统重新启动后生效。
2. 使用命令ulimit修改默认值。例如:
ulimit -f value
ulimit -c
ulimit -t
ulimit -d
ulimit -s
ulimit -m
ulimit -n
将修改fsize, core, cpu,data, stack, rss和nofiles的soft limit值。
3. 使用命令chuser修改某用户的限定值。例如:
chuser fsize=
chuser core=
chuser cpu=
chuser data=
chuser limit=
chuser rss=
chuser nofiles=
将用户“username”的soft limits改为值“value”。
chuser hard_fsize=
chuser hard_core=
chuser hard_cpu=
chuser hard_data=
chuser hard_limit=
chuser hard_rss=
chuser hard_nofiles=
将用户“username”的hard limits改为值“value”。
- ORA-04030: out of process memory when trying to allocate 64544 bytes (sort subheap,sort key)
- ORA-04030: out of process memory when trying to allocate
- ORACLE ORA-04030之 out of process memory when trying to allocate
- ORA-04031:unable to allocate N bytes of shared memory
- ORA-04031: unable to allocate 4096 bytes of shared memory
- ORA-04031: unable to allocate 2048024 bytes of shared memory
- ECC 6.0 SR3 安装import abap出错ORA-04031: unable to allocate 116 bytes of shared memory和DbSl Trace: ORA-1403 when accessing table SA
- ORA-04031: unable to allocate 4096 bytes of shared memory (解决方案)
- Gerrit 执行 git pull 的时候,提示 fatal: Out of memory, malloc failed (tried to allocate *** bytes)错误的解决方法
- OERR: ORA-4031 "unable to allocate %s bytes of shared memory ("%s","%s","%s")" (文档 ID 4031.1)
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes) 问题解决
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 16 bytes)
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes)
- Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 62 bytes) in
- Allowed memory size of aaaaa bytes exhausted (tried to allocate bbbbb bytes)
- 问题解决Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 38218371 bytes)
- Allowed memory size of 149946368 bytes exhausted (tried to allocate 32640 bytes)
- 递归
- stl之顺序容器学习笔记3
- js弹出div层
- 将eclipse3.2建的工程导入eclipse3.5(Galileo)后,出现 no label provider for org.eclipse.jst.servlet.ui.internal.navigator.com
- SpringAOP对于事物的配置的一种
- ORA-04030: out of process memory when trying to allocate 64544 bytes (sort subheap,sort key)
- Web.config详解
- properties文件写注释
- ASP.NET组件设计之生命周期详解
- oracle删除表中所有的数据
- 装饰模式
- 那一段时间真的好想家!
- oracle使用子查询插入和修改数据
- PHP——运算符和关键字