Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

21

积分

0

好友

5

主题
1#
发表于 2012-7-3 14:54:23 | 查看: 5002| 回复: 1
SELECT /*+ parallel (a,3) */ ………… from tab …… 查询有时会报ORA-12801: error signaled in parallel query server P206
ORA-04030: out of process memory when trying to allocate 64544 bytes (sort subheap,sort key)

错误,大神帮看看原因。
以下是一些系统信息,没有出问题当时的v$process记录
数据库版本:10.2.0.4.2   系统hp11.31 物理内存 108G
$ ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         1048576
stack(kbytes)        131072
memory(kbytes)       unlimited
coredump(blocks)     4194303


_pga_large_extent_size
1048576
_use_ism_for_pga
TRUE
pga_aggregate_target
13698596864
_pga_max_size
2147483648


NAMEVALUEUNIT
aggregate PGA target parameter13698596864.00 bytes
aggregate PGA auto target10285065216.00 bytes
global memory bound1073741824.00 bytes
total PGA inuse2436659200.00 bytes
total PGA allocated3840036864.00 bytes
maximum PGA allocated17235935232.00 bytes
total freeable PGA memory828768256.00 bytes
process count2967.00
max processes count3465.00
PGA memory freed back to OS48998585008128.00 bytes
total PGA used for auto workareas168194048.00 bytes
maximum PGA used for auto workareas6536990720.00 bytes
total PGA used for manual workareas0.00 bytes
maximum PGA used for manual workareas2940928.00 bytes
over allocation count0.00
bytes processed128192844612608.00 bytes
extra bytes read/written3188870712320.00 bytes
cache hit percentage97.57 percent
recompute count (total)2523203.00

info.zip

2.17 KB, 下载次数: 427

2#
发表于 2012-7-3 22:10:09
1.

这可能是由于并行进程的PGA 分配不合理引起的

2.
10.2的parallel process对继承  PGA参数似乎有问题


workaround:

1. 避免使用 parallel并行方式

2. 调整执行计划 使用索引index full scan、range scan避免实际的排序

3. 使用手动PGA管理绕过该问题:


alter session set workarea_size_policy=MANUAL;
alter session set workarea_size_policy=MANUAL;


alter session set sort_area_size=734003200;
alter session set sort_area_size=734003200;


alter session set "_sort_multiblock_read_count"=128;
alter session set "_sort_multiblock_read_count"=128;

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-15 21:52 , Processed in 0.053163 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569