Fix A Huge Materialized View Log With TRUNCATE In Case Regular DBMS_MVIEW.PURGE Fails
Last updated on JANUARY 18, 2017
Applies to:Oracle Database - Enterprise Edition - Version 22.214.171.124 and later
Information in this document applies to any platform.
A Materialized View Log (MVIEW LOG) may have grown in size to a point where deleting rows may exceed available UNDO space or fail for other reasons.
Such situations can also lead to an unused, but still registered MVIEW to not unregister, but instead cause UNDO space exhaustion.
The goal of this article is to show how such an MVIEW LOG can be truncated properly.
The straight-forward approach to simply TRUNCATE the MVIEW LOG may lead to missed change vectors if the truncate operations occurs concurrently to source table updates (that is to say, tables that the MVIEW references).
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms