DBMS_RESOURCE_MANAGER - consumer group members?

Hi,
I am a beginner in DBMS_RESOURCE_MANAGER. I would like to make a multi level plan in this feautre. I make the consumer groups for the plans, but I don't know how can I define the members of these consumer groups?
How does Oracle know which users are the members of these groups?
Using simple database users and schema users too, I would like to take these users into these groups but I don't know how.
Please help what is the method to do this! How can I write this?
And another problem: Is it possible that a user is a member of two or more consumer group?
Regards
Steve

Use dbms_resource_manager_privs.grant_switch_consumer_group,orcl> desc dbms_resource_manager_privs
PROCEDURE GRANT_SWITCH_CONSUMER_GROUP
Argument Name                  Type                    In/Out Default?
GRANTEE_NAME                   VARCHAR2                IN
CONSUMER_GROUP                 VARCHAR2                IN
GRANT_OPTION                   BOOLEAN                 IN
PROCEDURE GRANT_SYSTEM_PRIVILEGE
Argument Name                  Type                    In/Out Default?
GRANTEE_NAME                   VARCHAR2                IN
PRIVILEGE_NAME                 VARCHAR2                IN     DEFAULT
ADMIN_OPTION                   BOOLEAN                 IN
PROCEDURE REVOKE_SWITCH_CONSUMER_GROUP
Argument Name                  Type                    In/Out Default?
REVOKEE_NAME                   VARCHAR2                IN
CONSUMER_GROUP                 VARCHAR2                IN
PROCEDURE REVOKE_SYSTEM_PRIVILEGE
Argument Name                  Type                    In/Out Default?
REVOKEE_NAME                   VARCHAR2                IN
PRIVILEGE_NAME                 VARCHAR2                IN     DEFAULT
orcl>and yes, a user can be in many groups but only one group membership is acitve at any time.

Similar Messages

  • 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

  • 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

  • How can I set up an SMS group so that all group members can dial a group number and have a text sent out to all members of the group

    How can I set up an SMS group so that all group members can dial a group number and have a text sent out to all members of the group
    This would be an SMS group similar to an email listserv but running on the SMS network
    I have seen private individuals offering this service
    It seems strange to me that no internet site like Apple, Yahoo or Google offers this as a free service much as the email group services are free services.
    Steve

    I think the app GroupMe might do what you want. You might also try contacting your carrier. My carrier offered some fancy group texting service for a while but they never really advertised it so, unless you asked, you never would have known. But, GroupMe is available in the app store. There are lots of other apps that also do group texting but it seems to be the one that gets recommended the most.

  • How to show logged-in Line Group Members in a Hunt Pilot (CUCM V7.1.3)

    I have configured a Hunt Pilot with a Hunt List which points to a Line Group with some DNs as Line Group Members. Additionally i gave the affected Users the option to log-in or log-out from the Hunt Pilot by configuring the "Hunt Group Logout" Button in the corresponding Phone Button Template.
    Is there a way to find out who is logged-in or logged-out from the Hunt Pilot?

    Hi Bill,
    thanks for your very interesting hint .
    I run the query you posted and actually got the following output. But the displayed linegroups are only a subset from my configured 79 linegroups . Is there a possibility to display all linegroups with all corresponding DNs and can i display this information for only one linegroup?
    When i know the queery that satisfy my claims, i will write a small web application that uses the AXL-SOAP API.
    Regards, Robert
    admin:run sql select lg.name as LineGroup,n.dnorpattern,dhd.hlog from linegroup as lg inner join linegroupnumplanmap as lgmap on lgmap.fklinegroup=lg.pkid inner join numplan as n on lgmap.fknumplan = n.pkid inner join devicenumplanmap as dmap on dmap.fknumplan = n.pkid inner join device as d on dmap.fkdevice=d.pkid inner join devicehlogdynamic as dhd on dhd.fkdevice=d.pkid order by lg.name
    linegroup                      dnorpattern     hlog
    ============================== =============== ====
    LG_A-Ulr4_Augsburg_9965077_235 \+498215075234  f
    LG_A-Ulr4_Augsburg_9965077_235 \+498215075209  f
    LG_A-Ulr4_Augsburg_9965077_235 \+498215075224  f
    LG_A-Ulr4_Augsburg_9965077_235 \+498215075226  f
    LG_A-Ulr4_Augsburg_9965077_235 \+498215075227  f
    LG_A-Ulr4_Augsburg_9965079_300 \+498215075327  f
    LG_A-Ulr4_Augsburg_9965079_300 \+498215075306  f
    LG_AB-Fried17_9965006          \+496021391713  f
    LG_AB-Fried17_9965006          \+496021391714  f
    LG_AB-Fried17_9965006          \+496021391721  f
    LG_AB-Fried17_9965006          \+496021391727  f
    LG_AM-Mar9_9965004             \+499621474921  f
    LG_BT-Sch9_9965010             \+4992189423    f
    LG_DD-Fet29_9965014            \+493514459055  t
    LG_HO-Bah1_9965020             \+4992818194122 f
    LG_KE-Moz31_9965024            \+498315215110  f
    LG_LA-Dre11_9965025            \+498714308419  f
    LG_LA-Dre12_9965026            \+498719239113  f
    LG_Mue-Sta41_9965029           \+498631386227  f
    LG_N-KOEN11_9965034            \+4991124039112 f
    LG_N-KOEN11_9965034            \+4991124039142 f
    LG_N-KOEN11_9965034            \+4991124039110 f
    LG_N-Ste6_9965057_400          \+499112428403  f
    LG_N-Ste6_9965058_450          \+499112428455  f
    LG_NES-Sie2_9965008            \+499771610413  f
    LG_NES-Sie2_9965008            \+499771610421  f
    LG_NM-Bah12_9965030            \+499181293312  f
    LG_PA-Kle13_9965035            \+498519594109  f
    LG_PA-Kle13_9965035            \+498519594113  f
    LG_PAN-Drb12_9965036           \+498561961225  t
    LG_PAN-Drb12_9965036           \+498561961224  f
    LG_R-Her2_9965068_400          \+499413783414  f
    LG_TS-Bah26_9965040            \+498619887312  f
    LG_Voicemail                   997005          t
    LG_Voicemail                   997006          t
    LG_Voicemail                   997007          t
    LG_Voicemail                   997008          t
    LG_Voicemail                   997009          t
    LG_Voicemail                   997010          t
    LG_Voicemail                   997011          t
    LG_Voicemail                   997012          t
    LG_Voicemail                   997013          t
    LG_Voicemail                   997014          t
    LG_Voicemail                   997015          t
    LG_Voicemail                   997016          t
    LG_Voicemail                   997017          t
    LG_Voicemail                   997018          t
    LG_Voicemail                   997019          t
    LG_Voicemail                   997020          t
    LG_Voicemail                   997021          t
    LG_Voicemail                   997022          t
    LG_Voicemail                   997023          t
    LG_Voicemail                   997024          t
    LG_Voicemail                   997025          t
    LG_Voicemail                   997026          t
    LG_Voicemail                   997027          t
    LG_Voicemail                   997028          t
    LG_WEN-Buer16_9965041          \+499614820413  t
    LG_WEN-Buer16_9965041          \+499614820415  f
    LG_WM-Puet35_9965042           \+49881922927   f
    admin:

  • How to bulk add group members in Open Directory

    So the workgroup manager interface is ghey. The + sign to add group members drag&drops users one at a time. I need to bulk add group members.
    I tried ldapadd to add all the users quickly and that doesn't seem to work. The ldap group record now has all the users populated, under the multivalued attribute memberUid), but workgroup manager doesn't see the bulk group members.
    Any idea how to do this?

    Use tcsh SHELL builtin command 'foreach' to accomplish this:
    $ tcsh
    $ which foreach
    foreach: shell built-in command.
    $ foreach user (`cat users.txt`)
    foreach? echo adding $user to group
    foreach? /usr/bin/dscl -u diradmin -P [passwd] /LDAPv3/127.0.0.1 append /Groups/yourgroup GroupMembership $user
    foreach? end

  • Task Assignment to Ggroup - Group Members Not Getting Email

    I have a process with an approval activity with initial user selection set to a group rather than a specific user. I want all selected users to receive an email notification that a new task awaits them. When I assign to a specific user, the custom email template is sent to the user. When I assign to a group, the group members don't get the task assignment email.
    How do I change that so that group members will receive email notification of task assignment?
    Thanks in advance!
    Eric

    One possible solution:
    You can use our Group Lookup component to get a comma-separated list of the emails of the members of the group. Then, in the step before the User>assignTask step, send the group an email. The only problem is that you won't be able to embed a link directly to the task, because the task doesn't exist yet.
    Doc: http://avoka.dnsalias.com/confluence/display/Public/Lookup+DSC
    Download: http://www.avoka.com/avoka/escomponents.shtml
    To work around this problem, you can use the technique outlined here:
    http://blogs.avoka.com/2008/10/20/customize-user-task-escalation-after-assignment/
    http://avoka.dnsalias.com/confluence/display/Public/Customize+User+Task+Escalation+After+A ssignment
    If you need more assistance, contact info-at-avoka.com
    Howard

  • Missing group members in ADSI & LDAP

    Hi there. I have an AD problem here (obviously :))
    It started by wanting to list all members of a group (recursivly, but that does not matter for now, the problem occurs on a single group).
    I tried this in Powershell, but our AD is still  on 2003, so no AD web services, so no powershell.
    In PHP & Java I got the same results: It only shows 3 members, where there should be 23.
    In Active Directory Computers & Users, these 23 (including a group) are listed on the member tab.
    In ADSI I see only the 3 entries mentioned above in the attribute "member", and the other users don't have the membersOf attribute backlink.
    dsget group -members (-expand) works properly.
    Where do Active Directory Computers & Users and dsget get their information regarding group members from, and how can I access that programmatically via LDAP access from php or Java?

    Sorry, forgot about the Domain Users or the Domain Admins group over the link/image upload issue.
    No, it wasn't these groups.
    But: you were on the right path. The term primary group is what I was missing.
    The group is for one of our roadwarrior subsidiaries, and they are not Domain users as primary group, but the one shown here.
    Do you happen to know which LDAP attributes represent the primary group association?
    The primaryGroupID attriute store the RID of the group that is assigned as the primary group. This was to work around the limitation in Windows 2000 before LVR (Linked-Value Replication) so that more than 5000 users could be member of the same group. (It also
    plays a role for POSIX - Services for Mac clients)
    Enfo Zipper
    Christoffer Andersson – Principal Advisor
    http://blogs.chrisse.se - Directory Services Blog

  • SharePoint Hosted App to Read members of Site owner group, if "Who can view the membership of the group? " is set to Group members only

    Hi,
    Is there a way to read group members of site owner group via SharePoint hosted app . The "Who can view the membership of the group? " is set to Group members only. As per my research SCA can only view the group members of site owner group
    if this settings is applied.
    Thanks,
    Sudhir
    Sudhir rawat

    See this.
    Avoid changing the MaxPageSize LDAP query policy
    http://jeftek.com/219/avoid-changing-the-maxpagesize-ldap-query-policy/
    Regards~Biswajit
    Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
    MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
    MY BLOG
    Domain Controllers inventory-Quest Powershell
    Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
    Generate a Report for installed Hotfix for Bulk Servers

  • How to restrict Permission to the group members in Forum??

    Hi All,
    I have created discussion forum for a group in that group some members are Expert person who will answer thread posted by the group members
    Noe the issue that i am faceing is that:
    <b>1)when any user posts thread he and some other group member other than expert is able to see Reply and delete link,with that link any other person can reply or delete thread that i want to restrict.
    delete and reply link should be visible only to Expert person
    2)Edit Subscription tab is also visible to every group people but that should be only visible to Expert that also i want to restrict.</b>
    I think that this thing can be achived by assigning proper permission to the users
    Any help achiveing me this will be highly appretiated and rewarded.
    thanks in advance.
    Vinit

    "crystalReportViewer1.ReportSource"  i dont find this anywhr in the file.
    pasting a small portion of my code.....
    <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Reports.aspx.cs" Inherits="Reports" Title="Reports Details" %>
                            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
            DisplayGroupTree="False" DisplayToolbar="False" Height="1013px"
            Width="773px" />
                        </td>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                    </tr>
                   <tr>
                    </tr>
                    <tr>
                        <td colspan="9">
        <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
            <Report FileName="CrystalReport1.rpt">
            </Report>
        </CR:CrystalReportSource>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
         <br />
    </asp:Content>

  • 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

  • Consumer Group/Resource Plan to use only one instance of a RAC

    What would be the way to create a Consumer Group/Resource Plan to use only one instance of a RAC? I have 10.1.0.5 database
    running on 10.1.0.5 RAC.
    Thanks,

    You should use "services" to limit workload to just one specific node of RAC:
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10739/create.htm#sthref400

  • Get Password Expiration Date of Group members in Active Directory

    hi,
    How can I get password Expiration date of Group members in Active Directory – please advise me
    Fasil CV

    Or DSQUERY Commands.
    dsget group "CN=Group1,DC=myinfralab,DC=com" -members | dsget user - -acctexpires
    Santhosh Sivarajan | Houston, TX | www.sivarajan.com
    ITIL,MCITP,MCTS,MCSE (W2K3/W2K/NT4),MCSA(W2K3/W2K/MSG),Network+,CCNA
    Windows Server 2012 Book - Migrating from 2008 to Windows Server 2012
    Blogs: Blogs
    Twitter: Twitter
    LinkedIn: LinkedIn
    Facebook: Facebook
    Microsoft Virtual Academy:
    Microsoft Virtual Academy
    This posting is provided AS IS with no warranties, and confers no rights.

  • CustomRealm without listing Group Members

    Hi,
    we are considering to implement a custom security realm. We have a fixed number
    of groups to be used in ACLs. Users are stored in an LDAP server.
    Group membership depends on some information on the individual user which needs
    to be gathered from a separate backend system. Therefore, it is not feasible to
    implement the getMembers() method on the Group class since that means iterating
    over all "user records" in the backend system.
    Here my question:
    1. Is the getMembers() method needed for Authorization and/or Authentication or
    can we simply make it return an empty list? (We do not mind if we do not see group
    members in the administration console.)
    2. Is it a good idea at all to have this kind of group definition?
    3. What about the method "getUsers" for the ListableRealm? Is this one needed
    for Authorization/Authentification. This method poses a similar problem.
    Regards,
    Andreas

    1. Is the getMembers() method needed for Authorization and/orAuthentication or
    can we simply make it return an empty list? (We do not mind if we do notsee group
    members in the administration console.)I think this method is not needed at all for authentication and
    authorization, it's only used to list the users in the WL admin page.
    3. What about the method "getUsers" for the ListableRealm? Is this oneneeded
    for Authorization/Authentification. This method poses a similar problem.Same answer.

Maybe you are looking for