My Oracle Support Banner

ORA-600: [KGL-heap-size-exceeded] And Concurrency Issues After Failure To Compile An Invalid AFTER ALTER ON DATABASE Trigger With Query Rewrite Enabled And Materialized Views (Doc ID 2385185.1)

Last updated on MAY 26, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


In a database that has an AFTER ALTER ON DATABASE trigger enabled, if this trigger becomes invalid and cannot be recompiled, and the database has materialized views (mviews) with queries that rewrite to them, then a number of symptoms can occur:

Call stack for ORA-600: [KGL-heap-size-exceeded]

kglLargeHeapWarning <- kglHeapAllocCbk <- kghalp <- qsmqsmr <- kqlobjlod <- kqllod_new <- kqlCallback <- kqllod <- kglobld <- kglobpn <- kglpim <- kglpin <- kglgob <- qsmqgso <- kkqsLoadKglSummary <- kkqsGetSum <- kkqslsum <- kkqspsum <- kkqsedrv <- kkqsrqb <- kkqsRewriteCurrentQB <- kkqscqb <- kkqsptq <- kkqsptqur <- kkqsrdrv <- kkqdrv <- opiSem <- opiDeferredSem <- opitca <- kksFullTypeCheck <- rpiswu2 <- kksSetBindType <- kksfbc <- opiexe <- opipls <- opiodr <- rpidrus <- skgmstack <- rpidru <- rpiswu2 <- rpidrv



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.