ORA-04030错误再现

一、4月5日更换了风扇后,应用程序又出现ORA-04030的错误:

错误号:-4030  错误信息:ORA-04030: out of process memory when trying to allocate 16776728 bytes (QERHJ hash-joi,QERHJ Hash Table Entries)
select * from etl.t_sys_total_exec_msg  where to_char(begintime,'yyyymmdd')>=to_char(sysdate ,'yyyymmdd')  

 二、根据历史SR回复,处理建议如下:

=== ODM Action Plan ===
Dear customer,

1. Detect whether 3.5GB memory can be allocated by oracle account

1)Save the program as mem.c

+++++++++++++
/* mem.c */
#include <stdio.h>
#include <errno.h>

main()
{
long int i;
i = 1;
for(;;)
{
if (!malloc(1048576))
{
printf("malloc failed with error: %u at iteration %u\n", errno,i);
exit(-1);
}
i++;
printf("allocated %u M of memory\n", i);
if ((i*1048576) >= 3758096384) {
printf ("Leaving...\n");
exit(0);
}
}
}

+++++++++++++

2) compile it with this command

gcc -maix64 -o ./mem ./mem.c

3)run this program:
chmod 777 ./mem
./mem

2. AIX
There should be some limit on running memory of process besides limits.
There is a tool can detect resource limit of a running process on AIX, but can’t obtain it unless contact IBM support.
Please try contacting IBM support if test on mem.c failed with memory allocating.

 

执行后主机连续分配内存正常,修改1机的应用用户limits资源,根据oracle建议需要重启监听和实例。

--停机前做检查点
alter system checkpoint
alter system checkpoint
alter system switch logfile

--清理进程
ps -ef|grep LOCAL=NO|grep -v grep|wc -l
ps -ef|grep LOCAL=NO|grep -v grep|awk '{print $2}'|xargs -i kill -9 {}

--shutdown
srvctl stop listener -n p5701
srvctl stop instance -d bi -i bi1
--start
srvctl start instance -d bi -i bi1

 数据库和监听重启后,应用没有再报此错误。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值