Oracle® Database Administrator's Guide 11g Release 2 (11.2) Part Number E25494-02 |
|
|
PDF · Mobi · ePub |
The following sections provide reference information for Oracle Database Resource Manager (the Resource Manager):
Table 27-4 lists the resource plans and Table 27-5 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 27-4 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. |
Table 27-5 Predefined Resource Consumer Groups
Resource Consumer Group | Description |
---|---|
|
Consumer group for batch operations. Referenced by the example plan |
|
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. |
|
Default consumer group for all sessions that do not have an explicit initial consumer group, are not mapped to a consumer group with session-to–consumer group mapping rules, or are mapped to a consumer group that is not in the currently active resource plan.
|
|
Consumer group for system administrators. It is the initial consumer group for all sessions created by user accounts |
Table 27-6 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 27-6 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 27-7 lists views that are associated with the Resource Manager.
Table 27-7 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 |
|
|
|
For each entry in the view |
|
Displays information about active resource consumer groups. This view can be used for tuning. |
|
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. |
|
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