My Oracle Support Banner

Administer_resource_manager Does Not Allow Execution Of Dbms_resource_manager.Switch_plan (Doc ID 1329062.1)

Last updated on DECEMBER 22, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Goal

Which additional privlege is necessary to use the procedure dbms_resource_manager.switch_plan? The documentation mentions only ADMINISTER_RESOURCE_MANAGER and nothing else.


drop user <USER_NAME> cascade;
create user <USER_NAME> identified by <password>;

grant connect, resource to <USER_NAME>;


exec dbms_resource_manager_privs.grant_system_privilege('<USER_NAME>','ADMINISTER_RESOURCE_MANAGER',FALSE);

SQL> connect <USER_NAME>/<password>
Connected.
SQL> exec dbms_resource_manager.switch_plan('MIXED_WORKLOAD_PLAN');
BEGIN dbms_resource_manager.switch_plan('MIXED_WORKLOAD_PLAN'); END;

*
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SQL", line 1575
ORA-06512: at "SYS.DBMS_RESOURCE_MANAGER", line 920
ORA-06512: at line 1


Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.