DBMS Resource plan in 11.1

Hello,
I am using 11.1.0.7.0 2-node RAC on RHEL 5 (64 bit). I have enabled MIXED_WORKLOAD_PLAN in both the instances, with a modification to the threshold parameter for interactive group.
I set the action to 'cancel the SQL' for the interactive group if the execution time exceeds 90 seconds. This is working perfect.
My question is - Is there a way to capture the SQL ID that got cancelled along with session ID which was affected by the same? Does this information gets logged anywhere? Please can you help me on this?
Regards,
SK

I cannot help with the exact answer of your question, but I can give you a broader solution that might be of help.
We know that all SQLs that were canceled by the resource plan ran for more than 80 seconds, but less than 100 seconds. We can find all SQLs that run between 80 and 100 seconds and try to figure out which ones were terminated by the resource plan. We can use the resource plan definition, application logs and other application dependant sources to do the filtering. This method is not exact and could be quite labor intensive.
Assuming you are licensed to use ASH, you can use this queries to get all sessions that ran between 75 and 105 seconds:
During the recent past (minutes):
select session_id , session_serial# , sql_id , min_tm , max( exec_time) , count(*)
FROM
( select session_id , session_serial# , sql_id , min_tm , ( max_tm - min_tm ) exec_time
FROM
select session_id , session_serial# , sql_id , sample_time ,
max(sample_time) over (partition by session_id , session_serial# , sql_id ) max_tm,
min(sample_time) over (partition by session_id , session_serial# , sql_id ) min_tm
from v$active_session_history
where sample_time between <begin time > and <end time >
and sql_id is not null) )
where exec_time > interval '75' SECOND 
and exec_time <   interval '105' SECOND  group by session_id, session_serial#, sql_id, min_tm
having count(*) > 70Historically – depending on your ASH settings:
select session_id , session_serial# , sql_id , min_tm , max( exec_time) , count(*)
FROM
( select session_id , session_serial# , sql_id , min_tm , ( max_tm - min_tm ) exec_time
FROM
select session_id , session_serial# , sql_id , sample_time ,
max(sample_time) over (partition by session_id , session_serial# , sql_id ) max_tm,
min(sample_time) over (partition by session_id , session_serial# , sql_id ) min_tm
from dba_hist_active_sess_history
where sample_time between <begin time > and <end time >
and sql_id is not null) )
where exec_time > interval '75' SECOND 
and exec_time <   interval '105' SECOND  group by session_id, session_serial#, sql_id, min_tm
having count(*) > 7

Similar Messages

  • Resources not getting displayed in Resource Planning iView

    Hi,
    We are working in CRM 5.0. We have assigned the iview for Resource Planning for a Portal Role. The iView is also opening correctly.
    The Problem is that when we give a Particular Service Org Unit (Technicians Group) in Advanced Search, none of the Resources are getting displayed in the Gantt Chart and also no service order items are getting displayed.
    The same thing is working fine in GUI. All related WFM settings and resource creation report have been done.
    Please help.
    Regards,
    J.Prabananth

    Hi Prabananth,
    I am also trying to access Resource Planning iView from CRM through EP
    Workforce Management> Resource Planning
    While accessing the iView I am getting the following error
    The Application WFDS_RPA is Invalid.
    I have checked on the SICF transaction for the following BSP application
    WFDS_RPA.
    But I could not found one on the list.
    I have also checked the CRM BSP Application List. But It is not available there.
    tHAT'S WHY i AM GETTING THE ERROR.
    How can I check and get this BSP application ?
    Need ur help.
    Thanks and warm regards
    Purnendu

  • MRS - CRM Integration:  Resource Planning Node for CRM demands

    Hi all,
    We have a multi backend scenario where MRS 800 add-ons (ECC and NW add-on) have been installed in ECC. Demands can come from the ECC PM/CS orders or from the CRM system as Service orders.
    For PM/CS orders, from the work center of the activity or operation, the system determines the planning node and assigns the demand to that planning node. But we need help in identifying the Evaluation Path for determining the Resource Planning Node for demands coming from CRM. Currently we have to manually select the CRM Service Order to be able to view the demands in the MRS planning board.
    The service organization structure has been created manually in CRM and is not available in ECC system. We are unable to identify which organization structure can be used as resource planning structure (in the Planning board which is in ECC) for CRM service orders. 
    Please provide your inputs on these two issues in the MRS-CRM scenario:
    1. What is the evaluation path for determining the Resource Planning Node for demands coming from CRM system?
    2. Which organization structure can be used as resource planning structure (in the Planning board which is in ECC) for CRM service orders?
    I would appreciate any help in this regard.
    Thank you!
    Kajal

    You can find the related screenshots under this link
    [http://img706.imageshack.us/img706/9596/mrsevaluationpaths.jpg|http://img706.imageshack.us/img706/9596/mrsevaluationpaths.jpg]
    Thank you
    Simon

  • Resource planning in cprojects with xRPM or MRS?

    Dear Experts,
    To my understanding there are four options to perform resource planning in combination with cprojects:
    1.     Do a planning in cprojects only
    2.     Use resource planning application (RPA) from SAP CRM
    3.     Schedule resources with xRPM
    4.     Schedule resources with SAP MRS (Multi Resource Scheduling)
    I have a couple of questions:
    (a) Is it correct that I cannot assign resources to project roles in xRPM based on qualification matching? Is it right that xRPM is used rather for a long-term view to define the available capacity of projects/roles than assigning specific resources to roles?
    (b) How can help SAP MRS in comparison to option 1 (planning in cprojects)? I assume that I can do also in cprojects itself a qualification matching. MRS provides a more detailed qualification object to cover complex requirements, right? What else provides MRS what cannot be managed in cprojects itself?
    (c ) If we want to use a staffing process were project lead and resource manager doing the staffing and have the option to suggest or reject roles, we have the option to use xRPM or MRS, right? What are the differences? In MRS we have options like using several resource managers, softbooking/hardbooking or itu2019s possible to define the workflow who proposes resources and who is doing the final staffing (project lead or staffing manager), reasons for rejections can be configured etc. Are these options in xRPM available as well?
    Thanks,
    Angie

    Hi Angie,
    I have not implemented MRS or RPA so can only answer your first question. You cannot do a resource search via qualification in Portfolio Management (aka xRPM), typically you would do this in Project Management (aka cProjects) and this functionality works fine provided you have maintained qualification data for BP's and roles. Portfolio Management financial planning function can be used for a long term view as you have mentioned. However, it is also typically used to summarize and/or roll up resource demand / assignment to a bucket or portfolio level or summarize resources for multiple projects via initiatives or collections. You can also use a top down approach and at a high level plan values at the bucket level (i.e. forecasted demand or business case demand) and compare against detailed planned / assigned demand rolled up from project management.
    Hope this helps.
    Regards,
    Lashan

  • "You will not be able to publish your resource plan..."

    Hi all,
    Project Server 2010 with SP1 and Feb '12 CU. 
    We've started experimenting with resource planning and have found a situation for which I have no explanation.  For some projects, the resource plan functions work just fine.  But we have a few where the Publish option in the ribbon of the resource
    plan is greyed-out and a message stating "Your will not be able to publish your resource plan until you publish the corresponding project schedule".  I've found that by following the instructions and publishing the project in PWA works - the publish capability
    for the resource plan is no longer greyed-out. 
    HOWEVER, I don't know what's causing this situation in the first place.  New projects can be created and they don't seem to produce the greyed-out publish option.  Most existing projects won't behave this way either - but some do.  It doesn't
    appear to be a permissions issue since when the publish button is greyed-out it remains that way for project managers and admin alike.  Also, publishing the project from Project Professional doesn't work either, only publishing from PWA will do the trick.
    Any advice about how to avoid getting the greyed-out publish button for resource plans would be most appreciated. 

    Thanks Michael!
    As it turns out, this isn't quite the answer but you've definitely helped in figuring this out.  Based on some additional experimentation (triggered by your line of thinking!), it seems that a change to the project's task and/or resources will disable
    the publish capability for that project's resource plan - unti the project is published again in PWA.  So if you add a task, or resource, or change an assignment that will trigger this greyed-out behavior for the publish button in the ribbon of the resource
    plan.
    Also, I've found that publishing in project professional has no impact.  The only way to re-enable the publish capability for the resource plan is to publish the project in PWA.  Of course, the message that accompanies the greyed-out publish button
    states this explicitly but people like me (who lack a keen sense for the obvious) sometimes miss these subtleties.
    Thanks again for your response - quite helpful.

  • Project Online Resource Plan issues_Many

    I am trying to setup a client that only wants to use Project Server for portfolio planning and analysis. In this scenario they only want to assign generic resources (remember, no detail plans...only high level), and want to use the resource plan. Sounds
    simple, but I am finding a lot of issues with this scenario, primarily with resources plan.
    1. The resource plan seems to be checked out with no way to check it in other than through the force check-in.  On occasion it seems to get checked in but I can't figure out the steps.  I've tried with and without editing and publishing the
    project itself with no avail.  Sometimes the Publish option is still available (but I assume it wouldn't be if someone else checked it out) but sometimes it is greyed out.
    2. I can't assign capacity to a generic resource and use it in Portfolio Analysis.  This seems to be a feature that in my opinion was poorly conceived, but I'll leave out the details of this rant.
    3. and biggest issue which is definitely a bug and show-stopper.  Changing the date rage of an existing resource plan doesn't change the resource demand for a date range that was cut from the original. I can back the start date or extend the end date,
    but cannot move the start date or end date in.  What happens is that the grid changes just fine but the resource date range along with the demand for that time no longer in play still show up as project demand.
    I added this to the Project Online forum but all of this behavior is the same with Project Server 2013.  Nothing I could see in the forums.  Is this a new bug or can there maybe be a fix on the way?  Any comment or update would be greatly
    appreciated.
    Thanks...
    Larry Christofaro, PMP, MCITP

    msayani2 --
    Firstly, all of your people and machines need to b entered in the Enterprise Resource Pool.  For each of the machines you list, enter a Max. Units value that represents 100% multiplied by the number of machines you have.  For example, if you have
    three road graders, you would enter 300% in the Max. Units column for a Road Grader resource.
    Next, you will need to build enterprise projects, add the required people and machines as team members in the project, assign the resources to each task as needed, and then save and publish each enterprise project.
    To see how the workload is distributed for your resources, navigate to the Resource Center page and select the resources whose assignments and availability you want to study.  At the right end of the Resources ribbon, click the Resource Availability
    button.  On the Resource Availability, select the time range you want to use and you can then see the availability of your selected resources.  You can also click the Resource Assignments button to study how the resources are being used on tasks
    across all projects in Project Server.
    Hope this helps.
    Dale A. Howard [MVP]

  • Database Resource Plan not working...

    DbVersion: 10.2.0.4
    For some reason my resource plan is not taking effect. I've created 4 resource consumer groups. I've created a plan utilizing these consumer groups. The plan is enabled and is the top plan. The resource_manager_plan parameter is set to: FORCE:MYPLAN and I've also tried setting it to "MYPLAN" only.
    The Consumer Group mappings have been set at the service level. So depending on the database service you're connecting via you should be using a particular consumer_group.
    The problem is that everyone that connects regardless of what service they are using is routed to use the "OTHER_GROUPS" group (except for the sys and system users).
    I find this information with the following query:"
    SELECT USERNAME,SERVICE_NAME,RESOURCE_CONSUMER_GROUP FROM GV$SESSION;
    What am I missing? Do I need to bounce the database or something in order for a resource plan to take effect?

    user600345 wrote:
    Do I need to bounce the database or something in order for a resource plan to take effect?Not sure if restart of database will help.
    Some Documentation maybe helpful
    [Resource Part 1 | http://www.databasejournal.com/features/oracle/article.php/3296961/Oracle-Database-Resource-Manager-Part-1Overview.htm]
    [Resource Part 2 | http://www.databasejournal.com/features/oracle/article.php/3309981/Oracle-Database-Resource-Manager-Part-2-Resource-Plan-Management.htm]
    SS
    SS

  • Gantt Chart in Service Resource planning

    Hi All,
               I want help on Gantt Chart.I want to modify the gantt chart .can anybody tell me plaese where we can chage the gantt chart.My basic requirement is that i want display the multiple line in tooltip.currently his display the aal the data in one row.My second requirement is that ,i want to display the only 1 week when i display gantt chart as a weekly mode.where should i have to go and change the functionality.i think gantt chart display on web ui using java application.Please help me on this.
    Thanks in Advance..............
    Vishwas Sahu

    Hello Bhanu ,
    Go thru the link http://help.sap.com/saap/sap_bp/CRM_XX/HTML/index.htm
    and open C3O document for more information on Service resource planning.

  • 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

  • Distribution resource planning, Distribution requirement Planning

    Hi PP Gurus
    Can anyone tell me what is SAP-DRP(Distribution resource planning) . Also want to know
    1. Configuration steps for DRP
    2. Transactions to complete business scenario.
    3. Prerequisites to implement SAP DRP.
    Thanks in Advance
    Hemant

    Dear
    Distribution Resource Planning
    Distribution resource planning provides a framework for determining the need to replenish
    inventory by:
    Linking market requirements with manufacturing and demand management
    Relating current inventory positions and demand forecasts to production scheduling
    Matching material supply to manufacturing demand, and customer demand to product
    supply
    Process Flow
    1. You define all nodes in the network including plants, distribution centers (DCs),
    warehouses, and stock transfer points using the Distribution Network tool.
    2. You set up the material master record for each node. In MRP 4 of the material master
    record, you must define the deployment strategy for each material (the fair and push
    distribution options) as well as deployment horizon (push horizon). For the push horizon,
    enter the number of days for which the system considers the ATD quantity and any
    additional quantity produced. Any quantity produced beyond the push horizon is not
    considered in the deployment calculation.
    3. To calculate an available to deploy (ATD) quantity, use the availability check rule, DE, in
    Customizing, u2018Carry out control for availability check.u2019 The availability check and the
    deployment checking rule, determine the MRP elements that are used to calculate the
    ATD quantity.
    4. You create a forecast for each DC; for example, a sales forecast.
    5. You transfer the forecasted data to Demand Management. The system creates
    independent requirements.
    6. You perform a DRP run in each DC and in each supplying plant. The DRP run considers
    the quota arrangements defined in the network, available stock, sales orders, and
    independent requirements.
    The DRP run in the DCs creates releases for stock transport requisitions in the
    supplying plants.
    The DRP run in the supplying plants creates planned orders for production.
    7. You convert planned orders into production orders for manufacturing.
    You run deployment to produce stock transport orders for distribution of stock from the supplying
    plants to the DCs.
    Distribution Requirement Planning :
    Generates stock transport requisitions between locations.
    Accounts for time-dependent safety stocks when the replenishment stock is calculated.
    Initiates planning runs in a net change procedure or in a regenerative planning mode
    Deployment
    When demand is greater than supply, deployment calculates a fair share quantity based on the available-to-deploy (ATD) quantity and requirements in the distribution centers to be supplied.
    When supply is greater than demand, deployment calculates distribution of stock using pull or push logic within the distribution network according to planned requirements.
    Generates stock transport orders from suggested orders in the DRP plan.
    Prioritizes quantities supplied based on requirements types (customer order, forecast, and safety stock).
    Multi-Sourcing Using Quota Arrangements
    Lets multiple plants supply a percentage of the material required by a single location, which makes it possible to prioritize the deliveries made by plants and to specify maximum delivery quantities for particular time periods.
    Represents simple capacity constraints, and combines the percentage-based and maximum quantity approaches.
    Lets you establish minimum, maximum, and rounding profiles for lot sizing within the network.
    Lets you change the distribution network at future dates.
    Lets you offset delivery times for specific items from the sourcing location to the replenishment location.
    Single-Sourcing Using Special Procurement Keys
    Hope this above details will be useful for your requirement .
    Regards
    JH

  • Resource plan to limit execution time

    Hi,
    I am using 11.1.0.7 database. Can anyone guide me how should i create a resource consumer group/resource plan and assign to my user "dev" so that any query run by this user should not take more than 10 minutes for execution and should abort if execution time exceeds 10 minutes.
    Thanks
    Salman

    BEGIN
    dbms_resource_manager.clear_pending_area();
    dbms_resource_manager.create_pending_area();
    dbms_resource_manager.create_consumer_group(consumer_group => 'mytest_group', comment => '', cpu_mth => 'ROUND-ROBIN');
    dbms_resource_manager.submit_pending_area();
    END;
    BEGIN
    dbms_resource_manager.clear_pending_area();
    dbms_resource_manager.create_pending_area();
    dbms_resource_manager.create_plan( 'MYTEST_PLAN', '');
    dbms_resource_manager.create_plan_directive(
        plan => 'MYTEST_PLAN',
        group_or_subplan => 'MYTEST_GROUP',
        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 => 'KILL_SESSION',
        switch_time => 600,
        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.create_plan_directive(
        plan => 'MYTEST_PLAN',
        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 => NULL,
        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;
    BEGIN
    dbms_resource_manager.clear_pending_area();
    dbms_resource_manager.create_pending_area();
    dbms_resource_manager.set_consumer_group_mapping(
        dbms_resource_manager.oracle_user,
        'DEV',
        'MYTEST_GROUP'
    dbms_resource_manager.submit_pending_area();
    END;

  • Resource plan...1 or 2?

    Hi,
    We have an OLTP system with a batch processing. The requirement is to give 1st priority to OLTP processing and then to patch processing. To do this we are thinking about implementing resource plans in 10gR2. Should we use 1 resource plan or should we use one man plan and 2 sub plans?
    To give you guys some background we don’t have any specific time when our batch process starts. It could start at anytime while we are processing transactions. Batch processing is very CPU intensive operation.
    I am sure someone has implemented it on a large system. What is your experience? We appreciate all comments
    Thank you

    first of all thank you for your reply!
    batch process is all in the database. we have several jobs scheduled. also as at any given time only 1 plan can be active and as is said our batch process can start at any time while we process transactions.
    also could you please explain why you would have 2 services and 2 plans vs 1 service and 1 plan
    Thank you

  • Adding Booking Type Field When Building Teams via Resource Plans

    Question for the Project Server 2010 experts out there...
    When building a team for a Resource Plan via PWA, the Booking Type field does not display on the right side of the page (PWA/RM/BuildResPlanTeam.aspx) which makes it difficult to change the resource from Committed (our default) to Proposed. 
    Is there any way to add the field? 
    I do realize that after building your team you can drill into each resource and change the Booking Type using the "Edit Cutom Fields" function, however, the Booking Type field displays when building your team for Project so it seems odd
    that the field does not diplay when building a team for Resource Plans.
    Thanks!

    jebrabazon2,
    1) When you are changing the Booking Type using the "Edit Custom Fields:, you are actually changing the Resource's Default Booking Type across PWA, and not just for that Resource Plan.
    2) I agree that it would be intutive to have the  "Build Team"
    within the Projects vs. Resource Plans be the same, and I am not sure why there is a discrepancy, but here is a solution. You can display the booking type field within the "Resource Plan" view, so that users do not have to drill down into
    each resource. Please see the image below (from 2013, but applies to 2010).
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Need Resource planning tool in ECC 6.0

    Hi
    i need to findout Resource Planning Tool in ECC 6.0,Can anybody help me how to findout RPT tool in ECC6.0.
    Thanks & regards
    Vikram Gopal

    Hello,
    Resource Planning
    Use
    Resource planning is a planning aid. If you only know the quantities of consumed resources (see also: Resources) you can use resource planning to plan activity-dependent or activity-independent primary costs or revenues by quantity. You can carry out detailed planning of a cost element by subdividing the cost element on the basis of the resources. The system valuates the given resource consumption with a price, which you can store separately in the system.
    You can also link resources to a material or to a base planning object. This means that a resource or a base planning object has been entered in the resource master record. For the valuation of resource consumption during planning, the system uses the price of the material, regardless of whether you have defined a price for the resource during pricing (see also: Pricing).
    http://help.sap.com/erp2005_ehp_02/helpdata/en/17/316cc3b43011d19296c8d204c10000/frameset.htm
    Regards,
    Sourabh

  • Human Resource Planning Demo

    Hi,
          I want to create a demo on Human resource planning using IP. I have enough knowledge about IP and HRP. But actually I don't know much about HR planning using BI IP. I know about career planning, session planning and UDP also. But don't able to create a scenario for creating demo.
          If anyone can suggest me any scenario or can share example or demo, using i can create a demo, then It's really useful for me.
    Regards,

    Check the below links.
    http://help.sap.com/saphelp_nw70/helpdata/EN/84/b11d3ca2a25013e10000000a114084/content.htm
    http://www.cubeserv.com/produkte/hr_planung/index_en.html#

Maybe you are looking for