My Oracle Support Banner

How to Monitor Process Memory Usage on Pluggable Databases (Doc ID 1516202.1)

Last updated on JUNE 13, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Goal

The purpose of this note is to demonstrate how to determine process memory usage of pluggable databases.

On RAC configuration, the scripts should be run on each instance since only V$ views are used to provide a accurate memory usage for individual database instance.

The scripts must be run in SQL*Plus session since specific SQL*Plus functions are used.

Scripts must be run as sysdba or database user account having access to CDB*, DBA* and V$ tables.

Example scripts and their output are provided to demonstrate that purpose.

A file containing all sql is included as an attachment as well as example spool output.

 

This sample code is provided for educational purposes only and not supported by Oracle Support Services. It has been tested internally, however, and works as documented. We do not guarantee that it will work for you, so be sure to test it in your environment before relying on it.

Proofread this sample code before using it! Due to the differences in the way text editors, e-mail packages and operating systems handle text formatting (spaces, tabs and carriage returns), this sample code may not be in an executable state when you first receive it. Check over the sample code to ensure that errors of this type are corrected.

 

Solution

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