Skip to content

Commit 4149bdc

Browse files
authored
Create switch_sess.sql
Switch a session immediately
1 parent 4a76601 commit 4149bdc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Causes the specified session to immediately be moved into the specified resource consumer group.
2+
3+
select SID, SERIAL#, status, resource_consumer_group
4+
from v$session where username='REDEF_USER';
5+
6+
BEGIN
7+
DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_SESS('&id', '&serial','&Group_name');
8+
END;
9+
/

0 commit comments

Comments
 (0)