Database Resource Manager CPU levels

Hi,
I'd like to employ the Database Resource Manager to limit some user's sessions to a certain amount of CPU. After reading the documentation and an Oracle white paper, I'm still not clear on the difference between splitting the CPU allocation at level 1 to 70% and 30% or splitting the CPU allocation 70% at level 1 and 100% at level 2.
Any clarification would be greatly appreciated.
Regards,
Jure

what white paper did you read ??
did you had a chance to look at oracle docs ??
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dbrm.htm#i1010776
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/ch23_os.htm#BABCAGGJ

Similar Messages

  • DATABASE RESOURCE MANAGER ( ORACLE 8I NEW FEATURE )

    제품 : ORACLE SERVER
    작성날짜 : 2004-08-16
    DATABASE RESOURCE MANAGER ( ORACLE 8I NEW FEATURE )
    ===================================================
    SCOPE
    8i~10g Standard Edition 에서는 Database Resource Manager 를 지원하지 않는다.
    Explanation
    Database Resource Manager란 OS에서 제공하는 자원 (예 : CPU 자원 )에 대해 DB
    차원에서 계획을 세워, 세부 관리를 할 수 있도록 해 주는 서비스이다.
    예를 들어 주간에 batch 작업을 처리하더라도, OLTP 업무에는 지장을 주지 않아야
    할 경우 batch 작업에 CPU 자원을 적게 할당해 주는 것이 바람직 하며, Resource
    Manager를 활용하여 CPU 자원을 batch 작업과 OLTP 업무에 서로 다르게 할당해 줄
    수 있다. ( Oracle 8.1.6 까지는 Resouurce Manager에서 CPU 자원에 대해서만
    관리만 가능하다 )
    1. 용어
    1) Resource Consumer Group
    사용자 session들의 집합. Resource에 대한 요구사항에 따라 나뉘어진 그룹.
    2) Resource Plan
         Consumer Group에 자원을 할당 해 주기 위한 resource plan directive들을
    포함.
    3) Resource Allocation Method
         Resource Manager에서 자원을 할당해 주는 방법/정책.
    4) Resource Plan Directive
         Resource Plan에 대해 자원을 할당해 주는 세부 내역.
    2. Resource Consumer Group
    * 기본 group
         [ 사용자가 삭제, 수정할 수 없는 group ]
         OTHER_GROUPS : active plan schema에 속하지 않는 consumer group의 모든
    session
         DEFAULT_CONSUMER_GROUP : consumer group을 지정하지 않은 모든
    session.(default)
         [ 기본적으로 제공되나 사용자가 삭제하거나 변경할 수 있는 group ]
         SYS_GROUP : SYSTEM_PLAN에 대한 high priority consumer group
    SYSTEM, SYS user에 할당한다.
         LOW_GROUP : SYSTEM_PLAN에 대한 low priority consumer group
    3. Resource Plan
         Consumer group에 속하는 session들은 해당 group에 대한 resource plan에
    따라 자원 할당이 결정되며, 자원 할당에 대한 세부 사항은 resource plan에
    대한 resource plan directive에서 지정된다.
         Resource plan은 subplan을 둘 수 있다.
    4. Resource Allocation Method
         Round-robin Method : Consumer group 내에서 session들에 대한 CPU 할당
         Emphasis Method : Consumer group에 할당되는 CPU
         Absolute Method : Parallel degree 한계 ( 예 : Parallel Query에서의
    degree )
    5. Resource Plan Directive
         Resource Plan Directive에 지정된 내용들은 resource plan에 따라
    consumer group에 자원을 할당할 때 반영된다.
    6. 구현 예제
         MYDB PLAN +-> MAILDB PLAN +-> POSTMAN GROUP (40% Level 1)
         | (30% Level 1) |
         | +-> USERS GROUP (80% Level 2)
         | |
         | +-> MAILMAINT GROUP (20% Level 2)
         | |
         | +-> OTHER GROUP (100% Level 3)
         |
         +-> BUGDB PLAN  +-> ONLINE GROUP (80% Level 1)
         (70% Level 1) |
         +-> BATCH GROUP (20% Level 1)
         |
         +-> BUGMAINT GROUP (100% Level 2)
         |
         +-> OTHER GROUP (100% Level 3)
         위 예에서 MYDB PLAN에는 2개의 subplan ( MAILDB PLAN, BUGDB PLAN )이
         있으며 각각 30%와 70%의 CPU 자원을 할당하였다.
         Level 1, Level 2, Level 3 는 우선순위 레벨을 의미하며, 하나의
         resource plan에서 동일한 level의 합이 100%를 넘지 못한다.
         ( Level 은 1부터 8까지 지정할 수 있으며 level 1이 가장 우선순위가
         높으며 level 8이 가장 우선순위가 낮다 )
         예를 들어 전체 CPU 자원의 70%를 할당 받은 BUGDB PLAN은 다시
         ONLINE GROUP과 BATCH GROUP을 두고 있는데, 이 둘의 Level이 모두 1이며
         두개의 percentage의 합이 100%이다. 하지만, 즉, level 1인 ONLINE GROUP
    에 90%를 할당하였다면, level 1인 BATCH GROUP에는 10% 이상을 할당할 수
    없다.
    Example
         * 구현을 위한 코드
         BEGIN
         /* PLAN schema 작업 영역 생성 */
         DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
         /* BUGDB PLAN, MAILDB PLAN, MYDB PLAN 생성 */
         DBMS_RESOURCE_MANAGER.CREATE_PLAN(PLAN => 'bugdb_plan',
         COMMENT => 'Resource plan/method for bug users sessions');
         DBMS_RESOURCE_MANAGER.CREATE_PLAN(PLAN => 'maildb_plan',
         COMMENT => 'Resource plan/method for mail users sessions');
         DBMS_RESOURCE_MANAGER.CREATE_PLAN(PLAN => 'mydb_plan',
         COMMENT => 'Resource plan/method for bug and mail users sessions');
         /* CONSUMER GROUP 생성 */
         DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
    'Bug_Online_group', COMMENT => 'Resource consumer group/method for
    online bug users sessions');
         DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
    'Bug_Batch_group', COMMENT => 'Resource consumer group/method for
    bug users sessions who run batch jobs');
         DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
    'Bug_Maintenance_group', COMMENT => 'Resource consumer group/method
    for users sessions who maintain the bug db');
         DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
    'Mail_users_group', COMMENT => 'Resource consumer group/method for
    mail users sessions');
         DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
    'Mail_Postman_group', COMMENT => 'Resource consumer group/method for
    mail postman');
         DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP =>
    'Mail_Maintenance_group', COMMENT => 'Resource consumer group/method
    for users sessions who maintain the mail db');
         /* BUGDB PLAN에 대한 DIRECTIVE 생성 */     
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'bugdb_plan',
    GROUP_OR_SUBPLAN => 'Bug_Online_group',     COMMENT => 'online bug users
    sessions at level 1', CPU_P1 => 80, CPU_P2=> 0,
         PARALLEL_DEGREE_LIMIT_P1 => 8);
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'bugdb_plan',
    GROUP_OR_SUBPLAN => 'Bug_Batch_group',      COMMENT => 'batch bug users
    sessions at level 1', CPU_P1 => 20, CPU_P2 => 0,
         PARALLEL_DEGREE_LIMIT_P1 => 2);
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'bugdb_plan',
    GROUP_OR_SUBPLAN => 'Bug_Maintenance_group',COMMENT => 'bug
    maintenance users sessions at level 2', CPU_P1 => 0, CPU_P2 => 100,
         PARALLEL_DEGREE_LIMIT_P1 => 3);
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'bugdb_plan',
    GROUP_OR_SUBPLAN => 'OTHER_GROUPS', COMMENT => 'all other users
    sessions at level 3', CPU_P1 => 0, CPU_P2 => 0, CPU_P3 =>
         100);
    (참고) CPU_P1 : cpu allocation for level 1
         /* MAILDB PLAN에 대한 DIRECTIVE 생성 */
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'maildb_plan',
    GROUP_OR_SUBPLAN => 'Mail_Postman_group',COMMENT => 'mail postman at
    level 1', CPU_P1 => 40, CPU_P2 => 0, PARALLEL_DEGREE_LIMIT_P1 => 4);
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'maildb_plan',
    GROUP_OR_SUBPLAN => 'Mail_users_group',     COMMENT => 'mail users
    sessions at level 2', CPU_P1 => 0, CPU_P2 => 80,
         PARALLEL_DEGREE_LIMIT_P1 => 4);
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'maildb_plan',
    GROUP_OR_SUBPLAN => 'Mail_Maintenance_group',COMMENT => 'mail
    maintenance users sessions at level 2', CPU_P1 => 0, CPU_P2 => 20,
         PARALLEL_DEGREE_LIMIT_P1 => 2);
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'maildb_plan',
    GROUP_OR_SUBPLAN => 'OTHER_GROUPS', COMMENT => 'all other users
    sessions at level 3', CPU_P1 => 0, CPU_P2 => 0, CPU_P3 =>
         100);
         /* MYDB PLAN에 대한 DIRECTIVE 생성 */
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'mydb_plan',
    GROUP_OR_SUBPLAN => 'maildb_plan', COMMENT=> 'all mail users
    sessions at level 1', CPU_P1 => 30);
         DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(PLAN => 'mydb_plan',
    GROUP_OR_SUBPLAN => 'bugdb_plan', COMMENT => 'all bug users sessions
    at level 1', CPU_P1 => 70);
         /* PLAN schema 작업 내용을 저장 */
         DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA();
         DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
         end;
    7. CONSUMER GROUP에 사용자나 세션을 할당하는 방법
         먼저 인스턴스에서 사용할 TOP Level resource plan 을 지정한다.
    initSID.ora에 RESOURCE_MANAGER_PLAN = MRDB_PLAN 지정이나 아래와 같이
    session level에 ALTER SYSTEM command를 사용하여 지정한다.
         ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = MYDB_PLAN;
         그리고 SCOTT 계정에 BUG_ONLINE_GROUP과 BUB_BATCH_GROUP 에 속할 수 있는
    권한을 부여     
    DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ('SCOTT',
    'BUG_ONLINE_GROUP', TRUE);
         DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ('SCOTT',
    'BUG_BATCH_GROUP', TRUE);
         * DBMS_RESOURCE_MANAGER.SET_INITIAL_CONSUMER_GROUP( user in
    varchar2, consumer_group in varchar2);
         예)
         DBMS_RESOURCE_MANAGER.SET_INITIAL_CONSUMER_GROUP('SCOTT',
    'BUG_ONLINE_GROUP');
         SCOTT 계정을 BUG_BATCH_GROUP에 할당
         * DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_SESS (
                             session_id IN NUMBER,
                             session_serial IN NUMBER,
                             consumer_group IN VARCHAR2);
         예)
         DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_SESS( 11, 2,
    'BUG_ONLINE_GROUP');
         * DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER (
                             user IN VARCHAR2,
                             consumer_group IN VARCHAR2);
         예)
         DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER('SCOTT',
    'BUG_BATCH_GROUP');
    8. 관련된 Dictionary
    DBA_RSRC_PLANS : Resource plan과 status
    DBA_RSRC_PLAN_DIRECTIVES : Resource plan directives와 status
    DBA_RSRC_CONSUMER_GROUPS : Consumer group과 status
    DBA_RSRC_CONSUMER_GROUP_PRIVS : 사용자에게 부여된 Consumer group
    DBA_USERS : INITIAL_RSRC_CONSUMER_GROUP라는 새로운 column이 추가
    V$SESSION : RESOURCE_CONSUMER_GROUP라는 새로운 column이 추가
    V$RSRC_PLAN : 새로운 view로 active resource plan을 보여준다
    V$RSRC_CONSUMER_GROUP : 새로운 view로 consumer group의 active session
    을 보여준다.
    Reference Ducumment
    ---------------------

    user1 is the schema present in DB1
    user2 is the schema present in DB2. I just have a DB link
    as below:
    create database link link_to_DB2 connect to user2 identified by user2 using 'DB2';---Connects from user1 of DB1 to user2 of DB2.
    Requirement is as below:
    CPU for DB2 - 25%
    Out of above 25%, CPU for user2 - 70%
    CPU for user1 30% -- whenever it conncts using the link)
    Please help me out.

  • Does Oracle Database Resource Manager work at all?

    I have been testing Oracle Database Resource Management...
    Environment: OS IBM AIX 5L 64 bit core, DB Oracle8i 8.1.7.4 Enterprise Edition.
    To test, I followed the procedure in the Oracle Metalink Bulletin Note:106948., Oracle8i: Database Resource Manager samples.
    But I was not able to reproduce any succes. There seems to be no difference running with at plan and not running with af plan enabled.
    Does anydody know of a problem with the combination of Oracle and AIX, or any other problems that could explain why it doesn't work?
    /Jørn Hansen

    if the cpu is 100% loaded then you can see any affects..
    this is the way how oracle database resource manager works..
    Message was edited by:
    mkocaer

  • Over of using Database Resource Manager

    Hi All,
    I am currently, doing a research on Database Resource Manager for implementing it in one of the Warehouse project database. Before, implementing it I would like to know few things. My Question is:
    Q. Does using Database Resource Manager cause any overhead? Any extra background process? any extra CPU Usage overhead? Any resource cost of using Database Resource Manager? Does it have any impact on resources and does it impact performance of the database?

    Hi Madrid,
    Thank you for your reply. Currently, we are looking into to implement Resource Manager in a dataware house environment because there are some ad-hoc users who execute really bad queries which puts lot of load on the database server which in turn slows down the performance. And there are few other reasons too. I not the primary for that environment though. This Resource Manager came up we thought that it might help us in controlling the ad-hoc users bad queries and also the environment.
    I have one more question in regards to resource manager. I have written a shell script which generates a report for stats of a resource plan from V$RSRC_CONSUMER_GROUP - which has stats data. But my concern is it stores historical stats too. For example, I have implemented resource manager and ran some queries and generated report and terminated all the sessions.
    Next day when I again run some queries and generate a report it gives stats combined with previous days stats. Is there any solution for this? So, that I can generate a report for stats at a point of time. For OEM I can reset the stats and get most current stats but this is not the case with the view I mentioned above. Please let me know if there is any other alternative for this. Hope you got my question.

  • Database resource manager and RAC

    Hello,
    This is probably is very simple question, but...
    I have a system with mixed workloads (OLTP and BATCH). As many before, I want to prevent BATCH processes from impacting OLTP. I read about RAC and DRM, and how each could be used to assign resources to services.
    Do I need RAC to be able to use DRM? Or can I do DRM without RAC? Are they the same thing?
    Thanks in advance for your help.

    DRM provides control over resource management decisions on both oracle standard and clustered databases.
    pecifically, using the Database Resource Manager, you can:
    * Guarantee certain users a minimum amount of processing resources regardless of the load on the system and the number of users
    * Distribute available processing resources by allocating percentages of CPU time to different users and applications. In a data warehouse, a higher percentage may be given to ROLAP (relational on-line analytical processing) applications than to batch jobs.
    * Limit the degree of parallelism of any operation performed by members of a group of users
    * Create an active session pool. This pool consists of a specified maximum number of user sessions allowed to be concurrently active within a group of users. Additional sessions beyond the maximum are queued for execution, but you can specify a timeout period, after which queued jobs will terminate.
    * Allow automatic switching of users from one group to another group based on administrator defined criteria. If a member of a particular group of users creates a session that executes for longer than a specified amount of time, that session can be automatically switched to another group of users with different resource requirements.
    * Prevent the execution of operations that the optimizer estimates will run for a longer time than a specified limit
    * Create an undo pool. This pool consists of the amount of undo space that can be consumed in by a group of users.
    * Limit the amount of time that a session can be idle. This can be further defined to mean only sessions that are blocking other sessions.
    * Configure an instance to use a particular method of allocating resources. You can dynamically change the method, for example, from a daytime setup to a nighttime setup, without having to shut down and restart the instance.
    * Allow the cancellation of long-running SQL statements and the termination of long-running sessions.
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10739/dbrm.htm#i1007556

  • Please Help with Database Resource Manager 10g

    I want to implement Database Resource Manager 10g on HP-UX server.
    But, before to implement, I want to test the functionnality and the stability.
    Does anyone have a "test case" or any comment about DRM 10g?
    Thanks
    Robin

    A bit more info: Here is the connection script as its defined in Dreamweaver: <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_karen_product = "localhost";
    $database_karen_product = "karen";
    $username_karen_product = "root";
    $password_karen_product = "root";
    $karen_product = mysql_pconnect($hostname_karen_product, $username_karen_product, $password_karen_product) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    Where is says mysql_pconnect, I changed the $hostname_karen_product etc to 'localhost', 'username', 'the password for the database')
    Do i need to do something different at $database_karen_product?
    I'm basically new at this and confused as to how to alter this connection script.
    Thanks
    Derek

  • Database Resource Manager

    Hello,
    We're on Oracle 10.2.0.3.
    I want the Resource Manager to map a specific machine in de 'LOW_GROUP'.
    Therefore I've used the value of 'machine' from the following query
    select sid, serial#, username, machine, resource_consumer_group
    from gv$session
    order by sid;
    BEGIN
    dbms_resource_manager.clear_pending_area();
    dbms_resource_manager.create_pending_area();
    dbms_resource_manager.set_consumer_group_mapping(
    dbms_resource_manager.client_machine,
    'CWZ\04-800-1330',
    'LOW_GROUP'
    dbms_resource_manager.submit_pending_area();
    END;
    When I connect to the database, the connection is in consumer_group 'OTHER_GROUPS'.
    What can be the reason for that ?
    Thanks for your help,
    Sjang

    Hello
    I've found the same problem when setting up the USER mapping. It doesn't work! There is a bug with the PROGRAM mapping in that dbms_resource_manager uppercases the input program name, so if you have mixed case executable names, it won't work, but it seems to extend to the other attributes too.
    To get round the problem, I've put together a logon trigger and several mapping tables and then do the switch manually i.e.
        BEGIN
            SELECT
                spm.consumer_group
            INTO
                ls_ConsumerGroup
            FROM
                resource_man.session_user_mapping spm
            WHERE
                spm.user_name = USER;
            dbms_resource_manager.switch_consumer_group_for_user
            (   USER,
                ls_ConsumerGroup
        EXCEPTION
            WHEN NO_DATA_FOUND THEN
                NULL;
        END;
        BEGIN
            SELECT
                spm.consumer_group,
                vs.sid,
                vs.serial#
            INTO
                ls_ConsumerGroup,
                ln_SessionId,
                ln_Serial
            FROM
                session_program_mapping spm,
                v$session vs
            WHERE
                vs.program = spm.program_name
            AND
                vs.audsid = TO_NUMBER(SYS_CONTEXT('USERENV','SESSIONID'));
            dbms_resource_manager.switch_consumer_group_for_sess
            (   ln_SessionId,
                ln_Serial,
                ls_ConsumerGroup
        EXCEPTION
            WHEN NO_DATA_FOUND THEN
                NULL;
        END;Not sure why the auto mapping bit doesn't work but the above code does work.
    HTH
    David

  • Database resource Manage in 11g

    Hi,
    I need to check whether the resource manager in in use or not if it is enabled .
    can you please provide me any sqls fro that.
    Thanks
    Vijay

    Check out this in the documentation for the RESOURCE_MANAGER_PLAN parameter.
    RESOURCE_MANAGER_PLAN specifies the top-level resource plan to use for an instance. The resource manager will load this top-level plan along with all its descendants (subplans, directives, and consumer groups). If you do not specify this parameter, the resource manager is off by default.

  • Database Resource Manager (DRM)

    Is DRM beneficial when implemented within a single database on a Solaris server hosting multiple databases?
    Here's the scenario. The Soaris server is a 4 server CPU box that hosts 5 Oracle 10.x databases. During month-end, the payroll application and associated database (dB-1) slows down considerably due to queries in a second database (dB-2) that are consuming CPU. If I implement DRM in dB-2 and limit CPU usage to say 50%, concurrent active sessions, etc., will that make a difference in dB-1? Or is DRM only effective in managing resources within a single database.
    Other considerations are that all DML in dB-2 are using a generic account (package app), so there's no way to effectively use account profiles to limit query times.
    Thank you.

    This link may help you:
    http://www.databasejournal.com/features/oracle/article.php/3296961

  • Database Resource Management

    Where have you gone?

    782718 wrote:
    what would happen if a user in DevEnv runs a poorly SQL statement that would normally consume 90% of the CPU again?If there are other consumer groups with 60% of CPU utilization allowed and they are using 60% of the CPU then users who belongs to DevEnv cannot use CPU more then 40%, their queries will become slower at their end but will not use CPU more then 40%.
    But if the other consumer groups are not using all of 60% CPU, lets say they are using only 20% , then users in DevEnv group may use 80% of the CPU if they need.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/dbrm006.htm#BABIIIDF
    You could also think of using Oracle User Profile to limit certain users if it suits you.
    The PROFILE has two resource parameters related to CPU (CPU_PER_SESSION , CPU_PER_CALL). These are limits of CPU time, not the percentage of CPU allocated to the user.
    http://www.orafaq.com/wiki/Profiles_and_password_management

  • Problem with database resource manager.

    Hello to all,
    I am using 10.2.0.1
    I am enterprise manager to assign user scott and hr to 'appuser' consumer group. I created a plan which specifies that appuser consumer group will be switched to sys_group after executing for 1 minute, but it is not being switched. Can u pls tell me where am I wrong.
    My query is running since few minutes, active session column regarding each consumer group in em dbconsole is showing 0.
    Geetanjali
    Edited by: sonidba on Sep 21, 2011 2:55 PM

    I am pasting the extract from em dbconsole.
    Consumer Group Switching
    Group     Maximum Execution Time (sec)     Switch back to original group after call?     Action To Take     Use estimate?
    APPUSER     60           Switch to Group SYS_GROUP     
    MARKETING     120          Switch to Group SYS_GROUP     
    OTHER_GROUPS     UNLIMITED          
    SYS_GROUP     UNLIMITED          
    appuser has scott and hr.
    marketing has sh user.
    These user is also having switch privilege to sys_group.
    details of hr-------------extract from emdbconsole consumer group switching privilege
    Consumer Group     Admin Option
    APPUSER     
    DEFAULT_CONSUMER_GROUP     
    DEVLOPER     
    SYS_GROUP     
    Default Consumer Group appuser     
    scott and sh has also same groups. After runing query for few minutes, my session is getting hanged
    Edited by: sonidba on Sep 22, 2011 10:50 AM

  • Using the Database Resource Manager

    Hi,
    in 10g R2,
    I have never used DBMS_RESOURCE_MANAGER. I have some questions about it :
    1-once activated by setting RESOURCE_MANAGER_PLAN = mydb_plan, would it work automatically ?
    If not :
    2-when a DBA switch a user ?
    3-if he does it when a user consumes many CPU, how can DBA see that ?
    Thanks.
    Any link to articles explaining use of DBMS_RESOURCE_MANAGER would be appreciated.

    user522961 wrote:
    Hi,
    in 10g R2,
    I have never used DBMS_RESOURCE_MANAGER. I have some questions about it :
    1-once activated by setting RESOURCE_MANAGER_PLAN = mydb_plan, would it work automatically ?
    If not :
    2-when a DBA switch a user ?
    3-if he does it when a user consumes many CPU, how can DBA see that ?
    Thanks.
    Any link to articles explaining use of DBMS_RESOURCE_MANAGER would be appreciated.Overview,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/mgmt_db.htm#sthref2259
    Administering and using,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dbrm.htm#ADMIN027
    Dbms package info,
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_resmgr.htm#i996751
    HTH
    Aman....

  • RESOURCE MANAGER IN E-BUSINESS SUITE DATABASE

    Hi All,
    I have little problem with database resource manager in E-Business database.
    I have set up some resource plan, assigned consumer group and user APPS to this consumer group (of course it is new initial consumer group for that user). At instance level I've set up RESOURCE_MANAGER_PLAN to new plan.
    When I'm on console and use sqlplus, or from my workstation use SQLNavigator and connect as APPS - its resource_consumer_group column from v$session is set to desired new consumer group, but when I start application most of sessions connected as APPS are in DEFAULT_CONSUMER_GROUP - please advice, anyone has any ideas ???
    Best Regards
    Radek

    EBS installs come with the database packaged with the install. You do not need a separate database install. Pl post EBS related issues in the EBS forums at http://forums.oracle.com/forums/category.jspa?categoryID=3
    HTH
    Srini

  • CPU used under Resource Manager.

    Hi,
    in 10g R2, I have created a Plan for DBMS resource manager :
    EXEC DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
    EXEC DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLAN(SIMPLE_PLAN => 'simple_plan1',CONSUMER_GROUP1 => 'mygroup1', GROUP1_CPU => 80,CONSUMER_GROUP2 => 'mygroup2', GROUP2_CPU => 20);
    ALTER SYSTEM SET RESOURCE_MANAGER_PLAN ='simple_plan1';
    EXEC DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER ('SCOTT', 'MYGROUP2');
    EXEC DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ('SCOTT', 'MYGROUP2', TRUE);
    EXEC DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA;
    EXEC DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA;Now SCOTT runs the following ( exemple from 24 Using the Database Resource Manager) :
    DECLARE
    m NUMBER;
    BEGIN
    FOR i IN 1..100000 LOOP
    FOR j IN 1..100000 LOOP
    * The following query does a cartesian product without
    * a predicate and takes up significant CPU time.
    select count(*) into m from v$sysstat, v$system_event;
    END LOOP;
    END LOOP;
    END;
    END;
    /And CPU comsumption goes up to 100%. Why ? According to his consummer group shouldn't he just have 20% of CPU ?
    Any explanation ?
    Thank you.

    Thanks to all.
    Ok, we will run the same script by SYS to have CPU load to 100%. Then SCOTT will run that script. How much CPU will he have ? And where can I see it ?
    And of course , SCOTT is just waiting :
    SQL> SELECT se.sid sess_id, co.name consumer_group,
      2   se.state, se.consumed_cpu_time cpu_time, se.cpu_wait_time, se.queued_time
      3   FROM v$rsrc_session_info se, v$rsrc_consumer_group co
      4   WHERE se.current_consumer_group_id = co.id
      5  and sid=137;
       SESS_ID CONSUMER_GROUP                   STATE
      CPU_TIME CPU_WAIT_TIME QUEUED_TIME
           137 MYGROUP2                         WAITING FOR CPU
       3473688     130618354           0I created another user for MYGROUP1 and he runs the same script, now both are waiting :
    SQL> SELECT se.sid sess_id, co.name consumer_group,
      2   se.state FROM v$rsrc_session_info se, v$rsrc_consumer_group co
      3   WHERE se.current_consumer_group_id = co.id
      4  and sid=108;
       SESS_ID CONSUMER_GROUP                   STATE
           108 MYGROUP1                         WAITING FOR CPU
    SQL> SELECT se.sid sess_id, co.name consumer_group,
      2   se.state FROM v$rsrc_session_info se, v$rsrc_consumer_group co
      3   WHERE se.current_consumer_group_id = co.id
      4  and sid=137;
       SESS_ID CONSUMER_GROUP                   STATE
           137 MYGROUP2                         WAITING FOR CPU

  • Apps use of Resource Manager

    We have a client that would like to limit system resources utilized within the Apps (11.5.10.2) so that a group of users does not run a request that brings the system to a standstill. I know that the individual request should be setup to minimize this possibility, but I'm wondering if the database Resource Manager can be utilized to limit resource for users in Apps?
    Thanks,
    Brian

    You are supposed to be able to use the Database Resource Manager Integration for this, page 69 of Ahmed Alomari's Open World talk. When configured, set the FND: Resource Consumer Group profile option for certain responsibilities or users.
    Database Resource Manager Integration
    • Define Resource Consumer Groups and associate specific concurrent programs with a resource group.
    • Allows an administrator to constrain the amount of CPU resources used by a concurrent program.
    • Resource Groups can also be defined for online users and concurrent requests using the profile:
    • "FND: Resource Consumer Group".
    • Useful for Discoverer users or ad-hoc reporting users.
    Tuning Oracle E-Business Suite
    http://www28.cplan.com/cbo_export/PS_S281393_281393_139-1_FIN_v1.pdf
    Session Abstract:
    This presentation offers tips and techniques on tuning all the layers of the Oracle E-Business Suite stack, including the suite's various tiers, namely, the data server and the middle-tier services, such as Oracle Forms, Oracle's concurrent managers, Apache JServ, Oracle Java virtual machine, and Oracle Discoverer. The presentation also covers applications-level-tuning solutions, such as Oracle Workflow, Oracle Order Management, and Oracle Payroll.
    Speakers: Ahmed Alomari, Oracle
    Username: cboracle
    Password: oraclec6

Maybe you are looking for

  • Google Voice no longer works for me in Firefox after upgrading to 8. Help?

    I've used Google Voice and Firefox since 2008 with no issues. Upgraded to Firefox v.8 and I'm dead in the water. Google Voice working fine in Safari - but not in Firefox. Running Max OS X 10.6.8 on a MacBook Pro. Any ideas? Tried the delete your cach

  • Cant get automatic scrolling text pane to work from other classes

    Hi guys, I've been creating a program that utilises JInternalFrames, one of which frames is an "event log" which is simply a Document I append text to, problem is I'm getting some strange logic errors. It works fine if it's just left alone and adds t

  • Visual Administrator

    I am trying to configure Web Services Security from within VA.  Specifically, I am trying to configure the Connection Settings for a Web Service Client. I specify the URL as type "SLD."  When I do this 3 fields are supposed to be displayed at the bot

  • Process must contain a start activity with no 'in' transitions.

    382: Design Validation generated 1 warning(s). You may save invalid definitions but they should not be used in running process. 352: Process must contain a start activity with no 'in' transitions. What it mean ???

  • Media browser in Lion Finder?

    Hi,  Updated to Lion and have a question.  I no longer see a media browser(or media section) in the left side of my finder windows. I want to be able to see photos without opening up iPhoto.  I have a "pictures" folder under favorites, but this does