码迷,mamicode.com
首页 > 数据库 > 详细

oracle11g告警日志报错ORA-04030

时间:2019-01-07 10:32:03      阅读:328      评论:0      收藏:0      [点我收藏+]

标签:location   rac   gate   temp   memory   pack   alert   设置   alter   

问题定位:每天晚上十点的时候运行自动SQL优化的任务时报错内存不足。

alert报错:

Errors in file /u01/app/oracle/diag/rdbms/cpty/cpty/trace/cpty_j003_28000.trc (incident=28312):
ORA-04030: 在尝试分配 432 字节 (kxs-heap-c,kprbalo temp memory) 时进程内存不足
Incident details in: /u01/app/oracle/diag/rdbms/cpty/cpty/incident/incdir_28312/cpty_j003_28000_i28312.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Errors in file /u01/app/oracle/diag/rdbms/cpty/cpty/trace/cpty_j003_28000.trc (incident=28313):
ORA-04030: 在尝试分配 8168 字节 (kxs-heap-c,kdbmal allocation) 时进程内存不足
ORA-04030: 在尝试分配 432 字节 (kxs-heap-c,kprbalo temp memory) 时进程内存不足
Incident details in: /u01/app/oracle/diag/rdbms/cpty/cpty/incident/incdir_28313/cpty_j003_28000_i28313.trc

 

解决:

适当增大pga,给sharepool、largerpool等设置一个最小值。

Mon Jan 07 08:30:49 2019
ALTER SYSTEM SET java_pool_size=‘100M‘ SCOPE=SPFILE;
ALTER SYSTEM SET large_pool_size=‘100M‘ SCOPE=SPFILE;
ALTER SYSTEM SET shared_pool_size=‘500M‘ SCOPE=SPFILE;
Mon Jan 07 08:31:26 2019
ALTER SYSTEM SET db_cache_size=‘1000M‘ SCOPE=SPFILE;
Mon Jan 07 08:32:03 2019
ALTER SYSTEM SET pga_aggregate_target=‘3000M‘ SCOPE=SPFILE;

内存自动管理的问题,建议不适用内存自动管理,设置sga_target=0.

oracle11g告警日志报错ORA-04030

标签:location   rac   gate   temp   memory   pack   alert   设置   alter   

原文地址:https://www.cnblogs.com/Wardenking/p/10231332.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!