Oracle® Database Administrator's Guide 11g Release 2 (11.2) Part Number E10595-04 |
|
|
View PDF |
The following sections provide reference information for Oracle Database Resource Manager (the Resource Manager):
Table 26-3 lists the resource plans and Table 26-4 lists the resource consumer groups that are predefined in each Oracle database. You can verify these by querying the views DBA_RSRC_PLANS
and DBA_RSRC_CONSUMER_GROUPS
.
The following query displays the CPU allocations in the example plan DSS_PLAN
:
SELECT group_or_subplan, mgmt_p1, mgmt_p2, mgmt_p3, mgmt_p4 FROM dba_rsrc_plan_directives WHERE plan = 'DSS_PLAN'; GROUP_OR_SUBPLAN MGMT_P1 MGMT_P2 MGMT_P3 MGMT_P4 ------------------------------ ---------- ---------- ---------- ---------- SYS_GROUP 75 0 0 0 DSS_CRITICAL_GROUP 0 75 0 0 DSS_GROUP 0 0 75 0 ETL_GROUP 0 0 0 45 BATCH_GROUP 0 0 0 45 ORA$DIAGNOSTICS 0 5 0 0 ORA$AUTOTASK_SUB_PLAN 0 5 0 0 OTHER_GROUPS 0 0 0 10
Table 26-3 Predefined Resource Plans
Resource Plan | Description |
---|---|
|
Default plan for maintenance windows. See "About Resource Allocations for Automated Maintenance Tasks" for details of this plan. Because maintenance windows are regular Oracle Scheduler windows, you can change the resource plan associated with them, if desired. If you do change a maintenance window resource plan, ensure that you include the subplan |
|
Basic default plan that prioritizes |
|
Example plan for a data warehouse that prioritizes critical DSS queries over non-critical DSS queries and ETL operations. |
|
Example plan for a data warehouse that prioritizes ETL operations over DSS queries. |
|
For disabling the resource manager. For internal use only. |
|
For quiescing the database. This plan cannot be activated directly. To activate, use the |
|
Example plan for a mixed workload that prioritizes interactive operations over batch operations. See "An Oracle-Supplied Mixed Workload Plan" for details. |
|
Default sub-plan for high-priority, automated maintenance tasks. This sub-plan is referenced by |
|
Default sub-plan for automated maintenance tasks. A directive to this sub-plan should be included in every top-level plan to manage the resources consumed by the automated maintenance tasks. This plan is a sub-plan of |
Table 26-4 Predefined Resource Consumer Groups
Resource Consumer Group | Description |
---|---|
|
Consumer group for batch operations. Referenced by the example plan |
|
Initial consumer group for all sessions started by user accounts other than |
|
Consumer group for critical DSS queries. Referenced by the example plans |
|
Consumer group for non-critical DSS queries. Referenced by the example plans |
|
Consumer group for ETL jobs. Referenced by the example plans |
|
Consumer group for interactive, OLTP operations. Referenced by the example plan |
|
Consumer group for low-priority sessions. |
|
Consumer group used by database processes that create diagnostic dumps when critical errors occur. |
|
Reserved for future use. Included in |
|
Consumer group for medium-priority maintenance tasks. |
|
Consumer group for Automatic Segment Advisor maintenance task. Included in |
|
Consumer group for Automatic SQL Tuning Advisor maintenance task. Included in |
|
Consumer group for optimizer statistics gathering maintenance task. Included in |
|
Consumer group for urgent maintenance tasks. |
|
Consumer group that applies collectively to all sessions that belong to a consumer group that is not part of the currently active plan, including sessions that belong to |
|
Consumer group for system administrators. It is the initial consumer group for all sessions created by user accounts |
Table 26-5 summarizes the consumer group mapping rules that are predefined in Oracle Database. You can verify these rules by querying the view DBA_RSRC_GROUP_MAPPINGS
. You can use the DBMS_RESOURCE_MANAGER
.SET_CONSUMER_GROUP_MAPPING
procedure to modify or delete any of these mapping rules.
Table 26-5 Predefined Consumer Group Mapping Rules
Attribute | Value | Mapped Consumer Group | Notes |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
The session is running a backup operation with RMAN. The session is automatically switched to |
|
|
|
The session is running a copy operation with RMAN. The session is automatically switched to |
|
|
|
The session is performing a data load operation with Data Pump. The session is automatically switched to |
Table 26-6 lists views that are associated with the Resource Manager.
Table 26-6 Resource Manager Data Dictionary Views
View | Description |
---|---|
|
|
|
Lists all resource consumer groups that exist in the database. |
|
|
|
Lists all resource plan directives that exist in the database. |
|
Lists all resource plans that exist in the database. |
|
Lists all of the various mapping pairs for all of the session attributes. |
|
Lists the current mapping priority of each attribute. |
|
Displays historical information about resource plan activation. This view contains AWR snapshots of |
|
Displays historical statistical information about consumer groups. This view contains AWR snapshots of |
|
|
|
Displays all available active session pool resource allocation methods. |
|
Displays all available parallel degree limit resource allocation methods. |
|
Displays all available queuing resource allocation methods. |
|
For each entry in the view |
|
Displays information about active resource consumer groups. This view can be used for tuning. |
|
Displays all available CPU resource allocation methods for resource consumer groups. |
|
Displays a history of resources consumed and cumulative CPU wait time (due to resource management) per consumer group for the past minute. |
|
Displays a history of resources consumed and cumulative CPU wait time (due to resource management) per consumer group for the past hour on a minute-by-minute basis. If a new resource plan is enabled, the history is cleared. |
|
Displays the names of all currently active resource plans. |
|
Displays all available CPU resource allocation methods for resource plans. |
|
Shows when Resource Manager plans were enabled or disabled on the instance. It helps you understand how resources were shared among the consumer groups over time. |
|
Displays Resource Manager statistics for each session. Shows how the session has been affected by the Resource Manager. Can be used for tuning. |
|
Lists session information for each current session. Specifically, lists the name of the resource consumer group of each current session. |
See Also:
Oracle Database Reference for detailed information about the contents of each of these views