Pga_aggregate_target  and hash_join cost (anomalies)

Hi,
I've got some performance issues with queries using bind variables (BVP + histograms = evil).
I did some test cases in test environment where the only difference with PROD was pga_aggregate_target .
And was able to make plan changes w/o changing query .
Whole test was:
alter session set workarea_size_policy=manual;
alter session set hash_area_size=11131000;
and with that settings optimizer choose:
TABLE ACCESS FULL with HJ
over
nested loop with index Range Scan.
My question is can query plan depend on current hash_area_size value derivered from PAT parameter (is that dynamic during session life) ?
I can imagine that session can have different hash_area_size in different point in time when workarea_size_policy=auto,
because the amount of allocated memory depends on whole system load.
But this leads to anonalies in plans is that possible ?
During my test, query was reparsed because of hash_area_size change, nothing more.
DB 9.2.0.8 EE
Regards.
GG
Edited by: user10388717 on May 29, 2009 6:25 AM

But this leads to anonalies in plans is that possible ?Yes, it may affect plans in runtime. There are different causes to not shared cursors due to some changes besides query text change. It may be checked through [V$SQL_SHARED_CURSOR|http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch3199.htm#1125735] view.

Similar Messages

  • Report  for bom wise target and actual cost as well as qty at line item

    Dear Experts,
    Is there any standard tcode for bom wise target and actual cost as well as qty at line item level for the month.
    there is one tcode s_alr_87013127 but user has to double click in order to get line item details.
    I want to see line item wise breakup/bom wise target and cost cost as well as qty.
    Thanks in advance.
    regards
    RK

    Dear experts,
    I am still looking for a revert.
    regards
    RK

  • Report for extracting the actual and planned cost from service orders

    HI all
    we are creating a report in BI for Module - Customer service . LIke , the report is all about how many complaints created in the system and how many completed technically and what is the cost involved for each complaint .
    Like we want the comparision between the planned cost and the actual cost .
    Now to give the logic to the BI Team for planned cost and actual cost , please suggest the flow of logic or table flow to arrive the planned and actual cost
    thanks in advance

    Hi Marthand,
    I am not sure which datasource your are using. In this case, you can use the 0VALUETYPE to differencitae between th eplan and actuals. Normally Plan which is budget will have value 050 and for actuals will have 010. For costs, you will have one key figure and at the reporting level, you will have the costs restricted by the value type for plan and actual to make comparisons.
    Hope this helps.
    Regards,
    Srinivas

  • Report for production order with actual and target cost for each

    Hi
    Is there any report that gives me the list of all production orders in a month with its respective actual and target costs?
    I can use COOIS to get a list of production orders, then double click on the prod order, then click on goto and then to cost analyis.. but can i avoid going through all this and get a report with the details i need?
    thanks in advance

    Thanks a lot for that.
    I'm a little confused with the columns in the report.
    Which columns should I keep for my requirement? -
    Production Order
    Total Target Cost
    Total Actual Cost
    Total Actual Qty
    Total Target Qty
    Thanks

  • PIE chart report for planned, Actual and variants cost

    Hi Gurus,
    Is there any report provides information of Plan cost, Actual cost and Variants cost for sales order or production Plan in PIE CHART format or any other chart diagram.
    Regards,
    Ram Krishna

    Hello,
    Go to relevant S_ALR* report.
    For example execute
    S_ALR_87013611
    Settings ==> Options
    Office Integration => Microsoft Excel
    Remove Worksheet Protection
    ignore the warning message.
    Go to insert tab on the MS excel.
    Select the report data.
    Click on pie chart.
    You will be able to see the pie chart.
    Regards,
    Ravi

  • Inventory Report-Replacement path for Base UOM to Case and Standrad Cost

    Hi, We have a Scenario as below:
    Question1:
    We have a multiprovider contains 4 infocubes and 2 Master Data objects
    a.Demand
    b.Inventory
    c.Sales Orders
    d.In Transit
    Master Data objects
    a. Material (contains Base UOM to Case as Key Figure Attribute and also Base UOM as an attribute)
    b. Material Location (Contains material as an attribute and also Standard Cost as a Key Figure attribute)
    At the report level two formula variables are defined with replacement path for showing the Base UOM to Case and Standard Cost in columns.
    We have 4 reports on this multiprovider. There is a dialy sales report which gives the following details
    Material, Location, MRP Controller, CalDay, Base UOM, Actual Sales(AS), Dependent Demand(DD), Consumption Qyt(CQ), Base to Case UOM, Standard Cost
    In this report for all the records the Base to UOM and Standard Cost column is coming with values which is nothing but the replacement path on the material master key figure attribute. Though this report is on the multiprovider all the major keyfigures (AS, DD and CQ) are coming from a single cube( this is an observation from myside).
    We have another report which is the Inventory Report with the following details:
    Material, Location, MRP Controllder, Calday, Base UOM,      Unrestricted Inventory(UI), committed Inventory(CI), Back Order Qty(BOQ), In Transit by Sh/Rec(ITS), In Transit Pipeline(ITP), On Order Qty (OOQ), Current Inventory Position (CIP), Quality Inspection Stock(QIS), Block Stock(BS), Base to Case UOM, Standard Cost
    Now in this report for all the records the Base to Case UOM and standrad cost is not showing up. Is there anything which needs to be done in order to get the Base to Case UOM and standard cost for all the records.
    Question2:
    When Non-Cumulative and Cumulative key figures are combined at the multi provider and also at the report level, will there be any problem?
    Regards
    Vijay

    Hi,
    I think you can proceed with virtual characteristics for this.In the code you can truncate the time and you can display on the date:
    Regards
    Prasad

  • Function module for calculating planned and actual cost of production order

    Hi ,
    Do we have any standard function module for calculating planned and actual cost for production order?
    i need to implement this in a Z-report.
    Thanks
    Srini

    Hi,
    try below function module
    CRMCO_GET_PLAN_ACTUAL_COSTS
    CO_IH_GET_PLANNED_COSTS_TOTAL
    Regards,
    Sankaran

  • Why we use different clearing account for GR/IR and planned cost clearing a

    My client ask for using same account for GR/IR account and all planned cost clearing account.
    i try to convince it should be different accounts but he needs a logical answer.
    Why we use different clearing account for GR/IR and planned cost clearing accounts?

    Dear friend.
    u just tell him while doing GR it will debited n  while doing IR it should get credited.hence we  need to take diff G/L account or same account.
    regds
    nasir

  • How to calculate the Current APC (Acquisition and Production Cost)

    Hi,
    Please help me how to calculate the Current APC.
    The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
    The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
    The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line “Acquisition Value” and column “Posted values”.
    I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic.
    Please help me.
    Thanks in advance,
    Satish

    Hi,
    you'll find the logic in fm FI_AA_VALUES_CALCULATE
    A.

  • ERS and delivery costs

    Hi guys,
    We have following two problems in case of ERS vendors.
    1) We have certain delivery costs also in purchase order.  The same vendor will receive material payment and freight related payments.  In MRRL transaction, we select "Selected goods items + Planned del costs"  and run MRRL.  But after this also, amount excluding freight amount is posted in the invoice and delivery cost is not being picked for invoice.  How to get material cost + delivery cost also in one invoice
    2) In another scenario, we have different freight vendor.  For this we are configuring ERS for delivery costs also.  But the problem is in configuration we have to mention the vendor code in "Specify Automatic Settlement of Planned Delivery Costs".  Can we give vendor code as "  *  " here?  Or is there any other way of doing configuration without mentioning vendor code and it is applicable for all vendors ?
    Please suggest the solution for the above two problems.

    Hi Pankaj,
    Thanks for ur reply.  This will work.  But my problem is with this, we have to include all the freight vendors in configuration.  But we do not know how many vendors are there for the company.  If any new vendor is created, who has to enter this in the configuration..
    Is there any other way of making this functionality applicable for all vendors.
    Other problem is in our PO we have basic rate and 3 to 4 delivery costs,.  We have made 103 and then 105 and run ERS run and arranged payment to material vendor (it is same for both material and freight)
    But for some reason we are making return delivery against material document with 105 movement.  When we run MRRL for this, it will generate credit memo for the quantity returned to vendor.  But delivery costs are also added.  We want to avoid delivery costs in credit memo and it should only take material cost
    How to acheive this?  Please help me out

  • Goods and delivery cost processing at one instance through MIRO

    Hello,
    Is there any possibility of doing bill wise MIRO for both goods and planned delivery cost in a single screen apart from refering PO and option goods+planned delivery cost?
    The scenario is; vendor is common for both goods and delivery cost,organization want to pass MIRO bill wise for goods and delivery cost at same instance.
    Regards

    Hi
    The scenario is; vendor is common for both goods and delivery cost,organization want to pass MIRO bill wise for goods and delivery cost at same instance.
    If vendor is same we can do it for multiple Po at same instance in MIRO,what Mr, Bijay Kumar said ,follow this
    Regards
    Kailas ugale

  • Reversing A/P Invoice posted with wrong date and inventory cost adjustment

    Here's the situation:
    We had a PO dated 9/1/09 for items with a cost of $14.50, a Goods Receipt was entered 9/15/09 for the items with the same cost on the PO of $14.50.  Somehow the order got lost in the mix and the AP invoice wasn't entered until today, with a posting date of 1/21/10 and the cost was corrected per the original vendor invoice to the right amount of $19.33.  The invoice was actually dated 9/15/09.  This resulted in hitting the vendor, purchases clearing and the inventory account (for the cost adjustment) in January 2010 when it should have occurred in September 2009.
    The inventory itself has come and gone in the time between the GR and when the invoice was done with the incorrect date.  Normally I would try to reverse the transaction with a Credit Memo and start over, however since the inventory side happened so long ago, I don't see any way of easily going backwards.  I thought about doing service CM/invoice but what I am most concerned about is having the inventory valuation occur properly at the correct time.  I'm not sure how to go about this.
    Using SAP B1 2007A PL42 with moving average inventory.
    Any thoughts would be appreciated.

    Nicole,
    I am afraid you may not have ability to do the adjustment based on historical date that long times ago.  You know, the moving average has limited calculation based on current quantity and cost.  There are no options to go backward especially new year is coming.
    Thanks,
    Gordon

  • Acquisition:Acquis. and production costs' could not be found for area 01' in ABZON

    Hi  All
    I m getting one error 'Account 'Acquisition:Acquis. and production costs' could not be found for area 01' in ABZON. I know we have to maintain accounts using Tcode-AO85 but
    1) how to know the correct Account Determination.
    2) How to know the correct G/Ls to be maintained in AO85.
    Pls advice.
    Thnx in advance.
    Regards
    Pankaj

    Hi,
    In ABZON, if you are acquiring with existing asset then you cna have access to account determination / asset class from asset master. If you are also creating new asset then you will have access to asset class.
    In OAYZ, we assign account determination to asset class. and in AO85, we asign GL account to account determination.
    Hope this will help you.
    Thanks,

  • AIAB - Account Acquisition:Acquis. and production costs could not be found

    Hi Guys,
    I want to doing Settle Asset Under Construction with AIAB,
    when i doing Process distribution rules with target Asset on time-dependent it's Cost Center, it's no problem and success
    but if i doing Process distributin rules with target Asset on time-dependent is Internal Order, so i can't process and show error message : Account 'Acquisition:Acquis. and production costs' could not be found
    so can any body give me the solution, where is the problem ??
    Thank's
    Best Regards
    Ferry

    Hi,
    In AO90, check for the Account 'Acquisition:Acquis. and production costs' .
    Then for the GL account check the field status group.  May be Cost center might be mandatory.
    Regards,
    Sridevi

  • Account 'Acquisition:Acquis. and production costs' could not be found for a

    dear all
    when i am posting periodic asset postings through ASKB below error is comming ple help
    Account 'Acquisition:Acquis. and production costs' could not be found for area 90
    Message no. AU133
    Diagnosis
    When creating the accounting document, the system could not find account 'Acquisition:Acquis. and production costs' in depreciation area 90 for company code SCIL.
    Procedure
    Enter this account in the account determination for Asset Accounting.
    thanks

    Dear bikkina.prakash
    please check were you properly maintained the AO90 for GLs for Depreciation
    also check whether you changed any depreciation key in asset master(means previously you  run depreciation. by mistakenly any body changed)
    Regards
    shankar

Maybe you are looking for