解决ORA-04030报错
2017-01-30 19:40
585 查看
ORA-04030: out of process memory when trying to allocate 1049100 bytes (KSFQ heap,KSFQ Buffers)
1. 官方的描述如下
ORA-04030 out of process memory when trying to allocate string bytes (string,string)
Cause: Operating system process private memory has been exhausted.
Action: See the database administrator or operating system administrator to increase process memory quota. There may be a bug in the application that causes excessive allocations of process memory space.
这使我想起我当初在安装数据库时分配的内存可以过大,下图是我安装的配置:
安装后的Oracle的内存分配如下图:(large_pool_size原来是0,后来修改到800M)
通过sql命令查看得知sga_target=1800M,pga_aggregate_target=600和我设置的一致,对于Share Memory Management设为automatic,oracle的说法是oracle会自己自行管理,看来是没有管理好,还得手动分配的好。
2. 网上搜的信息
现象:ORA-04030: 在尝试分配...字节 (hash-join subh,kllcqas:kllsltba) 时进程内存不足。
ORA-04030:out of process memory when trying to allocate string bytes
ORA-04030的出现原因及解决方法:
ORA-04030出现的基本都是过多的使用memory造成的
Oracle process使用的内存数量是有一定限制的:
A. 对于32 BIT系统,有SGA 1.7G限制
B. 某些OS系统本身也有一些内存参数限制
--运行 ulimit 看看
C. OS系统本身物理内存+Swap的限制
现在我们应该检查DB使用的SGA + PGA是否超过上面的限制。
SGA 包括 db_cache,shared_pool,large_pool,java_pool session的PGA包括sort_area_size/Hash_area_size/*_area_size 或者 pga_aggregate_target
还有执行的CODE以及一些data也会占用空间。
然后再根据情况降低里面的某些值了,比如db_cache,sort_area_size等等。
假如是OS系统的某Limited造成的,大家可以考虑放开限制man ulimit来观察如何放开限制……
根据以上的2点,确定需要调整内存大小小于1.7G。
1. 设置rman从SGA取内存
alter system set dbwr_io_slaves=2 scope=spfile;
alter system set backup_tape_io_slaves=true scope=spfile;
2. 调整SGA大小
alter system set sga_target=1200m;
alter system set sga_max_size=1200m scope=spfile;
3. 设置使用内存最大大小
alter system set large_pool_size=80m;
4. 重启oracle service。
5. 查看sga,pga,pool的大小。
1. 官方的描述如下
ORA-04030 out of process memory when trying to allocate string bytes (string,string)
Cause: Operating system process private memory has been exhausted.
Action: See the database administrator or operating system administrator to increase process memory quota. There may be a bug in the application that causes excessive allocations of process memory space.
这使我想起我当初在安装数据库时分配的内存可以过大,下图是我安装的配置:
安装后的Oracle的内存分配如下图:(large_pool_size原来是0,后来修改到800M)
通过sql命令查看得知sga_target=1800M,pga_aggregate_target=600和我设置的一致,对于Share Memory Management设为automatic,oracle的说法是oracle会自己自行管理,看来是没有管理好,还得手动分配的好。
2. 网上搜的信息
现象:ORA-04030: 在尝试分配...字节 (hash-join subh,kllcqas:kllsltba) 时进程内存不足。
ORA-04030:out of process memory when trying to allocate string bytes
ORA-04030的出现原因及解决方法:
ORA-04030出现的基本都是过多的使用memory造成的
Oracle process使用的内存数量是有一定限制的:
A. 对于32 BIT系统,有SGA 1.7G限制
B. 某些OS系统本身也有一些内存参数限制
--运行 ulimit 看看
C. OS系统本身物理内存+Swap的限制
现在我们应该检查DB使用的SGA + PGA是否超过上面的限制。
SGA 包括 db_cache,shared_pool,large_pool,java_pool session的PGA包括sort_area_size/Hash_area_size/*_area_size 或者 pga_aggregate_target
还有执行的CODE以及一些data也会占用空间。
然后再根据情况降低里面的某些值了,比如db_cache,sort_area_size等等。
假如是OS系统的某Limited造成的,大家可以考虑放开限制man ulimit来观察如何放开限制……
根据以上的2点,确定需要调整内存大小小于1.7G。
1. 设置rman从SGA取内存
alter system set dbwr_io_slaves=2 scope=spfile;
alter system set backup_tape_io_slaves=true scope=spfile;
2. 调整SGA大小
alter system set sga_target=1200m;
alter system set sga_max_size=1200m scope=spfile;
3. 设置使用内存最大大小
alter system set large_pool_size=80m;
4. 重启oracle service。
5. 查看sga,pga,pool的大小。
相关文章推荐
- 不要62
- C#字符串的操作
- ASP.NET MVC 5 中使用Frameset中Session、Cookie值消失的问题完整解决方案
- Asp.net mvc 知多少(四)
- 美素数
- 中心极限定理
- P1083 借教室
- [Treap套权值线段树 线段树分裂与合并] BZOJ 4552 [Tjoi2016&Heoi2016]排序
- P1553 数字反转(升级版)(洛谷)
- uva 11045 My T-shirt suits me
- Android studio里搜索不到Genymotion,哪么如何正确的解决这问题尼!!!
- 素数判定
- 素数判定
- 重新复习C语言 大多数还是语法、算法的问题
- c3p0 配置文件 各个属性的意义
- 44、判断是否符合指定格式
- 字符串面试题(四)— 判断一个字符串是否为另外一个字符串旋转之后的字符串
- [后缀自动机 线段树] BZOJ 1396 识别子串 & BZOJ 2865 字符串识别
- 金圣叹批评版水浒传上 - 笔记
- nodejs中require的路径是一个文件夹时发生了什么