My Oracle Support Banner

Script To Monitor PDB Session PGA and UGA Current And Maximum Usage Over Time (Doc ID 2546534.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 12.1 to 12.2]
Information in this document applies to any platform.


This script is intended to provide trend analysis information in the form of reports which would be used by the DBA to identify any sessions that over time use significantly more PGA and/or UGA memory than their peers for a specific PDB by generating a snapshot report of the current values of PGA and UGA memory usage per RDBMS session as well as the maximum values of PGA and UGA memory usage since the time when each of the current RDBMS sessions started. For re-occurring ORA-04030 errors or ORA-04036 errors this script can also be a useful diagnostic tool to find out what RDBMS sessions (if any) use significantly more PGA than their peer PDB sessions.


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
 Sample Code
 Sample Output

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.