My Oracle Support Banner

How to Monitor SGA Memory on Pluggable Database (Doc ID 1516229.1)

Last updated on FEBRUARY 01, 2022

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Information in this document applies to any platform.


NOTE: In the images and/or the document content below, the user information and data used represents fictitious data. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

Goal

This note describes how to monitor SGA memory usage on pluggable databases using queries against database views.

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.