Number of resources consumed ?

Experts,
For 100 identical machines, single resource is created with n=100 in capacity tab.
Requirement is, during process order creation, system should provide a provision for entering the actual number of m/c to be consumed. e.g before saving  user has to enter number of machine required for a single machine out of 100 machine.
How to achieve such requirement, if enhancement req. than suggest .
Man

AG,
I need to know out of 100, how many resources user want to use. when system find 100 avaialble capacity it assign whole load to it by considering capacities avaialble( let say sytem reserves 10 capacities), what user want is to not let the system decide/assign the capacities rather user should have option to decide/assign out of 100, e.g he want 3 m/cs reserved for a week.
This all should be done at process order creation level not at confirmation.This u can say is like a resource allocation process, how to accommodate ?
Man

Similar Messages

  • How to get the number of messages consumed by a MDB ??

    Hi all,
    How to get the number of messages consumed by a MDB displayed in OEM in a Java Application ???
    DMS ??? what use DMS ???
    tanks

    ok.
    Well using DMS is one way to get at these sorts of stats in a programmatic manner.
    There's a Java API you can use, or you could call out to the Spy servlet to query the DMS stats in either text or XML form.
    I don't have an MDB published so I can't show you specifiically, but here's the sort of query you can use to extract the data.
    http://localhost:8888/dms0/Spy?format=raw&table=oc4j_ejb_stateless_bean&recurse=children
    Which produces a table of the TEXT form:
    <DMSDUMP version='9.0.4' timestamp='1163456821185 (Tue Nov 14 08:57:01 CST 2006)' id='8888' name='OC4J'>
    <statistics>
    /oc4j [type=n/a]
    /oc4j/default [type=oc4j_ear]
    /oc4j/default/EJBs [type=oc4j_ejb]
    /oc4j/default/EJBs/jmsrouter_ejb [type=oc4j_ejb_pkg]
    /oc4j/default/EJBs/jmsrouter_ejb/AdminMgrBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     1     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     1     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    /oc4j/default/EJBs/jmsrouter_ejb/EnqueuerBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     0     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     0     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    /oc4j/default/EJBs/jmsrouter_ejb/TimerHandlerBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     0     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     0     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    </statistics>
    </DMSDUMP>
    Or produces an XML document of the form:
    http://localhost:8888/dms0/Spy?format=xml&table=oc4j_ejb_stateless_bean&recurse=children
    You can use the Spy console to find the table that contains the details for MDB and then take it from there.
    This is not what you specifically want to do, but it does provide a good overview of how DMS is used.
    http://www.oracle.com/technology/pub/notes/technote_dms.html
    -steve-

  • Number of Alerts Consumed by AlertInterval

    When I do a show stat virt I see the following information:
             Number of Alerts Consumed by AlertInterval = 744
                Sig 3653.0 = 744
    What does this mean? I checked the signature and the Alert Interval is set to 2. The Action is set to Produce Alert, so I am expecting it to send an alert to IME, but I don't see it.

    Only when the alert has at least one action will it be passed to the event action handler.
    So the other 59 alerts did not have any event action. Either no action was added directly from the signature definition, or the alerting type actions were removed because of summarization, or the actions were removed by filters.
    There are several signatures that are intentionally created without actions. These signatures are what we call meta component signatures. On their own they don't mean much and so we remove all actions and they do not generate alerts into the eventstore. They trigger internally in sensorApp but do not get written to the eventstore. These alerts are internally monitored by Meta signatures. When multiple component signatures are triggered, then a Meta signature may trigger and it is the Meta signature that would have a produce-alert event action and be written to the eventStore.
    With summarization the signature has a produce-alert action, but the summarizer routines see that the signature is being triggered multiple times with same addresses. The summarizer will allow through an alert on the first triggering. Later triggerings with the same address set will cause the summarizer to automatically remove the produce-alert action (and other alert causing actions). So the summarized alerts will not get written to the eventStore.
    NOTE: In your output this happened for at least 43 of these alerts.
    Filters may also be matching the alerts, and the filters may be removing the event actions.
    So if the event actions have all be removed (or none were ever added), then the alert will not be passed to the event action handler.
    In your output only 1 of the 60 alerts wound up with any actions needing to be executed.

  • Wrong number of resources in pager component

    Hi all,
    I wrote a custom Resource List Filter which I activated in a certain Layout Set.
    The filter only shows unread documents of the authenticated user and does what it should do...
    I only have the problem that the Pager element counts all resources an not only the filtered ones.
    A little example:
    I have 512 documents in a certain repository but only 301 unread documents. The Pager shows as last entry 512, but it should be 301. If I click on 512 the entry disappears and 301 is the last entry as it should be.
    Is there perhaps a possibilty to initialize the pager again after filtering to show the correct number of resources, or any ideas what else could be the mistake (i think there must be a mistake because that can´t be wanted behaviour)?
    Many thaks for your help
    Best regards
    Alex

    I assume you have this in a Java snippet and the method is defined within the JSP. Ok, then you should call as follows:
    String num = c(a,b,c);
    When you call a method, you don't include the Types in the call-- that's only when you define the method.
    Hope this helps.

  • OIM 11g - Restricting the number of resources to one on Request Creation

    Hi All,
    We have a requirement wherein when a requester tries to create a Provision Resource request type(be it for himself or for others), he shouldn't be allowed to request for more than one resource in a single request. If a user chooses more than one resource, he should be prevented from proceeding further and also a message should be shown to the user indicating that only resource should be chosen for this request.
    Can this functionality be achieved in OIM 11g?
    Any kind of help or suggestion is greatly appreciated.
    Thanks
    Deepa

    I already have an enhancement request for this as the only plugin which Oracle provides for request creation is ValidationHandler. The validation handler is called 'number of resources' X 'number of users' and there is no static construct in the plugin either.
    Thus workarounds:
    1. Check for multiple resource selection in your SOA Approval process (this should not be at the orchestration level) and reject the request if there are more then one selection.
    2. As Kevin pointed out, in 9x xlWebAdmin.properties file can be used to set the following properties for single resource selection during requests. You can try to look for this information oim 11g properties files and test it out. -1 here means no limit.
    request.resource.users.size=-1
    request.resource.organizations.size=-1
    request.resource.resources.size=-1-Bikash

  • SQL to find top 5 resource consuming queries

    I am new to DBA activities. Can someone please send me a query to find the top 5 resource consuming sql in the database.
    Thanks

    Sometimes I'm using this one:
    SELECT SUBSTR (a.sql_text, 1, 50) sql_text
    ,TRUNC (a.disk_reads / DECODE (a.executions,
    cutions, 0, 1, a.executions)
    ) reads_per_execution
    ,a.buffer_gets, a.disk_reads, a.executions,
    cutions, a.sorts, a.address
    FROM v$sqlarea a
    WHERE ROWNUM <= 5
    ORDER BY 2 DESC;
    Slightly modified...
    SELECT * from
    (SELECT a.sql_text sql_text
    ,TRUNC (a.disk_reads / DECODE (a.executions, 0, 1, a.executions)
    ) reads_per_execution
    ,a.buffer_gets, a.disk_reads, a.executions, a.sorts, a.address
    FROM v$sqlarea a
    ORDER BY 2 DESC)
    WHERE ROWNUM <= 5;
    Daniel

  • 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

  • Maximum number of resource in an appointement

    Hello,
    I made a set of rule to accept or decline an appointment.
    I also made address book group containing most of my resource. That to help finding on that is open at the moment. It's work great.
    The only problem is that sometime, someone make an appointment with all the resource. I named all my group "Salles-..." and all my resource "Salle-" (i work in a french place). I thought that if i detected the "Salles-" in the "to" list, it mean that it was an appointment with all the resource. Problem is, the detection do not work. The Salles- is not on the "to" list (or CC or CM), I seem to get change before the email get to the resource.
    My next try was to limit it to one resource but i don't see how to do that. My only idea was to make a rule that said that the "to" contain any member of the resource. But then i have to list them all in each resource rule. I have over 60 resources and i expect that to change often making that list hard to maintain.
    Anyone have a better idea?
    Thank,

    In article <[email protected]>, JPLaroche wrote:
    > group containing most of my resource ...
    > ... sometimes, someone makes an appointment with all
    > the resources.
    Option A) use a seperate address book so that you don't have to use a
    group.
    Option B) make a 'dummy' resource that is a member of the group 'do not
    use'/devnull/'ne pas utiliser' and make it a condition of the accptance
    rule that this resource in NOT in the a To: list. Or a higher rule that
    if it is present, Decline and stop rule processing.
    A more detailed "Try again SVP, this time without selecting the group"
    return message can be a part of the 'dummy's resource reply to any thing
    sent to it.
    Andy Konecny
    Knowledge Partner (voluntary SysOp)
    Konecny Consulting Inc. in Toronto
    "Give more than others think is wise
    Challenge yourself beyond what others think is right"
    Michael 'Pinball' Clemens

  • Determine number of resources affected by "transition in"

    If a MPR/Workflow is kicked off based on resources transitioning into a set, is there a way to determine how many records were transitioned in? E.g. the existing set already contains 50 resources and after the transition in, it contains 60. I basically
    want to find that 10 resources have been added since last time.
    Thanks.

    There is a couple of ways how to achieve it.
    If you want to know only the latest 10 and they were added during last month, you can query FIMService for requests or workflow instances with a name of workflow that was invoked. Then you can check targets of those requests
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Server maximum number of resources has been reached

    After downloading the "OS X Server Application" from the Apple Store and setting up the CalDAV service through my user, I cannot add events to the server's calendar. (I got the above error.) I was able to import events to it from my computer calendar, by first exporting to an .ics file. Any idea what might be going on? The user account is not limited by disk space on the Server applicaion.
    Thanks,
    Haynes Kelley

    No way: I had to create a new calendar and keep the old one as a 'read only' calendar just for hystorical uses...
    This is happened, to me, only with OS X 10.9.x clients and OS X 10.9.2/Server App 3.0.3 and not, for example, with Mac OS X 10.6.8 client on the same server/same calendar...
    Boh...

  • Resource Manager statistics

    Hi Gurus,
    i need to implement Resource Manager on a 10GR2 database. I will create 2 windows with a different resource manager plan to each of them. I have some questions about this:
    1. Is a default plan mandatory in the init.ora ?
    2. Is it the same to use an "alter system set resource_manager_plan= ..." or the function "switch_plan" to change the current plan ?
    3. When you change to a new plan, are statistics of the old plan saved ? and can we reuse them when we switch back to the old plan ?
    4. is the order "alter system set resource_manager_plan=''; reinitiate statistics to 0 ?
    5. are there some limits to the number of Resource Consumer Group, priority level, sub-plan ?
    Thank's so much.

    BlueR wrote:
    Hi Gurus,
    i need to implement Resource Manager on a 10GR2 database. I will create 2 windows with a different resource manager plan to each of them. I have some questions about this:
    1. Is a default plan mandatory in the init.ora ?
    2. Is it the same to use an "alter system set resource_manager_plan= ..." or the function "switch_plan" to change the current plan ?
    3. When you change to a new plan, are statistics of the old plan saved ? and can we reuse them when we switch back to the old plan ?
    4. is the order "alter system set resource_manager_plan=''; reinitiate statistics to 0 ?
    5. are there some limits to the number of Resource Consumer Group, priority level, sub-plan ?
    Thank's so much.1-2:
    {code}
    SQL> show parameter resource
    NAME TYPE VALUE
    resource_limit boolean FALSE
    resource_manager_cpu_allocation integer 1
    resource_manager_plan string
    SQL> BEGIN
    dbms_resource_manager.clear_pending_area();
    dbms_resource_manager.create_pending_area();
    dbms_resource_manager.create_plan( 'MYRESPLAN1', '');
    dbms_resource_manager.create_plan_directive(
    plan => 'MYRESPLAN1',
    group_or_subplan => 'OTHER_GROUPS',
    comment => '',
    cpu_p1 => NULL, cpu_p2 => NULL, cpu_p3 => NULL, cpu_p4 => NULL,
    cpu_p5 => NULL, cpu_p6 => NULL, cpu_p7 => NULL, cpu_p8 => NULL,
    parallel_degree_limit_p1 => NULL,
    active_sess_pool_p1 => NULL,
    queueing_p1 => NULL,
    switch_group => '',
    switch_time => NULL,
    switch_estimate => false,
    max_est_exec_time => NULL,
    undo_pool => NULL,
    max_idle_time => NULL,
    max_idle_blocker_time => NULL,
    switch_time_in_call => NULL
    dbms_resource_manager.submit_pending_area();
    END;
    PL/SQL procedure successfully completed.
    SQL> BEGIN
    DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA;
    DBMS_RESOURCE_MANAGER.SWITCH_PLAN(plan_name=>'myresplan1');
    DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA;
    END;
    PL/SQL procedure successfully completed.
    SQL> show parameter resource
    NAME TYPE VALUE
    resource_limit boolean FALSE
    resource_manager_cpu_allocation integer 1
    resource_manager_plan string myresplan1
    {code}
    3-4: pls, what you mean statistics?

  • Is there a way to control the number of consumed messages from JMS?

    Hi everyone,
    I have a BPEL process that is consumes messages from a foreign queue, performs a transformation, and passes it to Oracle Apps. I'm curious if there is a way to control the number of messages consumed at a time for processing.
    For example, if we place 50 transactions on this queue, I would like to only consume 10. And then as each one is processed and passed to Oracle Apps, I would like to pull another transaction off the queue. So basically I would only be processing 10 at the most.
    The issue I am having is we put 50 on the queue and the 50 are take off right away. But then half are making it into Oracle Apps and the remainder is failing with a JCA Connection Factory max connection error.
    Instead of changing the settings to get more through, I am wondering if it's possible to limit the number being processes at any one time.
    Thanks

    Hi,
    Have a look at the adapter.jms.receive.threads Property for JMS Adapter...
    http://docs.oracle.com/cd/E21764_01/core.1111/e10108/adapters.htm#BABCGCEC
    Cheers,
    Vlad

  • 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.

  • Setting the number of consumers for a topic

    Hi,
    I have a topic connection factory from which I can creating 2 topic connections and setting different clientids for each connection to one topic.But I get a error com.sun.messaging.jms.ResourceAllocationException: [C4073]: A JMS destination limit was reached. Too many Subscribers/Receivers for Topic : usmTopic user=guest, broker=localhost:7676(4227).Is there a limit on the number of subscribers I can have for a topic?..I could not find any configuration for this?..Or can I have only 1 connection to a topic?
    Not sure I understand what is happening?
    Thanks
    Reshma

    Yes, using multiple connections is more resource consuming. And from the description below, it looks like it wouldn't help. A small info first. The Client ID in topics is used to keep the messages for the consumers when they are disconnected (hence durable subscribers). For this, if consumers were to be able to share the same clientid, the broker wouldn't know which consumer has consumed the messages and which has not. So for this, each consumer has to have a distinct client id. Usually, I provided the client id programmatically, but because of your problem, I saw that there is another solution. Read on...
    From the 3.6 admin guide (must still apply with 4.1):
    If multiple clients obtain connections from the same connection factory object, set ClientID for a connection factory. Message Queue can then provide a unique ClientID for each connection obtained from that factory.
    So, this is what you have done. Here is the rest of the instructions....
    +To ensure a unique ClientID value, set the imqConfiguredClientID attribute using the following format: imqConfiguredClientID=$string. The ${u} must be the first four characters of the attribute value. If anything other than �u� is encountered, a JMS exception occurs upon connection creation.+
    Sounds like what you are seeing no?
    +The value for string is any value that you want to associate with a connection produced by this connection factory, such as Xconn. During the user authentication stage, Message Queue substitutes u:userName for u. For example, if the user associated with the connection is Athena and the string specified for the connection is ${u}Xconn, the ClientID will be u:AthenaXconn. This scheme ensures that each connection produced by a connection factory, although identical in every other way, will contain a unique ClientID.+
    The following may also apply to you, based on the exception you provided...
    +There is one case in which this scheme will not work: If two clients obtain a connection using a default user name such as guest, each will have a ClientID with the same ${u} component. At runtime, the first client to request the connection will get it; the second will not because MQ cannot create a connection with a non-unique ClientID.+
    So from this:
    1. Use the {u} in your connection id.
    2. Use different users than the default. Unless you are using an external ldap provider, you probably need to use iqmusermgr. This will be in the bin directory of the Sun MQ installation.
    HTH
    TE

  • Producer consumer puzzle

    Hello All,
    I have two arrays with me
    Producer array
    P1,P2,P3,P4,P5...Pn
    Consumer array
    C1,C2,C3,C4,C5...Cn
    Let us take arrays having 5 elements
    P1 P2 P3 P4 P5
    1 2 3 4 5
    C1 C2 C3 C4 C5
    5 4 3 2 1
    The output should be
    Result1
    (P1,C5),(P2,C4),(P3,C3),(P4,C2),(P5,C1).
    Results 2
    (P1,C5),(P2,C4),(P3,C4),(P4,C3),(P5,C2)
    Result N
    When forming such combinations the only criteria that needs to be kept in mind is we can never pair (Pi,Ci) when Pi<Ci.
    How do we generate all such combinations as shown above
    Thanks.
    Regards.
    NP

    Hi there,
    This is what I had in mind.
    Thanks.
    Regards.
    NP
    package mypackage1;
    import java.io.*;
    import java.util.*;
    class Class4
    public static int[] interchange(int t[],int count)
    int len = count;
    int hlen = len / 2;
    int temp;
    int t1[]=new int[100];
    t1=t;
    for( int i = 0; i <= hlen; i++)
    temp = t1;
    t1 = t1[len - 1 - i];
    t1[len - 1 - i] = temp;
    return(t1);
    public static void search(int a1,int a2,int c1[],int c2[],int count)
    //System.out.println("I am here");
    int pos_p;
    int pos_c;
    int i;
    for(i=0;i<count;i++)
    if(a1==c1 )
    System.out.println("This Producer i =" + i);
    for(i=0;i<count;i++)
    if(a2==c1)
    System.out.print("Matches with Consumer i =" + i);
    public static void main(String [] arg) throws Exception
    int dup_p[]=new int[50]; //Contains Producer array
    int dup_c[]=new int[50]; //Contains Consumer array
    int p[]=new int[50]; //Contains sorted Producer array
    int c[]=new int[50]; //Contains sorted Consumer array
    int i,j;
    int k=0; //Index for producer array
    int l=0; //Index for consumer array
    int m=0; //Index to keep track of count of elements
    BufferedReader console= new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Enter the number of resources you want to input");
    String input=console.readLine();
    int count=Integer.parseInt(input);
    System.out.println(count);
    System.out.println("Enter the resource values for producer array");
    for(i=0;i<count;i++)
    String var_input=console.readLine();
    p=Integer.parseInt(var_input);
    System.out.println("Reading done\n");
    System.out.println("Enter the resource values for consumer array");
    for(i=0;i<count;i++)
    String var_input1=console.readLine();
    c=Integer.parseInt(var_input1);
    //Making copies of the original array
    for(i=0;i<count;i++)
    dup_c=p;
    dup_c=c;
    //Sorting in Producer array in Descening order
    Arrays.sort(p,0,count);
    p=interchange(p,count);
    //Sorting in Producer array in Ascending order
    Arrays.sort(c,0,count);
    c=interchange(c,count);
    while(m<count)
    if(p[k]>=c[l])
    //search(p[k],c[l],dup_p,dup_c,count);
    System.out.println("Producer p="+ k + "Consumer c=" + l);
    k++;
    l++;
    else
    l++;
    m++;

Maybe you are looking for

  • [SOLVED] Fonts different in Chromium and Firefox

    I've installed all the microsoft fonts by copying over the TTF files from a windows installation, and as you can see, the fonts work in Firefox but not Chromium. How can I configure Chromium to use the MS fonts correctly? In Chromium settings I have

  • How to find this Search object relavant to which root object?

    Hi All,   how to find this Search object relavant to which root object?   As I am having search object 'BTQuery1O', so which is root object for this?   how to find this?

  • Metric shows real time value but does not show historical data

    I am using OEM 12c.I am facing an issue and I don't know where to look for problem. I had created one customized metric for percentage flash recovery area through metric extension.I deployed to it target databases. When I check it through Database --

  • UPGRADE from retired MS-7222 to Intel Core-iX / Pentium boards

    Dear all, I would like to ask you if it possible to replace my retired MS-7222 motherboard with a new generation motherboard certified for Windows 8 (supporting Intel Core i3 or Pentium D) without the need of replacing also the peripherals (hard disk

  • VNA labview

    bonjour, Je cherche à communiquer via le BUS GPIB avec un Analyseur de réseau Agilent PNA-X 5247A. Seulement l'appareil n'est pas reconnu par MAX. Quelqu'un a t-il déjà commandé un analyseur de réseau avec Labview ? merci, Adrien