My Oracle Support Banner

Create Complex MV Fails With Error ORA-04031 (eating All Memory) In The Shared_pool (Doc ID 2741563.1)

Last updated on JULY 20, 2024

Applies to:

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

Symptoms

NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data from the Oracle sample or built-in schema(s),
Public Documentation delivered with an Oracle database product or other training material. Any similarity to actual environments, actual persons, living or dead,
is purely coincidental and not intended in any manner.

On : 19.7.0.0.0 version, RDBMS


ERROR
-------------
ORA-4031

 

CREATE MATERIALIZED VIEW TEST evaluate using current edition AS
WITH
POPULATION_1 AS (SELECT case when...
...
...
...
...

processes = 960
shared_pool_size = 24G
memory_target = 70G
memory_max_target = 90G

In the trace we have the following:

Chunk 11c0dd9d98 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dd9de0 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dd9e28 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dd9e70 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dd9eb8 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dd9f00 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dd9f48 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dd9f90 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dda000 sz= 96 freeable "qsmkzbm: qbcinf"
Chunk 11c0dda060 sz= 72 freeable "qsmkzbm: qbcinf"
Chunk 11c0dda0a8 sz= 72 freeable "qsmkzbm: qbcinf"

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
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.