ORA-00600 [qkswcWithQbcRefdByMain4] when Create MV "WITH" clause

(Doc ID 2232872.1)

Last updated on FEBRUARY 14, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2 to 12.1]
Information in this document applies to any platform.


1. Alert log shows the error:

ORA-00600: internal error code, arguments: [qkswcWithQbcRefdByMain4], [], [], [], [], [], [], [], [], [], [], []

2. Call stack similar to:

qkswcWithQbcRefdByMain <- qkswcProcessWithListRefs <- qkswcChkListtRefs <- qkswcDriver <- kkmdrvend <- kkmdrv <- opiSem <- opiprs <- kksParseChildCursor <- rpiswu2 <- kksLoadChild <- kxsGetRuntimeLock

3. Failing  Statement is the definition of a materialized view containing a with statement:

create materialized view mv1 as
w1 as (select * from emp),
w2 as (select * from w1),
w3 as (select * from w1)
select * from w3;

Here with clause element w1 is referenced in with clause element w2, but w2 is not used in main query block.




Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms