Materialized view not being used in the report

I have had a materialized view (MV) for a particular report. Recently, the report definition has changed little bit, so the existing MV is not being used by the report anymore. I copied the code Discoverer's SQL Inspection and recreated the materialized view. But still it is not working. Obviously, I am missing something at the database level. Does anyone have any idea? The database is 9i and Discoverer is 9.0.2. Thank you!

The SQL that you see from the Inspect SQL option will provide you with the SQL that Discoverer sends to the database. The database then may do a query rewrite to point to an available materialized view if available. This rewrite won't be seen from the inspect sql option. You need to check at the database level to verify if a query rewrite did in fact take place.
You may want to check the section titled "Query Rewrite with Materialized Views" from Ch1 - "Introduction to the Optimizer" in the Oracle9i Database Performance Tuning Guide and Reference, Release 2 (9.2), Part Number A96533-02, available at http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96533/optimops.htm#37287
Regards
Abhinav Agarwal
Oracle Business Intelligence Product Management
http://www.oracle.com/bi
http://www.oracle.com/technology/documentation/bi_ee.html
http://www.oracle.com/technology/software/products/ias/htdocs/101320bi.html
http://oraclebi.blogspot.com/

Similar Messages

  • Where clause is not being passed to the report

    I just upgraded my crystal reports from 10.0 to 11 R2. Reports were working fine in 10.0 version,
    Reports are called from vb.net (vissual studio 2005). When I was running this reports using crystal 10.0 and visual studio 2005, it was working fine, After the upgrade report runs but I am noticing that where clause is not being passed to the reports.It generates report as there is no where clause and produces multiple pages report.

    I believe you are encountering an issue documented in [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Ludek

  • How to find out where the business views are being used in the Crystal

    I am using Crystal Reports 2008 and BOE 3.1. We are using business views to populate the drop down for the dynamic parameters. I would like to know if there is a way to find out which reports are using a specific business views. This will help me modify the exisisting Business Views.
    I would not like to edit all the reports to see them. Is that info stored in CMC or any BOE database.
    Thank You.
    Neeta
    Edited by: Neeta Prasad on Apr 21, 2010 11:05 PM

    Hello Vijay,
    On MSSQL truncation of transaction log does not shrink the size of the transaction log. It simply removes the content within the transaction log and writes it to the backup.
    Meaning the free percentage within the transaction log will increase.
    If you want to Resize the transaction log size, you need to do something else.
    The shrinking procedure is given here:
    http://support.microsoft.com/kb/907511
    Regards,
    Siddhesh

  • Udf Data is not being displayed in the report

    Hi all,
    i have designed one report in which i am displaying some udf fields along with other system fields.
    i have not used any selection criteria.
    when i run report it doesn't display udf data of some random rows in the report even if data is peresent in that udf field.
    If i open sales order and press 'Shift-F2'  and update the document and now if i run report then i get that udf value in the report.
    why this happening. data is there in the udf field only its not displayed in the report with out updating the that udf.
    pls suggest some solution.
    regsrds,
    Chetan.

    Hi Ashish,
    I ran the "ZPS/!ZPS" in RSRT where ZPS is the infoset name. In Dev, it displayed the values. In QA, it displayed the below messages:
    ECharacteristic 0TCAKYFNM does not exist. Check authorizations
    WThere are calculated elements. These results are bracketed [  ]
    and below that, it displayed the values for Number of records. But, it has not displayed the values for the other figures.
    Does this has any impact in QA.
    Thanks & Regards,
    AVN Rao.

  • Plan values not being displayed in the report ..

    Hi All,
    I have a query on query.. .
    which displays actual and plan values , but the report is not showing the plan values
    tell me how to do this
    Sruthi

    Sruthi,
    Basically how do you store the data in the transaction cube's ?
    How does the data differs b/w Plan and actual for the same KF ?
    It stores depending on the Version...
    Restrict the KF to a perticular version ...
    Then you can get the desired...
    Check the LISTCUBE  with different versions..
    Cheer's
    HVR.

  • Criteria item is not being used in the LOV query

    Hi All,
    I have one 'messageChoice' bean which is associated with a view
    I have configured it correctly
    I have one 'messageLOVInput' bean
    above 'mesaageChoice' acts as criteria item for 'messageLOVInput'
    I created two maps one for each beans
    When I select a value from 'messageChoice' and click LOV button
    now LOV window should query based on the value from choice..
    but its not at all taking choice selection in the query criteria...
    Where I am doing mistake..?
    Thnaks
    -Praveen

    Hi,
    we are gathering JDeveloper 11 technology preview related question in a separate forum
    JDeveloper and OC4J 11g Technology Preview
    Frank

  • Order by in MATERIALIZED VIEW not work successfully with first column (ID)

    Dears,
    I am trying to create a Materialized View as below:
    CREATE MATERIALIZED VIEW HR.MV_EMP
    PCTFREE 10
    MAXTRANS 255
    TABLESPACE users
    STORAGE (
    INITIAL 65536
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUILD IMMEDIATE
    REFRESH ON DEMAND
    AS
    SELECT *
    FROM employees
    where rownum < 5000 order by employee_id desc ;But while querying the MATERIALIZED VIEW, it did not work successfully as the data did not appear in the accurate order.
    I tried to create the same MATERIALIZED VIEW but order by another column (Column Date), it worked successfully and the data appeared in the accurate order.
    It means that MATERIALIZED VIEW not work successfully with the first column (id).
    Can you please help me in this ?
    Thanks & regards,,

    A few pointers :
    1. As has been pointed out, the ROWNUM has been incorrectly placed. ROWNUM values are assigned as rows are fetched from the source before the ORDER BY. You need to ORDER BY first (in a SubQuery) and then ROWNUM afterwards (outside the SubQuery).
    2. I wonder why you want only the last 5000 EMPLOYEE_IDs. What if Employee_ID 1 is still an active employee (he is the founder, first employee and CEO ?). There could be very many "low" EMPLOYEE_IDs that are still active.
    3. Logically I would expect some filter other than the ROWNUM ... ORDER BY to be used to select candidate rows. Then, an ORDER BY in the CREATE query would be unnecessary.
    4. When querying the Materialized View you must explicitly ORDER BY (irrespective of whether you did or did not do an ORDER BY in the CREATE ...)
    5. How do you expect to refresh the MV ? Will it always be a COMPLETE Refresh ? Remember that your "5000 employees" filter would likely exclude older employees at the next refresh. If you use some other filter, it should be consistent across all refreshs.
    Hemant K Chitale

  • Partial fields of Secondary index being used by the DB Optimizer

    Hello,
    I have written the following Query to select an std. SAP Index from GLPCA~1. However, when i run the SQL trace although the index is selected by the DB optimizer the results say that only 3 matching columns were used.
    bold Index GLPCA~1. bold
    KOKRS
    RYEAR
    RPRCTR
    RVERS
    RACCT
        SELECT rldnr
               rrcty
               rvers
               ryear
               rtcur
               rpmax
               rbukrs
               rprctr
               rfarea
               kokrs
               racct
               hslvt
               hsl01
               hsl02
               hsl03
               hsl04
               hsl05
               hsl06
               hsl07
               hsl08
               hsl09
               hsl10
               hsl11
               hsl12
               kslvt
               ksl01
               ksl02
               ksl03
               ksl04
               ksl05
               ksl06
               ksl07
               ksl08
               ksl09
               ksl10
               ksl11
               ksl12
               FROM glpct
               INTO TABLE i_glpct
               WHERE kokrs = 'BFS'
                  AND ryear = p_gjahr
                  AND rprctr IN r_prctr
                  AND rvers = '000'
                  AND racct IN r_acct.
    Now i am not sure which of the above 3 fields of the where condition are being selected but probably KOKRS and RVERS are not being used by the optimizer.
    Any pointers on how to make the optimizer utilize all 5 fields would be greatly appreciated.
    Thanks,
    Minhaj.

    Hello,
    I have written the following Query to select an std. SAP Index from GLPCA~1. However, when i run the SQL trace although the index is selected by the DB optimizer the results say that only 3 matching columns were used.
    bold Index GLPCA~1. bold
    KOKRS
    RYEAR
    RPRCTR
    RVERS
    RACCT
        SELECT rldnr
               rrcty
               rvers
               ryear
               rtcur
               rpmax
               rbukrs
               rprctr
               rfarea
               kokrs
               racct
               hslvt
               hsl01
               hsl02
               hsl03
               hsl04
               hsl05
               hsl06
               hsl07
               hsl08
               hsl09
               hsl10
               hsl11
               hsl12
               kslvt
               ksl01
               ksl02
               ksl03
               ksl04
               ksl05
               ksl06
               ksl07
               ksl08
               ksl09
               ksl10
               ksl11
               ksl12
               FROM glpct
               INTO TABLE i_glpct
               WHERE kokrs = 'BFS'
                  AND ryear = p_gjahr
                  AND rprctr IN r_prctr
                  AND rvers = '000'
                  AND racct IN r_acct.
    Now i am not sure which of the above 3 fields of the where condition are being selected but probably KOKRS and RVERS are not being used by the optimizer.
    Any pointers on how to make the optimizer utilize all 5 fields would be greatly appreciated.
    Thanks,
    Minhaj.

  • An index can not being used and still afect a query performance?

    Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
    After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
    and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
    Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
    shows a lower cost even though its not being used by the execution plan.
    Does anyone know why is this happening?
    An index can, not being used by the execution plan and still affect a query performance?

    user11173393 wrote:
    Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
    After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
    and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
    Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
    shows a lower cost even though its not being used by the execution plan.
    Does anyone know why is this happening?
    An index can, not being used by the execution plan and still affect a query performance?You said that is what is happening, & I believe you.

  • I have an iphone 5s and it is synced to itunes and works fine. previously I have downloaded audiobooks to my wifes 6th gen nano using this account - now I tunes does not recognize the device and also it seems that it is not being read by the computer?

    I have an iphone 5s and it is synced to itunes and works fine. previously I have downloaded audiobooks to my wifes 6th gen nano using this account - now I tunes does not recognize the device and also it seems that it is not being read by the computer?

    Hey Stan1958,
    Thanks for the question. I understand you are experiencing issues with your iPod nano and iTunes. Based on your symptoms, you may find the following resources helpful in resolving this issue:
    Windows
    iPod appears in Windows but not in iTunes
    iPod not recognized in 'My Computer' and in iTunes for Windows
    iTunes reports that "iTunes cannot recognize this iPod at this time"
    Thanks,
    Matt M.

  • Product hierarchy  is not being maintained in the sales order material

    Hi,
    I have an issue where the product hier is not being maintained in the sales order for some of the materials although the material master has the prod hier maintained.. The main program is SAPMV45A and I have checked all the exits in MV45AFZZ. In none of these exits the PRODH field in XVBAP is being populated. I would like top know if anyone has faced a problem like this.
    cheers
    Aveek

    Hi,
    Thanks for your suggestion. The poduct hierarchy is maintained in the material master but not being picked up at the time of creating the sales order. I have found the solution and coding has to be done in the MV45AFZZ.
    cheers
    Aveek

  • How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activ

    How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activated. HELP?  I really need to continue using this product for my home business.It works fine not activated but the threat is that it will stop working in 13 more days if I don't get it activated, and none of the activation methods they list seem to work.

    The new serial number is to the right of your chosen download.

  • Bought a Mac Mini.  at 18 day's old it started to lock up and not function.  Took it in and they wiped and reinstalled it.  Well at 24 day's old it's been sitting in the box not being used.  First and last Mac for me. But can I get something for the junk?

    I have pulled it out of the box and put 2 Mac approved mem sticks in it to boost it to 8 Gigs mem and it still locks up and freazes..  So many people told me Mac was the way to go...  1500 dollers could have bought me a great pc laptop.  Now I have a wirless mouse keyboard and a mac mini (aka Brick) that allowed me to donate money to a cause that is helping buildings and companies out side of the US.  While I have junk..  It's still under warranty and I reinstalled the os after the new mem sticks.  Again.. locks up and does nothing.  What can I do with this?  Toss it in the trash?  Any info on what I might do with it.. Please help!

    It would be most helpful if you updated your system information:
    Please reconcile the following
    at 18 day's old it started to lock up and not function. Took it in and they wiped and reinstalled it. Well at 24 day's old it's been sitting in the box not being used.
    ... I reinstalled the os after the new mem sticks.
    If your Mini is anything less than six months old it would be running Lion, not 10.6.1, nor would it have been necessary to "reinstall the OS". Any help that anyone can provide is predicated on your system configuration so it's important.
    If you are running Lion then boot your Mini while holding the D key. This will load Apple Hardware Test which will enable you to test your memory. "Mac approved" memory is sort of vague, and even memory that is allegedly designed to meet your Mini's specification may fail. There few reputable memory vendors.
    "Apple installed" memory is more meaningful, and indicates Apple has tested it and guarantees its function. Otherwise all bets are off with a claim of "Mac approved". You will have to verify that yourself with Apple Hardware Test.
    If your Mini was running, or ever ran OS 10.6.1 for that matter, it is close to three years old.
    You must clear up these uncertainties before anyone can help.

  • I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me?

    I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me? Already changed the extension of the excel document to xlsx an now gives an unknown import error.

    In Excel have you tried saving directly to xls (not xlsx) and opening the xls in Numbers?
    If you have a complicated workbook in Excel that uses lots of Excel's advanced features, Numbers may not be able to handle the import.  It does pretty well on basic things, though.
    If you're just trying to get data into Numbers, then often copy-paste from Excel is easier than trying to open xls files.
    SG

  • Why is the template not being used when dynamic page called ?

    Hi,
    I have created a dynamic page and assigned a template to it. When I call the dynamic page using the 'show' procedure from a form, I do not see the template.
    Why is the template not being used ? How can I get the template working when I call the dynamic page ?
    I even tried to show the page from the dynamic page's manage components tab and there is same problem. Template is not being used.
    thanks,
    Mainak

    You can alter the generated package body to include the following function in the header and footer sections.
    Header:
    PORTAL.wwv_headings.show_header(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_heading => 'Dynamic Page',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help',
    p_about_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.about');
    Footer:
    PORTAL.wwv_headings.show_footer(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help');
    where
    <PORTAL_DEMO> indicates application schema
    <PORTAL> indicates the name of the portal (normally this will be portal30 by default).

Maybe you are looking for

  • Ipad needs support for multiple user accounts!

    There is a big difference between a smartphone and a tablet computer. Tablet is a device that may sit on a coffee or a kitchen table, with everyone in the family being able to check on their own email, browse internet, etc. and still have privacy for

  • Free Course Offered by Garritan

    For those interested in symphony orchestration, Garritan, the makers of Garritan Personal Orchestra just posted an excellent tutorial on creating orchestral peices as originally developed by "the man" himself, Nikolay Rimsky-Korsakov.

  • Ejbc cannot find generated bean

    I'm trying to deploy a 2.0, cmp (no cmr) entity bean using ant/commandline. I have successfully deployed a session bean in the same module. Yet, when the entity bean is introduced the ejbc fails with output I don't understand. Below is the output fro

  • Date to Calendar Week in Update Rules

    Hi Experts, Does anyone of you know how/where BI/BW do the mapping when translating date in to a week in update rules? Thanks in advance, Rose

  • Compiling question responses in a survey question

    I am creating diagnostic tests for a psychiatric firm for presentation on their website. The tests use the Likert Scale-question slide as their template and allow the user to select from a scale usually with five options. I want to tabulate each of t