10.07.2015 Views

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 7 RESOURCE MANAGEMENTBEGINDBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING(DBMS_RESOURCE_MANAGER.ORACLE_USER, 'TPODER', 'REPORTS');DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING(DBMS_RESOURCE_MANAGER.CLIENT_PROGRAM, 'payroll.exe', 'APPS');END;There are two types of session attributes that can be used to create mapping rules: login attributesand runtime attributes. Login attributes are set when the user logs in and do not change during the life ofthe session. Resource Manager uses login attributes to determine which consumer group the sessionshould initially be assigned to. Runtime attributes are set at runtime and can be changed at any timeduring the life of the session by the client application. Table 7-2 describes the session attributesResource Manager can use for creating session-to-consumer-group mapping rules.Table 7-2. Consumer Group Mapping Rule AttributesSession Attribute Type DescriptionEXPLICIT n/a This attribute refers to the explicit request by a user toswitch to another consumer group using one of thefollowing stored procedures in the DBMS_SESSIONpackage:• SWITCH_CURRENT_CONSUMER_GROUP• SWITCH_CONSUMER_GROUP_FOR_SESS• SWITCH_CONSUMER_GROUP_FOR_USERIt is a common practice to set the priority of thismapping attribute to the highest level.ORACLE_USER Login This is the USERNAME column from v$session. It is theuser name the session used to authenticate to thedatabase during login.SERVICE_NAME Login This is the database service name used to connect to thedatabase. It is the SERVICE_NAME column in the v$sessionview.CLIENT_OS_USER Login This is the operating system user account of themachine the user is connecting from. It is the OSUSERcolumn from the v$session view.CLIENT_PROGRAM Login This is the executable file the end user is using toconnect to the database; for example, sqlplusw.exe.Resource Manager evaluates this value withoutconsideration of case, (upper or lower).179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!