My Oracle Support Banner

Error ORA-04031 in the Shared Pool with Huge Allocation in Memory Type "PRTMV" (Doc ID 2628958.1)

Last updated on JULY 22, 2022

Applies to:

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


Received error ORA-04031 in "shared pool" with memory type "PRTMV". For example,

ORA-04031: unable to allocate 4088 bytes of shared memory ("shared pool",...,"PRTMV^####","...")

Top pool memory allocations in shared pool shows as "PRTMV":

select name, round((bytes/1024/1024),0) MB
from v$sgastat where pool='shared pool'
and bytes > 10000000
order by bytes desc


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.