Summary of DBMS_RESOURCE_MANAGER_PRIVS Subprograms
Table 86-1 DBMS_RESOURCE_MANAGER_PRIVS Package Subprograms
Subprogram | Description |
---|---|
Grants the privilege to switch to resource consumer groups | |
Performs a grant of a system privilege | |
Revokes the privilege to switch to resource consumer groups. | |
Performs a revoke of a system privilege |
GRANT_SWITCH_CONSUMER_GROUP Procedure
This procedure grants the privilege to switch to a resourceconsumer group.
DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ( grantee_name IN VARCHAR2, consumer_group IN VARCHAR2, grant_option IN BOOLEAN);
Table 86-2 GRANT_SWITCH_CONSUMER_GROUPProcedure Parameters
Parameter | Description |
---|---|
| Name of the user or role to whom privilege is to be granted. |
| Name of consumer group. |
|
|
If you grant permission to switch to a particularconsumer group to a user, then that user can immediately switchtheir current consumer group to the new consumergroup.
If you grant permission to switch to a particularconsumer group to a role, then any users who have been granted thatrole and have enabled that role can immediately switch theircurrent consumer group to the new consumer group.
If you grant permission to switch to a particularconsumer group to PUBLIC
, then any user can switch tothat consumer group.
If the grant_option
parameter isTRUE
, then users granted switch privilege for theconsumer group may also grant switch privileges for that consumergroup to others.
In order to set the initial consumer group of a user, you mustgrant the switch privilege for that group to the user.
See Also:
Chapter85, "DBMS_RESOURCE_MANAGER"BEGIN DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ( 'scott', 'mail_maintenance_group', true); DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA(); DBMS_RESOURCE_MANAGER.set_consumer_group_mapping( dbms_resource_manager.oracle_user, 'scott','mail_maintenance_group'); DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA(); END; /