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 28, 2019

Applies to:

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

Symptoms

A query rewrite using nested materialized views and "windowing" sum() over () functions generated an ORA-600 [QCTCTE1] error in 10.2.0.4.   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 10.2.0.4, 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

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References

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