Change consumer group

Hi,
in 10g R2 on Win 2003 server
I try to change the consumer group of user SCOTT :
SQL> SELECT NAME from V$RSRC_CONSUMER_GROUP;
NAME
SYS_GROUP
OTHER_GROUPS
LOW_GROUP
SQL> SELECT USERNAME,RESOURCE_CONSUMER_GROUP FROM V$SESSION where username='SCOTT';
USERNAME                       RESOURCE_CONSUMER_GROUP
SCOTT                          OTHER_GROUPS
SQL> EXEC DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER ('scott', 'LOW_GROUP');
PL/SQL procedure successfully completed.But does not work :
SQL> SELECT USERNAME,RESOURCE_CONSUMER_GROUP FROM V$SESSION where username='SCOTT';
USERNAME                       RESOURCE_CONSUMER_GROUP
SCOTT                          OTHER_GROUPSWhat is wrong in my action ?
Many thanks.

Thank SKU,
SQL> SELECT * FROM DBA_RSRC_CONSUMER_GROUP_PRIVS;
GRANTEE                        GRANTED_GROUP                  GRA INI
PUBLIC                         DEFAULT_CONSUMER_GROUP         YES YES
SYSTEM                         SYS_GROUP                      NO  YES
PUBLIC                         LOW_GROUP                      NO  NONo he is not.
What to do first then ?
Finally we should do like this :
SQL> SELECT USERNAME,RESOURCE_CONSUMER_GROUP FROM V$SESSION where username='SCOTT';
USERNAME                       RESOURCE_CONSUMER_GROUP
SCOTT                          OTHER_GROUPS
SQL> EXEC DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA;
PL/SQL procedure successfully completed.
SQL> EXEC DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER ('SCOTT', 'LOW_GROUP');
PL/SQL procedure successfully completed.
SQL> EXEC DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA;
PL/SQL procedure successfully completed.
SQL> EXEC DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA;
PL/SQL procedure successfully completed.
SQL> SELECT USERNAME,RESOURCE_CONSUMER_GROUP FROM V$SESSION where username='SCOTT';
USERNAME                       RESOURCE_CONSUMER_GROUP
SCOTT                          LOW_GROUP

Similar Messages

  • Resource Consumer Group Change

    Hi,
    in 10g R2;
    scott is in LOW_GROUP :
    EXEC DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA;
      EXEC DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER ('SCOTT', 'LOW_GROUP');
      EXEC DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA;
      EXEC DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA;
      SELECT USERNAME,RESOURCE_CONSUMER_GROUP FROM V$SESSION where username='SCOTT';
    USERNAME                       RESOURCE_CONSUMER_GROUP
    SCOTT                          LOW_GROUPnow scott run the following long query from his sqlplus session :
    select * from sh.sales;And now :
      SELECT USERNAME,RESOURCE_CONSUMER_GROUP FROM V$SESSION where username='SCOTT';
    USERNAME                       RESOURCE_CONSUMER_GROUP
    SCOTT                          OTHER_GROUPSAny explanation ?
    Thank you.

    Hi,
    The Resource Manager can automatically switch a session to another consumer group when a certain condition is met.
    Automatic switching can occur when:
    A session attribute changes, causing a new mapping rule to take effect.
    A session exceeds the CPU or I/O resource consumption limits set by its consumer group.
    So i suppose in this case second condition might have fulfilled so you are seeing the change.
    Regards
    Anurag

  • Add consumer group to System Plan

    I am trying to write a SQL statement that will do the following:
    2. Add the APPUSER consumer group to the SYSTEM_PLAN resource plan. Change the level 3 CPU resource allocation percentages: 60% for the APPUSER consumer group and 40% for the LOW_GROUP consumer group.
    SQL>BEGIN
    DBMS_RESOURCE_MANAGER.CREATE_SYSTEM_PLAN (SYSTEM_PLAN => ‘system_plan’,
    CONSUMER_GROUP1 => ‘APPUSER’, GROUP1_CPU3 => 60,
    CONSUMER_GROUP2 => ‘LOW_GROUP’, GROUP2_CPU3 => 40);
    END;
    When executing the statement, I get the following error message:
    Error message:
    ERROR at line 2:
    ORA-06550: line 2, column 23:
    PLS-00302: component 'CREATE_SYSTEM_PLAN' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Can someone tell me what I am doing wrong?
    I appreciate the help.

    Yes, you are correct. I misunderstood what I was reading. I thought in the example they were naming the plan. I will revise and see what happen.
    SQL>BEGIN
    DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLAN (SIMPLE_PLAN => ‘system_plan’,
    CONSUMER_GROUP1 => ‘APPUSER’, GROUP1_CPU3 => 60,
    CONSUMER_GROUP2 => ‘LOW_GROUP’, GROUP2_CPU3 => 40);
    END;
    When executing the statement, I get the following error message:
    Error message:
    ERROR at line 2:
    ORA-06550: line 2, column 1:
    PLS-00306: wrong number or types of arguments in call to 'CREATE_SIMPLE_PLAN'
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Edited by: 976505 on Mar 6, 2013 1:53 PM

  • Is there a fuction call "on change of group" in CR2008?

    i want to summarize a field of the first record in each group, and than display the result in the report header.
    using "running total field" can summarize it but only calculated the first record if placing the result in the report header.
    i want to make it with "Formula Fields", is there a fuction call "on change of group" in Formula Fields?
    many thanks!

    Check out InRepeatedGroupHeader and see if it will help.

  • Error while Changing IO group

    HI Gurus
    I facing problem while changing IO group using T code KOH2
    some of the IO are gray out ,while selecting such IOs for changing its IO group System is not allowing me to select these IO and giving error  'Position cursor correctly' .
    Is there is any resion that IO got gray out ?
    Thanks
    Avadhut

    Hi,
    Go to KOH2
    Select the order by pressing F9. Now place the cursor where you want to put the order group. i.e on same level or Lower level.
    Regards,
    Jigar

  • Change account groups in vendor/ customer master data

    Hi,
    Do you think is possible to change account groups in vendor/ customer master data?
    Thanks

    Hi,
    Good evening and greetings,
    Changing the account groups will redetermine the Reconciliation account, which will be creating a chaos during Audit Reconciliation. But if there is a requirement, please go through the following link
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f534545a11d1a7020000e829fd11/frameset.htm
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • Change a group of photos to meet length of audio

    Hi, I was wondering if anyone knew how to change a group of photos' length to meet the length of an audio clip? I know that you can individually change each photo length but I need help with selecting a group of photos and making them all fit the length of a music clip.
    Any help would greatly be appreciated. Thanks!

    You may want to try to repair your iPhoto Library.  Errors may have crept in.  Back up you library first.  Hold down the option and command keys when you start iPhoto.  This will bring up repair options.  Try the first two or three, one at a time, and see if it helps.
    You may also want to check out the iPhoto Library Manager App.

  • Change OBD Group with WM reference

    Hi Experts,
    I have created an OBD group with WM reference in VL06P. Next, I tried to create TO for group. However, if there is an OBD being locked and cannot create its follow on TO. I would like to remove that OBD from the OBD group and create another OBD group for it later on.
    The problem is when I execute the first TO for group. The OBD group will marked as active and I cannot remove any OBD from it. (Am I right?)
    I tried to reverse the processing status. However, it seems there's no way to change the group status. Is there any tcode for this?
    Actually, I need to use this OBD group with reference is not due to 2 steps picking but I need to relate other TO with this OBD group. I only want to fill the LTAK-REFNR for other TO not related to any OBD to this OBD group. SAP only allows a OBD group with WM reference in the LTAK-REFNR field.
    Regards,
    Alex

    Ah, yes, Apologies
    I tested the same in lower system and I get message/number:
    Change cannot be made due to status of reference number XXX XXXXXXXX
    Message no. VL826
    I am not aware of anyway to override this behavior. I did test deleting the delivery to confirm it would disappear from the group but that would not help when the delivery is locked, hope some one else can comment
    (please note: as per your comment that the delivery is locked I did not test further to process the group after removing the delivery ((if you are able to delete the delivery I would recommend a quick test to confirm that does not create any challenge with processing the remaining deliveries)

  • How to export resource manager consumer groups using Data Pump?

    Hi, there,
    Is there any way to export RM Consumer Groups/Mappings/Plans as part of a Data Pump export/import? I was wondering because I don't fancy doing it manually and I don't see the object in the database_export_objects view. I can create them manually, but was wondering whether there's an easier, less involved way of doing it?
    Mark

    Hi,
    I have not tested it but i think a full db export/import (using data pump or traditional exp/imp) may help doing this (which might not be feasible for you to have full exp/imp) because full database mode exports/imports SYS schema objects also, so there is a chance that it will also import the resource group and resource plans.
    Salman

  • How to change Syntax group and physical path in SARA from unix to windows.

    Our customer migrate current current archiving server from Unix to windows
    How to change Syntax group and physical path in SARA from unix to windows.

    http://help.sap.com/saphelp_nw70/helpdata/EN/8d/3e4ec2462a11d189000000e8323d3a/frameset.htm
    you have to change
    Logical Path Names
    Logical file  Names
    Note 35992 - File name/directory for application archiving
    hope this will help you
    cheers
    dEE

  • Re: change account group for vendor

    hi expert,
    i done the same which you mention in earlier form. i manage to change the account group for vendor master.
    now there is an another thing came out that is for normal vendor i able to change the account group but there is another vendor which is one time vendor means for vendor i am going to from normal vendor account group to one time account selected account group so in this case when i am changing the group in xk07 the system is saying a following message.
    new account group xxx is one-time group: change not permitted.
    message no.F2692
    so if anybody face the same problem give me your inputs.
    thanks in advance,
    kk.

    Hi KK,
    For normal vendors, you cannot change the account group to 'One time vendor' group. The one time vendor group will have most of its felds suppressed in the master data. You have to enter the Name, address etc. only at the time of invoice posting.
    But your normal vendor will have the name and address details in the master data itself. So, there will be inconsistency in the field status of the normal vendor account and the one time vendor account.
    Hence, the system may not allow you to change the vendor group.
    Regards,
    Mike

  • Change the group selection in contacts back please!!!

    Why would you change something so intuitive into the cumbersome system.
    It was so easy before, if I want to see family contacts or work contacts I hit that option and they all appear. This select and deselect the ones I dont want is a pain.
    If something works well, don't just change it for the sake of an upgrade, leave it alone. Apple have always been good at nice interfaces, this is so stupid for a primary feature on a phone.
    Is there an option somewhere to have it work the old way?

    Hi
    Thanks for all,
            Problem i wrote to sap, Once transaction happend, it is not possible to change the group asset. I convienced my client no issue.
    Regards
    Maruthi.

  • What are the impacts of changing material group of a Material ?

    Hi,
    Could some one tell me in detail about the impacts of changing material group of a material that is active in procrement?
    Thanks,
    Veera

    Hi,
    If you are changing it from one valid group to another valid group and both will still be there afterwards, then the impact is small, but important.
    The data in the Info systems and BW etc. will have been updated with the the "old" material group and so if you tried to compare them you would find differences.
    It is something that does happen from time to time and as long as the two groups will still be ther afterwards there should be no reason why this would cause any technical or system problems. The effect is purely on the historic data.
    I have seen this done several times in many implementations and so far it has not caused any major problems apart from some reports "appearing" wrong if you compare them against other reports that involve historical movements.
    Steve B

  • How do I change contact Group?

    How do I change the Group assigned to each contact in iCloud?

    Welcome to the Apple Community.
    What exactly are you trying to do, there are ways to move all to iCloud for example, but moving individual contacts isn't possible.

  • 4.0.8.2.4  Cannot start listener after changing user/group to nobody/nobody

    Installed OAS 4.0.8.2.4 and configured it. Everything is working fine with listener, plsql cartridge, Java cartridge and OSSWA. But if change listener's user/group from Oracle/Dba to nobody/nobody. Listener will not start. It hangs in as follows:
    ========================================================================
    Information: Listening on NORM port 80 address 0.0.0.0
    Information: wriorProcessInit: RMProxy IOR Bootstrap Service initialized
    Information: Adapter services initialized successfully
    Information: The server started successfully
    Server now running as process 15654
    OWS-08850: Oracle Web Listener 'www' started.
    Oracle Web Listener 4.0.8.2.4 Enterprise Edition - Release (Domestic)
    Copyright (c) Oracle Corporation 2000. All rights reserved.
    Information: Listening on NORM port 5502 address 0.0.0.0
    Information: wriorProcessInit: RMProxy IOR Bootstrap Service initialized
    ===========================================================================
    from the message above, we can see if it failed to start the "Adapter services"
    If we change the user/group back to Oracle/Dba, it starts fine.
    And also, we have under $ORACLE_BASE/admin, the listener ( name devl ) permission has been changed accordingly to the user/group change. We follow the instruction from OAS configuration to change user/group.
    ( Read access to the configuration file
    Read access to all files that provide content for servicing requests
    Read access to all imagemap files
    Execute access to all Oracle Application Server binaries and program files that the Web Listener must execute
    Write access to the log and error files
    Read access to user directories )
    Thanks.

    Thanks. After a few more days testing. We finally figure out where it went wrong. We changed user/group from node manager. ( from Oracle/dba, installer, to nobody/nobody). After that, we only changed $ORACLE_BASE/admin/ows/SITE_name/httpd-host_name/listener_name to be read and write accessed by nobody. We forgot to change owl.cfg to be read access to nobody/nobody. After we changed that. It starts fine.
    Thanks again.

Maybe you are looking for

  • Sending mail to  SAP Inbox thru actions

    Hi Friends, I am having a requirement as below: Need to send one mail to SAP Inbox to the BP in one specific partner functions in an activity based upon the below conditions: 1) Status of the transaction is open 2) The Todays' Date -Created date =45

  • Ipad2-apps wont open!

    Hello, I can not open any app nor can open my icloud anymore. They open and immediately close again. Can anybody help me?

  • Group by clause will try to group the primay key's

    hi all, For my requiremments and to avoid the the subquery i am using join and group by clause in my sql query in oracle 10g r2 database.my question is if i put a primary column the group clause then oracle try to group the records?. i know if we use

  • What's the best wireless service to use?

    Hello! My client would like to know what's the best unlimited service plan (Verizon? AT&T? T-Mobile?) to get for wireless Internet on his MacBook Pro (Mac OS X 10.5.5; Leopard). Do they have devices with USB and card with the antenna? I don't know ho

  • What is the maximum rate we can achieve using 9403 in digital switching

    what is the maximum rate we can achieve using 9403 in digital switching?  i am using 9102 chassi and 9012 controller.  i am trying to program the 9403 as the output port and i am using it for switch on one of my devices.                       minimum