Repeated Calls To UTL_HTTP.BEGIN_REQUEST In Same Session Can Result In PGA Memory Leak ORA-04036 (Doc ID 2129466.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

1. You are calling UTL_HTTP.BEGIN_REQUEST repeatedly either in a loop or by application design in same session and its failing with ORA-04036 error.

2. Running same code in anonymous PLSQL block doesn't result in such error.

ORA-4036: PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT

The below program will reproduce the issue:

 

Changes

Moved DB to 12c.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms