ACE Director Alum Daniel Morgan, founder of Morgan's Library, is scheduling
complimentary technical Workshops on Database Security for the first 30
Oracle Database customers located anywhere in North America, EMEA, LATAM, or
APAC that send an email to
asra_us@oracle.com. Request a Workshop for
your organization today.
Purpose
Workload Load Management related to resource manager the package appears to have picked up substantial new functionality due to the need to balance PDBs
AUTHID
DEFINER
Constants
See Exceptions section below
Data Types
CREATE OR REPLACE TYPE wlm_capability_object FORCE AS OBJECT (
capability VARCHAR2(30),
value VARCHAR2(30));
/
CREATE OR REPLACE TYPE wlm_capability_array AS
VARRAY(50) OF wlm_capability_object;
Dependencies
DBA_CDB_RSRC_PLANS
DBMS_WLM_LIB
V$OSSTAT
DBA_CDB_RSRC_PLAN_DIRECTIVES
DUAL
V$PDBS
DBA_RSRC_GROUP_MAPPINGS
PLITBLM
V$RSRC_PLAN
DBMS_ASSERT
RESOURCE_PLAN$
WLM_CAPABILITY_ARRAY
DBMS_RESOURCE_MANAGER
RESOURCE_PLAN_DIRECTIVES$
WLM_CAPABILITY_OBJECT
DBMS_RMIN
V$DATABASE
X$KSPPCV
DBMS_SQL
V$INSTANCE
X$KSPPI
DBMS_SYS_ERROR
V$LICENSE
X$KSPPSV
DBMS_UTILITY
Documented
No
Exceptions
Error Code
Reason
ORA-02097
Parameter cannot be modified because specified value is invalid
SELECT dbms_wlm.check_rm_plan_l
FROM dual;
SELECT dbms_wlm.check_rm_plan_l
*
ERROR at line 1:
ORA-44823: The QoS Resource Manager plan is not in use
ORA-06512: at "SYS.DBMS_WLM", line 1214
ORA-06512: at "SYS.DBMS_WLM", line 770
dbms_wlm.get_capabilities(cap_version OUT NUMBER)
RETURN wlm_capability_array;
set serveroutput on
DECLARE
capv NUMBER;
cap_t sys.wlm_capability_array;
BEGIN
cap_t := dbms_wlm.get_capabilities(capv);
dbms_output.put_line(capv);
FOR i IN 1..cap_t.count LOOP
dbms_output.put_line('--------------------');
dbms_output.put_line(cap_t(i).capability);
dbms_output.put_line(cap_t(i).value);
END LOOP;
END;
/
dbms_wlm.update_cg_mappings(
attributes IN dbms_rmin.upcgm_table_type,
attribute_values IN dbms_rmin.upcgm_table_type,
consumer_groups IN dbms_rmin.upcgm_table_type);