Oracle PRVTEMX_MEMORY
Version 18.3.0.1

General Information
Library Note Morgan's Library Page Header
For how many years have you been working with physical servers? Software Defined Servers can improve performance and security while lowering complexity and cost. With Software Defined Servers you define servers with an optimum configuration to your environment rather than being memory starved and cpu over-provisioned. Find out how you can improve your computing environment with TidalScale. your friends.
Purpose Produces the PL/SQL and SQL required to create a memory report.
AUTHID CURRENT_USER
Dependencies
DBMS_REPORT PRVT_AWR_VIEWER V$SYSTEM_PARAMETER
DBMS_SYS_ERROR PRVT_REPORT_TAGS WRI$_REPT_MEMORY
DUAL V$OSSTAT XMLTYPE
Documented No
First Available 12.1.0.1
Security Model Owned by SYS with no privileges granted
Source {ORACLE_HOME}/rdbms/admin/prvsemx_memory.plb
 
REPORT_MEMORY_XML
Returns, in XML format, PL/SQL and SQL for obtaining a memory report prvtemx_memory.report_memory_xml(
p_level      IN VARCHAR2,
p_inst_id    IN NUMBER,
p_top_n      IN NUMBER,
p_show_sql   IN NUMBER,
p_reptab     IN NUMBER,
p_start_time IN DATE,
p_end_time   IN DATE)
RETURN XMLTYPE;
conn / as sysdba

set trimspool on
set head off
set pagesize 0
set linesize 201
spool /home/oracle/testing.xml

SELECT prvtemx_memory.report_memory_xml('BASIC', 1, 5, 1, 1, SYSDATE-1, SYSDATE)
FROM dual;

SELECT prvtemx_memory.report_memory_xml('TYPICAL', 1, 5, 1, 1, SYSDATE-1, SYSDATE)
FROM dual;

SELECT prvtemx_memory.report_memory_xml('ALL', 1, 5, 1, 1, SYSDATE-1, SYSDATE)
FROM dual;

-- manually parsing the XML and running the statements produced by this function generates the following output which has been formatted for display:
RVTEMX_MEMORY.REPORT_MEMORY_XML('ALL',1,5,1,1,SYSDATE-1,SYSDATE)
-----------------------------------------------------------------
<memory memmgmt="asmm" inst_cnt="1">
  <comp name="Memory Management">manual</comp>
  <comp name="SGA Memory Management">auto</comp>
  <comp name="PGA Memory Management">auto</comp>
  <comp name="sga_target" class="sga">2400</comp>
  <comp name="pga_aggregate_limit" class="pga">2048</comp>
  <comp name="pga_aggregate_target" class="pga">800</comp>
</memory>

Related Topics
Built-in Functions
Built-in Packages
DBMS_REPORT
PRVTEMX_ADMIN
PRVTEMX_CELL
PRVTEMX_DBHOME
PRVTEMX_PERF
What's New In 12cR2
What's New In 18cR3

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2017 Daniel A. Morgan All Rights Reserved