dbms_resource_manager.switch_consumer_group_for_sess Does Not Change Resource Consumer Group (Doc ID 808387.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.4
Enterprise Manager for RDBMS - Version: 10.2.0.1 to 10.2.0.4
This problem can occur on any platform.

Symptoms

After executing the procedure "dbms_resource_manager.switch_consumer_group_for_sess", the resource consumer group doesn't change for the session.

For example :

The resource consumer group for session id "158" is "OTHER_GROUPS"

After executing the following :

SQL> execute dbms_resource_manager.switch_consumer_group_for_sess (session_id => 158, session_serial => 60 ,consumer_group => 'mygroup2');

the resource consumer group for the session is not changed to 'mygroup2"

SQL> select sid, serial#, resource_consumer_group, username, osuser from v$session ses where sid = 158;

SID      SERIAL#    RESOURCE_CONSUM USERNAME OSUSER
-------  ---------- --------------- -------- -------
158         60       OTHER_GROUPS    SCOTT   grdbms 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms