What-if Analysis

Hi Gurus,
I would like to help me to solve this issue :
Actually we calculate Rev like this : Revenue = SalesPrice - Cost - Tax
What-if :
What will be the SalesPrice if we want to increase the Revenue by 10%.
The type of tax is determined by the amount of the SalesPrice.
There is same functionality in Excel Solver Add-in , that start from an estimation of the SalesPrice then found tax and check if the value is equal to Revenue by 10% , otherwise it loop.
Do we have this functionality in SAP BPC ?
Thanks

Hi,
I initially didn't think this was going to be possible without creating staging tables (which would only require a CTAS sql statement, not a dbms_wm.export) as suggested, but the following might work:
1. Create a type that contains the required columns.
2. Create a pipelined function that returns a table type containing the row data and takes the workspace name as an argument. This function would execute GotoWorkspace, followed by the query, and then return the data. The database should be able to handle the differences in the session context since the queries are separate.
3. Create the sql query invoking the function one time for each workspace/context you are interested in. For example,
SQL> select * from table(return_ws_data('LIVE')) t1, table(return_ws_data('WS1')) t2 where ....
Note that after the query finishes, the session is in the workspace for whichever function executed last. So it would be a good idea to execute GotoWorkspace again after the query finishes to be sure as to which workspace the session is currently in.
Other possibilities would be to:
1. Use the MW view after executing SetMultiWorkspaces.  However, this wouldn't work for any queries that require GotoDate.  This view could be joined with a query from the original table name or with the another reference to the MW view using predicates to get the appropriate rows.
2. Using staging tables as mentioned
There have been attempts in the past to embed the GotoWorkspace into a function that is executed within a where clause predicate. I do not think that would work as outlined here: Re: Setting context inside a query - linear and reliable?
Regards,
Ben

Similar Messages

  • Using the new EPMDriverBasedRefresh function for What-if Analysis

    Hi,
    A new function is available that supposedly enables easy what-if modelling in BPC. This sounds great because currently for what-if analysis, you need to duplicate data in the database (using differnet categories or data sources) which can be time consuming and impact overall performance.
    Has anyone got any experience with this EPMDriverBasedRefresh function? There is some documentation on SAP's userguide but there are no specifics on the type of logic that is supported for scenario outputs i.e. is it only Member Formula Logic (Account 1 x Account 2 = Account 3), or can it support more complex scenarios such as running through Default Logic (and any BAdIs you may have) to retrieve the modelled output? (This would be awesome!)
    32.20 has the detail in the userguide: https://help.sap.com/businessobject/product_guides/boeo10/en/EPMofc_10_user_en.pdf
    and it says:
    "This function enables you to refresh specific rows or columns of one or more reports, based on a specified range of data drivers whose values you can modify.
    Additionally, you can specify to refresh a whole report that is outside of the specified range of data drivers.
    This function can be used for example for what-if analysis."
    My testing has found that it does not run default logic (where our driver-based calculation BAdI is called).
    Any experience from fellow SDNers would be much apprecited! Otherwise I'll put a call into SAP to get the documentation expanded a little.
    Cheers,
    Nick    

    Hi Nick,
    It looks like this function only deal with the report refresh with multiple reports in one workbook...
    Not extremely useful. If I am wrong, please correct me.
    Vadim

  • Hyperion Planning - What If Analysis

    Hi,
    I have a requirement to do what if analysis.  Althouh I know how to Exchange Rate functionality works in HP.
    Example - If I want to see the variation in COGS  USD by chaning the FX rate on-fly.

    I had checked that document , but i need some real time process. What is required, from where we need to start? What are the required components like pre-requisite?

  • Handling Relationships in What-If Analysis Worksheets.

    Hi All,
    I am currently working on a rulebase in OPM v10.4 where we have used quite a few relationships and the final output for the rulebase rests on certain selections in these relationships.
    Global
    | ->The Company Employee
    |--------------> The Company Employee's Position
              (Relationships - the company employee is the manager of(Many to Many),
              the company employee is the team lead of(Many to Many),
              the company employee is the project manager of(Many to Many))
    I am testing the same using what-if analysis worksheets but i am facing some issues.
    1. I can't see any of these "*relatioships*" when I select "*Add Columns*" in the "*the company employee*" or "*The Company Employee's Position*" worksheets.
    2. When I select "*Add Worksheet*" and then check "*the company employee is the manager of*" or "*the company employee is the team lead of*" or "*the company employee is the project manager of*", I am able to add a new worksheet with these name but when I try to select "*Add Columns*" in any of these worksheets then I get an message which says "*All 'the company employee is the manager of' columns are already selected*". I get similar messages for all the relationship worksheets.
    I am not able to find a way to test my rulebase using the what-if analysis worksheets as I am not able input the "*Relationships*" that I have used in the rulebase anywhere in the What-If analysis worksheet(s).
    Any pointers on this will be of great help.
    Thanks
    Bijay Mishra
    Edited by: 993514 on Mar 13, 2013 2:38 AM
    Edited by: 993514 on Mar 13, 2013 2:39 AM
    Edited by: 993514 on Mar 13, 2013 10:52 PM
    Edited by: 993514 on Mar 14, 2013 4:42 AM

    Hi Frank,
    Thank you very much for the reply.
    In my rulebase all the relationships that I am using have the same "Source" and "Target". It is "the company employee". Right now I have removed the entity"the company employee's position" which was contained by "the company employee" just to make it simpler to explain.
    So all the relationships I am using under "the company employee" have the same "Source" and "Target",i.e. "the company employee".
    Here's the new structure(Nothing has changed wrt the relationships though):
    Global
    |------------>the company employee
    +(Relationships - the company employee is the manager of(Many to Many),+
    the company employee is the team lead of(Many to Many),
    the company employee is the project manager of(Many to Many))
    So when I am adding a worksheet for the relationship lets say "the company employee is the manager of(Many to Many)" I am getting one column "the company employee #". But as our "Target" and "Source" is the same we can't add a duplicate column "the company employee #". It throws a duplication error we do and rightly so.
    Even in the Oracle Policy Modeling User's Guide which I always refer to, the "Source Entity" and the "Target Entity" are different. Something which is not the same in my case.
    How to make it work in this case????
    Thanks Again Frank
    Looking forward to your response. It would of great help.
    Thanks
    Bijay Mishra
    Edited by: Bijay Mishra on Mar 15, 2013 12:00 AM
    Edited by: Bijay Mishra on Mar 15, 2013 4:10 AM

  • Decision summaries in what-if analysis spreadsheets

    We are testing what-if analysis spreadsheets and we love it.
    We have an interesting puzzle. In one test, we have 100 source attributes and another 50 attributes derived from the rules.
    The rules execute and return monetary values. Everything works as advertised.
    However, we want to discover which source attributes were really the key factors in the decision as we look at the spreadsheet. Ideally, we would like to be able to produce 2 additional summary columns in Excel. One summary column would tell us that attributes A, C, and D increased the monetary amount. The other column would tell us that attributes B, E, and F decreased the monetary amount.
    At the moment, the only thing I can think of doing is some complex formulas / reports in Excel itself combined with OPA rules. This is less than ideal.
    I can put logic in OPA, but I am basically trying to recreate my own summary decision report and I still have the problem of concatenating text to create the summaries. I am not sure how to concatenate text into a running description. For instance, I can't put a rule that concatenates text: txtPositiveKeyFactor = txtPositiveKeyFactor & "The age column was a major positive factor", etc... ...or can I?
    Any thoughts?
    BTW, 2nd question: how do you put a carriage return / line feed into a text attribute in OPA?
    Edited by: Paul Fowler on Aug 3, 2012 6:21 AM

    To tell whether or not an attribute increased or decreased the overall value, you'll definitely need to create additional goal attributes for those things. E.g. attribute increased the outcome if...
    You could then have each of these as additional outcomes, and use Excel to create the concatenated text in an additional (non OPA-populated) column.
    As for your second question, I'm not sure that OPA actually supports CRLF in a text attribute - but I could be wrong.
    Davin

  • What-if Analysis on Bom Component Quantity

    Hi ,
    Is it possible to do What-if analysis on Bom Component Quantity ? As Users wanted to do what if analysis for Gross Die per Wafer. We tried creating one measure for GDPW and use the if condition in BOM Custom Roll up for eg. if (isNull("GDPW"),Component_Qty,"GDPW") but it is not working for What-if Analysis. Do i need to change something in On-Change formulae in BOM Custom Roll up.
    Thanks
    Lokesh

    Hi ,
    We are able to load the GDPW for Die level (only one stage )and we have a condition to validate if the measure is null it will take the component_Quantity or else it will take the 1/GDPW measure value. we are doing it for 3 purposes :
    1. To get the Accurate value of GDPW which is equal to 1/Component_Quantity (GDPW will be accurate only if we get 30 decimal places value in calculation)
    2. As part of information provided to Users as they wanted to see it.
    3. To do What-if Analysis (if Possible).
    We could have use 'todouble' for the accuracy but we were thinking of what if analysis, and user visibility also.So far calculation is coming nicely but it would be appreciated if you can give pointers for the risk involved in keeping GDPW as measure.
    Thanks
    Lokesh
    Edited by: Lokesh Rathi on Sep 21, 2011 6:38 AM

  • What is Analysis Authorisations

    Pls let me know what is Analysis Authorisations

    hi friend,
    <b>
    Analysis authorizations are required of all users that want to display data from authorization-relevant characteristics or navigation attributes in a query. This type of authorization is not based on the standard authorization concept of SAP. Instead, they use their own concept that takes the features of reporting and analysis in BI into consideration. More and more users are gaining access to query data with the distribution of queries using the BEx Broadcaster and publication of queries to the portal. With the special authorization concept of BI for the display of query data, you can protect especially critical data in a much better way.
    Only when the user has been assigned the appropriate authorizations can he/she define and execute a query or navigate in a existing query. Analysis authorizations are checked in the dialog for opening a query. When a query is opened, the authorizations for the individual objects are also checked.
    All users who want to display transaction data from authorization-relevant characteristics or navigation attributes in a query require analysis authorization. This type of authorization is not based on the standard authorization concept of SAP. Instead, these authorizations use their own concept that takes the features of reporting and analysis in BI into consideration. As a result of the distribution of queries using the BEx Broadcaster and publication of queries to the portal, more and more users can access query data. Using the special authorization concept of BI for the display of query data, you can protect especially critical data in a much better way.
    If you have done an upgrade to SAP NetWeaver 2004s, you can decide whether you want to continue to use the current reporting authorization concept or switch to the new, more user-friendly concept for analysis authorizations.
    SAP recommends that you switch to the new concept so that you can benefit from the new options and easier administration.
    By default, the new concept is active; support is no longer provided for the old concept.
    Complete compatibility between the two concepts is not possible. Existing authorization concepts must therefore be converted. Migration has to be completed manually or using a tool. It always requires subsequent manual work.
    Analysis authorizations are not based on authorization objects. Instead, you create authorizations that include a group of characteristics. You restrict values for these characteristics.
    The authorizations can include any authorization-relevant characteristics and treat single values, intervals and hierarchy authorizations in the same way. Navigation attributes can also be flagged as authorization-relevant in the attribute maintenance for characteristics and can be added to authorizations as separate characteristics.
    You can then assign this authorization to one or more users.
    </b>
    The following links would help you to understand this concept better
    http://help.sap.com/saphelp_nw70/helpdata/en/42/f0d71d75433ee9e10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/55/46eb411a7f6324e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/42/f0d6ca75433ee9e10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/66/019441b8972e7be10000000a1550b0/frameset.htm
    hope this helps.
    Pls reward points if useful..
    Regards,
    Awaiz

  • Need suggestion in doing functionality similar to What-if Analysis?

    Hi,
    I have to develop a line chart with some requirements which is little bit tricky. So, was checking out if some one can help me out here. My scenario is explained below:
    Suppose if you are a Oil drilling machinery supplier and you receive invoices for drilling machine order from your clients every month. Now last year because of the issue like BP oil spill in gulf of mexico, and this year Japan's Tsunami the client has not received many invoices from oil drilling companies which are working in those areas.
    So my invoices numbers are like in Feb 2010 was 10000, in March 2010 was 11000, and in April 2010 was 11500, and after the incident in April 2010 the May 2010 values are 5000, June values are 5500, July is 5700, and August 2010 is 10300.
    Same kind of deviated values happened after Japan Tsunami. ( i have just taken these examples to let you understand my problem clearly).
    Now with the deviation in invoices after April 2010, and the business restoring to its normal sales after 4-5 months, let us assume that June 2011 invoices are 11900.
    Now my user wants to see a line chart in which he will have last six months of data (Dec-2010 to May-2011). Now they want to have another series in the chart which is a prediction of the future three months values. Also they want an option where in they want to see if some disaster happens what could be the drop in their invoice numbers.
    For the first prediction i think i can use Trend Analyzer and forecast it to three months by feeding the last 6 months of data and use the resultant values in the series. But for the second scenario what can i do to retrieve a deviation in values.
    Please let me know if you need any other details here.

    Nicolas,
    I think my question was incomplete. Here i am not trying to see of how much deviation happened in my historical data but trying to find what could be the deviation in my future data. As i stated if the values for invoices in April 2010 to May 2010 dropped by 5000 because of a disaster, and after couple of months the business restored back to its regular invoices around 11000.
    Now in future consider today is July 2011 and they got 11700 invoices already to be delivered for this month, they want to see a forecast or predicted value for August, September, October of 2011. For forecasting i used Trend Analyzer and feeded the last 12 months of data and i was able to get August, September, October values using the Linear Regression option in the component (the values were some were around 11767, 11821, 11853).
    Now if some incident happens like i stated above like an oil spill for their major client and they stopped ordering the machinery how would the forecast values change. For this i understand that i have to feed a data as far as 4-5 yrs and see how deviation is happening because of disasters. But, can we do it manually in Xcelsius is what my question.
    I went online and came to know of a tool called "Predictive Wrokbench" but the BI team Manager do not want to purchase the licence of a tool which is used only for only a single dashboard (which totally makes sense).

  • What is Analysis Authorizations in BI 7.0?

    Hello BW Gurus,
    Greetings!!!!
    Please forward the relevant documents (<b>Analysis Authorizations and also about data migration from 3.0 to 7.0</b> ) to the ID- <b>[email protected]</b>
    Points will be rewarded..
    Best Regards,
    Priya

    Hi Priya,
    These would be great help to you,
    Upgrading to SAP NetWeaver 7.0 BI - The Details doc.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10564d5c-cf00-2a10-7b87-c94e38267742
    Please check these blogs for full details:
    /people/prakash.darji/blog/2006/09/22/rolling-out-the-new-sap-netweaver-2004s-bi-frontend-tools?page=last&x-showcontent=off&x-order=date [original link is broken]
    https://weblogs.sdn.sap.com/pub/wlg/4668?page=last&x-order=date [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6a19f233-0e01-0010-6593-c47af5a8df3b
    Some Insights..
    NW2004s Upgrade - Front-End Migration Strategy
    https://forums.sdn.sap.com/click.jspa?searchID=3914335&messageID=2331907
    Migration of Data Sources
    https://forums.sdn.sap.com/click.jspa?searchID=3914335&messageID=3369391
    Migration - Web Templates from 3.x to NW2004s
    https://forums.sdn.sap.com/click.jspa?searchID=3914335&messageID=2052465
    Migration question
    https://forums.sdn.sap.com/click.jspa?searchID=3914335&messageID=2935414
    Migration Transformation NW2004s Datasource
    https://forums.sdn.sap.com/click.jspa?searchID=3914335&messageID=3034054
    Analysis Authorization Migration Question
    https://forums.sdn.sap.com/click.jspa?searchID=3914335&messageID=2537477
    NW2004s Data flow
    https://forums.sdn.sap.com/click.jspa?searchID=3914335&messageID=3447826
    Visual composer migration
    https://forums.sdn.sap.com/click.jspa?searchID=3914335&messageID=3775098
    Rfer thez threads.. u will get good idea..
    /thread/439486 [original link is broken]
    /thread/377643 [original link is broken]
    Migrate Transformations
    /message/3034624#3034624 [original link is broken]
    /thread/178564 [original link is broken]
    For Data Flow:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/f00e2696d24c5fe10000000a155369/content.htm
    /people/prakash.darji/blog/2006/09/22/rolling-out-the-new-sap-netweaver-2004s-bi-frontend-tools
    Assign points if it helps,
    Regards,
    Mani

  • What-if Analysis Solver

    Hi Gurus,
    I would like to help me to solve this issue :
    Actually we calculate Rev like this : Revenue = SalesPrice - Cost - Tax
    What-if :
    What will be the SalesPrice if we want to increase the Revenue by 10%.
    The type of tax is determined by the amount of the SalesPrice.
    There is same functionality in Excel Solver Add-in , that start from an estimation of the SalesPrice then found tax and check if the value is equal to Revenue by 10% , otherwise it loop.
    Do we have this functionality in SAP BPC ?
    Thanks

    please any update on this issue , waiting for you support

  • Analysis Authorization

    We have a need to restrict the majority of our users from seeing transactions of few business accounts.  The restricted accounts can be based on a specific gl account, fund range, or they can be a combination of a fund and cost center (or fund and fund center).  Until we become more familiar with this process, we are only concerned with 0FUND and it's restricted ranges, so below my question is just about 0FUND.. 
    We need to explore and understand what abilities analysis authorizations give us. I have done a lot of reading, but so far all of the pieces are not falling into place.  I am on the BW team and working with the security team to get this accomplished.  At this time whereever 0FUND is located in an existing authorization, it has a "*" to indicate the user gets all values.  We have already gone live; will every authorization currently in use with 0FUND have to be changed?  Is there a detailed How-To located somewhere?
    thank you in advance for your help.
    LLK

    Hi Linda,
    SUIM - User Information System is a TRANSACTION CODE. (Its not SUM)
    Execute SUIM and follow the path mentioned below:
    SUIM -> User -> Users by complex selection criteria -> Users by complex selection criteria. In the Authorization object field mention S_RS_AUTH and in the field mention the name of the analysis authorization which you want to search for.
    The output would be users who have access to the analysis authorization that you gave in the search criteria.
    Since in your case there would be a lot of analysis authorizations with * in 0FUND,  it would be better to identify the roles first and then the users assigned to these roles.
    You can identify the roles by browsing the table SE16. Just give the object name and all the analysis authorizations in the multiple selection on appropriate fields. Then use SUIM to identify the users who have access to these roles.
    SUIM -> User -> Users by complex selection criteria -> By Roles.
    You can also display the roles in this report by pressing the Roles button at the top. Apply filter to restrict the roles to your identified roles.
    Thats it !
    Regards
    Sachin

  • Version Management with Analysis workbooks? Doesn't save workbooks in BW Netweaver platform or BO Platform

    SAP BusinessObjects Analysis, Edition for Microsoft Office -     1.4 SP6
    SAP BusinessObjects BI Platform - 4.1 SP2
    BW 7.3
    SAP Logon pad - 7300.1.0.1074
    We are trying to implement What-if analysis in Analysis Office tool like Revenue increase by N percentages. Excel formula applied for this in the adjacent column to keyfigures that is coming from BEx Query.
    Here, I need to save the Workbooks in versions as V1, V2, V3, etc., for various percentages.
    When I try to save this in BO platform, only the version V1 (first copy) is getting saved. But, the modified workbook is not getting saved with different name as V2 or V3, etc.,
    When I try to save this Netweaver platform, even the first copy V1 is not getting saved. But it displays different versions in the save window before closing the Analysis Office application.
    Please provide information on VERSION MANAGEMENT with Analysis Office.
    Note: I see a difference in 'Open' and 'Save' window that is Roles are not visible in the 'Open Workbook' window but Roles are  visible in 'Save Workbook' window.
    Thanks,
    Jeni.

    SAP BusinessObjects Analysis, Edition for Microsoft Office -     1.4 SP6
    SAP BusinessObjects BI Platform - 4.1 SP2
    BW 7.3
    SAP Logon pad - 7300.1.0.1074
    We are trying to implement What-if analysis in Analysis Office tool like Revenue increase by N percentages. Excel formula applied for this in the adjacent column to keyfigures that is coming from BEx Query.
    Here, I need to save the Workbooks in versions as V1, V2, V3, etc., for various percentages.
    When I try to save this in BO platform, only the version V1 (first copy) is getting saved. But, the modified workbook is not getting saved with different name as V2 or V3, etc.,
    When I try to save this Netweaver platform, even the first copy V1 is not getting saved. But it displays different versions in the save window before closing the Analysis Office application.
    Please provide information on VERSION MANAGEMENT with Analysis Office.
    Note: I see a difference in 'Open' and 'Save' window that is Roles are not visible in the 'Open Workbook' window but Roles are  visible in 'Save Workbook' window.
    Thanks,
    Jeni.

  • How to "What If" On Essbase 11

    Hi,
    We need to create a what if analysis sample demo for a POC. this would be based on manufacturing industry.
    For example: to price an order, by increasing materiel cost or services cost.
    Has anyone got a similar demo or script where you can explain the process of creating such an outline and calc scripts.
    Thanks!
    Nilaksha.

    Nilaksha,
    Clearly there are several ways to accomplish this. For a quick and dirty demo, the cleanest way to do this is to use write-back functionality in a BSO cube. Allow write-back to a measure called "material cost adjustment", have another measure called theoretical cost do a dynamic calc formula based on that new measure and let's say base cost so you end up with a measure formula for "Theoretical Cost" of ["Base Cost" + "Material Cost Adjustment"].
    Now in Smart View or the Excel Add-In just connect to your BSO cube, set your products on rows and measures on columns. Your "Base Cost" should be populated by your data load, and Theoretical Cost should be null and Material Cost Adjustment should be #Missing. Enter a value in the Material Cost Adjustment field for each product, write back to the cube, and on refresh your Theoretical Cost should be displayed.
    Of course in 11x you can use ASO for write-back but I would stick with BSO if you are more comfortable with that.

  • What-if Depreciation Report

    Hi,
    I need to build the Fixed Assets 'What-if Depreciation Report' as a BI-Publisher report containing additional data not displayed in the standard report. This report is kicked-off together with running the 'What-if Analysis Program' from a form in FA, but I can't find where the concurrent program is registered to run together with the analysis program generating the data in order to replace the RDF with the my custom RDF. Does anyone know where this is done?
    Regards,
    Arthur

    Julie,
    In note 30260 point 3, you get the explanation.
    The reporting without the option 'posted values' calculates the
    asset history sheet as if the catch up method is switched on.
    When you use catch up, you have even no problems in comparing the
    asset history sheet with the planned values in AW01N.
    When you use smoothing, you get a difference between planned and
    posted values, as soon as you have postings in the current year,
    change the depreciation method and so on.
    When you use smoothing, you have to use the indicator 'posted values'
    in reporting.
    You will find the indicator 'smoothing' or 'catch up' in the IMG of
    asset accounting - Integration with the General Ledger - Specify
    Intervals and Posting Rules
    Best Regards,
    Blaz.

  • Index is not used (why and what should i do) table too big

    hi guys,
    having a headache now. (on 10gR2 on linux system)
    I used to have a large table and this is how i managed it. (i am on standard edition (thus i have no partitioning)
    i would have a
    1) cron job run daily to keep track of the lowest and highest ID of the table PER MONTH (inserted into a table)
    2) below is the table
    CDR     MONTH     01-AUG-11 00:00:00     94118236     97584656
    CDR     MONTH     01-SEP-11 00:00:00     97581362     100573669
    CDR     MONTH     01-OCT-11 00:00:00     100570865     103631203
    CDR     MONTH     01-NOV-11 00:00:00     103629760     106497084
    CDR     MONTH     01-DEC-11 00:00:00     106494085     107306335
    so as you can see, for the month of dec for example, the lowest CDR is 10649408 and the highest is 107306335.
    3) so everytime i write a sql on this table if i want to get data for NOV
    select * from cdr where ID >= get_cdr_id('CDR','NOV','SMALLEST');
    and it would be
    select * from cdr where ID >= 103629760;
    In the past, the index will be used (index range scan), but now the optimiser is doing a FTS and is taking too much time.
    therefore i went to force the index
    select /*+INDEX(C, CDR_PK)*/* from cdr C where cdr_id > 103629760 and cdr_id < 106497084;
    and the COST -> 1678927 (CDR, INDEX_ROWID)
    13158 (CDR_PK, RANGE SCAN)
    -- the result return is fast and good.
    without the index
    select * from cdr C where cdr_id > 100570865 and cdr_id < 103631203
    the COST -> 440236 (CDR,FULL)
    -- but the result return is slow like anything
    My question is
    1) which cost should i look at ?
    the one with index hint have much higher COST, but the results return are so FAST.
    1678927 (with hint) compare with 440236 (FTS)
    2) is using the index is the correct way, why isnt my optimiser using it ?! how do i make the optimiser used it ?
    Regards,
    Noob

    Iordan Iotzov wrote:
    About the clustering factor– I think there are two possibilities:
    1) The “clustering factor” is generally correct, i.e. it represents the true value of how the data is “scattered” through the table. The clustering factor for the fragment of data you are interested in (where cdr_id > 100570865 and cdr_id < 103631203), however, is different (smaller).
    2)Oracle did not compute the “clustering factor” correctly. It is not uncommon occurrence, particularly in 10g. This blog entry by Randolf Geist is quite informative - http://oracle-randolf.blogspot.com/2010/01/clusteringfactor-what-if-analysis.html. Comprehensive information on that topic is available in Jonathan Lewis’ book Cost Based Oracle Fundamentals (chapter 5).
    You can make the index more attractive by setting lower “clustering factor” value using DBMS_STATS.SET_INDEX_STATS. If you choose to do that, you should review your whole stats gathering procedure, because the next gathering would most likely reset the “clustering factor” to its old (high) value.
    Iordan Iotzov
    http://iiotzov.wordpress.com/

Maybe you are looking for

  • How to make a field in Sales order as Display

    Hi Friends, I want to make the field pricing date in sales order as display only. Currently the field is changeable. Can someone please tell me how can i do this. Regards, Wasim.

  • BAPI_PO_CREATE1 Error related to Fiscal year variant

    Hi, I am working on open PO tranfer program. initialy i have created one PO from ME21n tcode, and its worked out fine now using same data when i creating PO using BAPI -> BAPI_PO_CREATE1 then i am getting following error E No instance of object type

  • ADF Business Component Type MAP Oracls vs Java

    what the advantages and disadvantages from each one map type thank in advance

  • Error During Excise invoice capture In J1IEX .

    Dear All ,              While I am posting part 1 entry during MIGO ,and then in J1IEX trying to capture the excise invoice ,but system is giving error no : 8I565 : Excise Details are not maintanied for Vendor xxxxx.I have checked in J1ID ,there I ha

  • Error during maintaining schedule lines in ME38

    Dear All ,            While I am trying to add schedule lines in ME38 for a schedule agreement system is giving error message "Message no. 06 881.   The vendor is blocked by Quality Management for this material as from the date shown."            Plz