My Oracle Support Banner

ORA-600 [KKQSPROCESSDMAPDISJ:BADPREP] on Select With MView Involved (Doc ID 801273.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Server - Enterprise Edition - Version: to - Release: 10.2 to 11.1
Information in this document applies to any platform.


Select statement with mview involved fails with:
ORA-00600: internal error code, arguments: [kkqsProcessDMapDisj:badprep], [], [], [], [], [], [], []

The example below shows when the error can occur:

alter system set query_rewrite_enabled=true;
grant create materialized view to scott;
conn scott/tiger

create table t (c1 varchar2(63) ,c2 number );

create materialized view mv enable query rewrite
select to_char(null, '0') as h1,c1 from t
where c2 not in (4)
group by to_char(null, '0'), c1 ;

-- this query should throw the ORA-00600 [kkqsProcessDMapDisj:badprep] error:
select 0 as layer, count(*) as n
from t where c2 not in (4)
order by 1,2

The ORA-600 error trace file shows:

*** 2007-08-01 13:50:38.188
ksedmp: internal or fatal error
ORA-00600: internal error code, arguments: [kkqsProcessDMapDisj:badprep], [], [], [], [], [], [], []
Current SQL statement for this session:
select 0 as layer, count(*) as n
from t where c2 not in (4)
order by 1,2
----- Call Stack Trace -----
ksedmp kgerinv kgeasnmierr kkqsProcessDMapDisj kkqsPickBestMMVPlan kkqsMMVGeneralContD
kkqsMultiMVContDrv kkqsedrv kkqsrqb kkqsrmav kkqsRewriteCurrentQ kkqscqb kkqsptq kkqsptqur
kkqsrdrv kkqdrv opiSem opiDeferredSem opitca kksFullTypeCheck rpiswu2 kksLoadChild
kxsGetRuntimeLock kksfbc kkspsc0 kksParseCursor opiosq0 kpooprx kpoal8 opiodr ttcpip opitsk
opiino opiodr opidrv sou2o opimai_real main start


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.