标题: A Query Fails With ORA-4030 On "kkoutlCreatePh,logdef* : kkoabr" [打印本页] 作者: 刘泽宇 时间: 2025-9-19 19:16 标题: A Query Fails With ORA-4030 On "kkoutlCreatePh,logdef* : kkoabr" 现象:
On Oracle 11.2.0.2, when attempting to run a large SELECT statement the following errors are raised:
ORA-04030: out of process memory when trying to allocate 188152 bytes (kkoutlCreatePh,logdef* : kkoabr)
ORA-04030: out of process memory when trying to allocate 824504 bytes (pga heap,kco buffer)=
From the incident trace the top memory consumption is in kkoutlCreatePh:
原因:
The cause of this problem has been addressed in
Bug 13354720 - ORA-4030 DUE TO HIGH KKOUTLCREATEPH MEMORY ALLOCATION
which has been closed as 'Not a Bug'.
处理方法:
The following workaround is confirmed to prevent the ORA-4030 errors on this memory heap type from occurring:
ALTER SESSION SET "_b_tree_bitmap_plans"=false;
This parameter can also be set at the instance level, in case multiple sessions run into the problem.
Another possible workaround is to set _NO_OR_EXPANSION=TRUE.
Note: This parameter can cause performance issues and needs to be tested first.