Which DBMS_RESOURCE_MANAGER procedure prioritizes consumer-group mappings?

Which DBMS_RESOURCE_MANAGER procedure prioritizes consumer-group mappings?

Which DBMS_RESOURCE_MANAGER procedure prioritizes consumer-group mappings?

A.
CREATE_MAPPING_PRIORITY

B.
SET_MAPPING_PRIORITY

C.
SET_MAPPING_ORDER

D.
PRIORITIZE_MAPPING_ORDER

E.
This functionality is not available through the DBMS_RESOURCE_MANAGER package.



Leave a Reply 5

Your email address will not be published. Required fields are marked *


andreas

andreas

Automatically Assigning Resource Consumer Groups to Sessions

You can configure the Database Resource Manager to automatically assign consumer groups to sessions by providing mappings between session attributes and consumer groups. Further, you can prioritize the mappings so as to indicate which mapping has precedence in case of conflicts.

There are two types of session attributes: login attributes and runtime attributes. The login attributes are meaningful only at session login time, when the Database Resource Manager determines the initial consumer group of the session. In contrast, a session that has already logged in can later be reassigned to another consumer group based on its run-time attributes.

You use the SET_CONSUMER_GROUP_MAPPING and SET_CONSUMER_GROUP_MAPPING_PRI procedures to configure the automatic assigning of sessions to consumer groups. You must use a pending area for these procedures.

For example, the following statement causes user scott to map to the dev_group consumer group every time he logs in:

BEGIN
DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING
(DBMS_RESOURCE_MANAGER.ORACLE_USER, ‘scott’, ‘dev_group’);
END;

Creating Attribute Mapping Priorities

To resolve conflicting mappings, you can establish a priority ordering of the attributes from most important to least important. You use the SET_CONSUMER_GROUP_MAPPING_PRI procedure to set the priority of each attribute to a unique integer from 1 (most important) to 10 (least important). The following example illustrates this setting of priorities:

BEGIN
DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING_PRI(
EXPLICIT => 1, SERVICE_MODULE_ACTION => 2, SERVICE_MODULE => 3, MODULE_NAME_ACTION => 4, MODULE_NAME => 5, SERVICE_NAME => 6, ORACLE_USER => 7, CLIENT_PROGRAM => 8, CLIENT_OS_USER => 9, CLIENT_MACHINE => 10);
END;

Answer is SET_CONSUMER_GROUP_MAPPING_PRI

Eamon

Eamon

way to go andreas!!!!!
Answer is SET_CONSUMER_GROUP_MAPPING_PRI

Jake from SF

Jake from SF

Actually…

http://docs.oracle.com/cd/B19306_01/server.102/b14231/dbrm.htm

Creating Consumer Group Mappings
The mapping for a session consists of a set of attribute/consumer group pairs that determine how a session is matched to a consumer group. You use the SET_CONSUMER_GROUP_MAPPING procedure to map a single session attribute to a consumer group. The parameters for this procedure are: