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 AUGUST 02, 2019
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 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:
- Queries will not rewrite to the mviews if query_rewrite_integrity is set to its default value (enforced), since the data in the mviews becomes stale but they cannot be recompiled
- Continuous attempts to compile the mview result in many ORA-04045: errors during recompilation/revalidation errors concerning the trigger recompilation
- Once the trigger is corrected or disabled, ORA-600: [KGL-heap-size-exceeded] errors begin occurring when loading mviews into the library cache, and high concurrency is observed in the database
Call stack for ORA-600: [KGL-heap-size-exceeded]
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