My Oracle Support Banner

ORA-600 [QCTCTE1] On Query Rewrite Using Nested Mviews and Window Operation in Execution Plan (Doc ID 733783.1)

Last updated on FEBRUARY 01, 2022

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


A query rewrite using nested materialized views and "windowing" sum() over () functions generated an ORA-600 [QCTCTE1] error in   The first mview was a filter on a standard view.   The second mview was based on the first mview and contained the sum() over() functions.

The following shows the use of the sum() over() "windowing" functions in the second mview:

A testcase was provided and tested on other versions of the database, as well:

In, the ORA-600 [QCTCTE1] call stack was as follows:

qctcte <- xtyqbcb <- qctcpqb <- qctcpqb <- opitca <- kksLoadChild <- kxsGetRuntimeLock <- kksfbc <- kkspsc0 <- kksParseCursor <- opiosq0 <- kpooprx <- kpoal8 <- opiodr <- kpoodr <- upirtrc <- kpurcsc <- kpuexecv8 <- kpuexec <- OCIStmtExecute <- qksanAnalyzeSql <- 012 <- kkqsxt <- spefcmpa <- spefmccallstd




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.