Resource Manager Enhancements In-12c
Resource Manager Enhancements In-12c
This article describes the enhancements to automatic consumer group switching in Oracle 12c
Release 1 (12.1).
Resource Manager with Container Databases (CDB) and Pluggable Databases (PDB)
Related articles.
Multitenant : Resource Manager with Container Databases (CDB) and Pluggable Databases
(PDB) in Oracle Database 12c Release 1 (12.1)
Managing runaway queries using automatic consumer group switching in resource manager has a
long history.
Oracle 12c introduces a number of changes related to consumer group switching. The
SWITCH_GROUP parameter can now also be set to LOG_ONLY , so the trigger for a potential switch is
logged, but no actual consumer group switch is performed. Plan directives can now include the
SWITCH_IO_LOGICAL and SWITCH_ELAPSED_TIME parameters to trigger a consumer group switch, so the
current list of parameters for the CREATE_PLAN_DIRECTIVE procedure is now as follows.
SWITCH_ESTIMATE : When set to TRUE, Oracle estimates the elapsed time and if necessary
switches the consumer group before the execution begins.
SWITCH_IO_MEGABYTES : The total size of I/O requests that will trigger a switch.
SWITCH_IO_REQS : The number of physical I/O requests that will trigger a switch.
SWITCH_FOR_CALL : When set to TRUE, the switch is based on each top-level call. Once the call
is complete, the consumer groups are switched back to original settings. When set to FALSE
the switch is at session level and the new consumer group will remain until the session ends.
SWITCH_IO_LOGICAL : The number of logical I/O requests that will trigger a switch.
NULL : Automatic consumer group switching is not enabled for this plan directive.
CANCEL_SQL : If a threshold is reached, the current call is cancelled, but the session is not
killed.
LOG_ONLY : If a threshold is reached, the event is logged in SQL Monitor, but nothing happens
to the call or session.
For all the switch-related parameters, there is an equivalent NEW_* parameter for altering the
values using the UPDATE_PLAN_DIRECTIVE procedure.
V$SQL_MONITOR
Databases (PDB)
In a multitennent environment resource manager performs two separate tasks. At the CDB level it
controls the resources allocated to each PDB, allowing you to prioritise some PDBs over others. At
the PDB level it controls the resources allocated to each session connected to the PDB, allowing
you to prioritise some sessions over others, just as it does in pre-12c instances.
Multitenant : Resource Manager with Container Databases (CDB) and Pluggable Databases
(PDB) in Oracle Database 12c Release 1 (12.1)
CREATE_PLAN_DIRECTIVE
V$SQL_MONITOR
Multitenant : Resource Manager with Container Databases (CDB) and Pluggable Databases
(PDB) in Oracle Database 12c Release 1 (12.1)
Hope this helps. Regards Tim...