Question to Matarialized View "staleness" parameter

Question to all Oracle database experts.
IFS Applications uses Materialized views (MV'S) for Business Intelligence reporting.
Some of this MV's never gets the staleness status "FRESH", but is allways in status "unknown".
Folling MV is an example;
CREATE MATERIALIZED VIEW SUPPLIER_MV
REFRESH COMPLETE ON DEMAND
AS
SELECT a.supplier_id id,
a.supplier_id code,
a.supplier_id supplier,
a.name supplier_name,
a.country country,
a.creation_date creation_date,
a.association_no association_no,
a.default_language default_language,
a.suppliers_own_id suppliers_own_id,
a.corporate_form     corporate_form,
Corporate_Form_API.Get_Corporate_Form_Desc(a.country, a.corporate_form)
corporate_form_desc
FROM SUPPLIER_INFO_TAB a
UNION ALL
SELECT '#' id,
'#' code,
'#' supplier,
'' supplier_name,
'' country,
to_date('0001-01-01','YYYY-MM-DD')
creation_date,
'' association_no,
'' default_language,
'' suppliers_own_id,
'' corporate_form,
'' corporate_form_desc
FROM BI_DUAL_TAB;
Any one, any idea how to update the status correct?
Regards
Gunnar B Melby
IFS, Norway

Supplier_MV has following properties;
Proporty value
OWNER     IFSAPP
MVIEW_NAME SUPPLIER_MV
CONTAINER_NAME SUPPLIER_MV
QUERY_LEN 1552
UPDATABLE     N
REWRITE_ENABLED     N
REWRITE_CAPABILITY     NONE
REFRESH_MODE     DEMAND
REFRESH_METHOD     COMPLETE
BUILD_MODE     DEFERRED
FAST_REFRESHABLE     NO
LAST_REFRESH_TYPE     COMPLETE
LAST_REFRESH_DATE     01.07.2010 10:25
STALENESS     UNKNOWN
AFTER_FAST_REFRESH     NA
UNKNOWN_PREBUILT     N
UNKNOWN_PLSQL_FUNC     Y
UNKNOWN_EXTERNAL_TABLE     N
UNKNOWN_CONSIDER_FRESH     N
UNKNOWN_IMPORT     N
UNKNOWN_TRUSTED_FD     N
COMPILE_STATE     VALID
USE_NO_INDEX     N
TABLE_NAME     SUPPLIER_MV
MASTER_OWNER     IFSAPP
MASTER     BI_DUAL_TAB
CAN_USE_LOG     NO
REFRESH_WITH     COMPLEX
LAST_REFRESH     01.07.2010 10:25
ERROR     0
FR_OPERATIONS     REGENERATE
CR_OPERATIONS     VALID

Similar Messages

  • Is it possible to create a spatial view with paramete?

    Is it possible to create a view with parameter like following:
    SELECT GEOM FROM INTERSTATES WHERE MDSYS.SDO_FILTER(GEOM, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
    so that I can specify ???? at run time.
    If not, is there a way to create a view that perform variable window query?

    You may want to look at application contexts, that way you may have code something like this:
    create or replace context gis_ctx using gis_params ;
    create or replace package gis_params
    as
    procedure set_bounds( minx in number, miny in number, maxx in number,maxy in number );
    end;
    create or replace package body gis_params
    as
    procedure set_bounds( minx in number, miny in number, maxx in number,maxy in number )
    is
    begin
    dbms_session.set_context( 'gis_ctx', 'minx', minx);
    dbms_session.set_context( 'gis_ctx', 'miny', miny);
    dbms_session.set_context( 'gis_ctx', 'maxx', maxx);
    dbms_session.set_context( 'gis_ctx', 'maxy', maxy);
    end ;
    end ;
    To use this method you´ll have to execute
    gis_params.set_bounds(-3,40,-2.9,40.1) ;
    before doing the select.
    SELECT GEOM
    FROM INTERSTATES
    WHERE MDSYS.SDO_FILTER(GEOM,
    MDSYS.SDO_GEOMETRY(2003,
    8307,
    NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3),
    MDSYS.SDO_ORDINATE_ARRAY(sys_context ('gis_ctx', 'minx'),
    sys_context ('gis_ctx', 'miny'),
    sys_context ('gis_ctx', 'maxx'),
    sys_context ('gis_ctx', 'maxy'))),
    'querytype=WINDOW') = 'TRUE' ;
    I f you are in a web environment, read about GLOBAL CONTEXT ACCESSED GLOBALLY .
    Regards, Nico.

  • Read a view Object parameter value

    can anyone tell me how to read a View Object parameter value from inside a DODML()?
    Thanks

    Please help us to understand the use case better. Can you please details the scenario? Are you looking for the bind variable value used for querying ?

  • I meet a question for HP53131A to read parameter on screen!

    I meet a question for HP53131A to read parameter on screen.It will no respond when I load a HP53131readmessage.vi directly.It can pass when I use the highlight execution.I try to add some delay.It is no any effect.Could you please to help explain why?I should how to do with this case?Would appreciate your suggestion.

    Can it make the test program run slowly when you use the highlight execuation? How to do in the test program if I want to run this execution? Can I use the delay to make the test program slowly? It is urgent. This problem take me one month and still can't finish.Do you have any suggestion? 
    Attachments:
    HP 5313xAReadmeas.JPG ‏171 KB

  • Questions on ADF View Objects, Links and Iterators

    I have a number of questions regarding using ViewObjects in applications where there are alot of relationships between tables.
    First, lets say that I have ViewObject SomeView that was added to the App Module (AM) as VO1. And because it has a number of "detail" records that have to be iterated through in a "report like" view it has those other VO's added under it as "children" in the AM.
    So I have
    VO1 (an instance of SomeView)
    --> VO2 (an instance of some other view)
    --> VO3 (an instance of some other view)
    that is used on pages where only a single VO1 is shown at a time.
    Now because I had another page I wanted to make that had a listing of all SomeView objects. Some of the fields in SomeView are foreign keys to records in VO2 and VO3 and while I don't want to show all the fields from VO2 and VO3, I do want to show a name field from each rather than just the foreign key.
    My experience (though I've never read this anywhere) tells me that when doing a "table" that is a list of rows from a VO, you can't display info from the child VO's because the child VO's are on whatever record corresponds to the "currentRow" in the parent VO and just displaying the rows in a rangeSet doesn't make each the "currentRow" so even we display 10 records in a for loop, the "currentRow" is just one, and the child VO's iterators aren't moved as we go through the for loop. (Can someone confirm if I am correct on this conclusion????)
    So the only way I know of to show some field from a related table in each row is to make the VO have the entity objects from the related tables be part of the view as references. Is this the only way?
    If I do that on a view that didn't have other views as children defined in the AM I don't have any problem and it works like I want.
    But if I do it on a view that did have other views as children defined in the AM it makes the page(s) using that view with the children iterators behave badly. Half the information quits showing up, etc.
    For example, ... if I go to the "SomeView" which was defined with only one entity object association, and I add the entity objects (that are the basis of instances of VO2 and VO3 ) as referenceable only, it totally breaks the page where I display a single VO1 and use it's VO2 and VO3 children. IS THIS NORMAL OR AM I MISSING SOMETHING?
    So, is the solution that I have to have more view objects defined for different purposes ?
    Can anyone give any general guidelines for when/where to use different view objects vs. when to use different iterators. I'm not having much luck with using secondary RSI's and haven't found much info on them.
    Also, how about issues of naming iterators that are in various binding containers (ie. UI Model for a page). If I do and LOV it creates an iterator and gives it a default name like ViewNameIterator1. If I already have a different page that uses a regular (non LOV) iterator with that name, and the user goes back and forth between those pages, is that a clash?
    Finally, I've read a couple of Steve Muench's blogs on View Link consistency but I'm not sure what the rules are on when it applies and doesn't. How you turn it on or off, etc. One of his examples in http://radio.weblogs.com/0118231/2004/02/27.html talks about it in the context of two view objects that are NOT typically "linked" in a master/detail kind of way. Like an AllDepartments and a DepartmentsLessThan view. Do you have to create a View Link between them to have results of one be reflected in the other if they aren't used in the same page in a web app? Or does it happen automatically (with the caveat that you have to do the rowQualifies method). Just feels like I'm missing some pieces.
    Thanks in advance,
    Lynn

    Hi,
    I am also interested in a best-practice note from oracle.
    Currently we store history in seperate history tables for columns that changed. All this implemented in our BaseEoImpl overriding the EntityImpl.prepareForDML().
    Thanks

  • Insert a row in master detail view & jboRowKey parameter

    Hi
    I hava a minor problem.
    On JSP page I have edit form for master view, beyond edit form is browse of detail view. I would like to insert or edit a row on master view and after update and commit, a would like to stay on the same page to insert some rows into detail view.
    When I editing rows it is Ok, becose jboRowKey parameter is always the same (to find proper row on master view).
    Problem appears when I want to Insert a row into master view, becose after transaction is commited, jboRowKey parameter is changed.
    Primary key on master table is sequence and it is inserted by (preinsert) trigger before commit.
    If anybody has some idea to solve this problem, please help.
    Gorazd

    Without knowing exactly the technology you are using, (JDev version, BC4J JSP tags/Components tags?),
    In general with BC4J after you do a commit, you do not necessarily have a record pointer on the new record that you just insert on the master table, so you would have to locate it again.
    Here is one way you could do this.
    After you commit your new inserted record, you could go back to a master "browse" page which shows the records of your master table along with a link to it's corresponding detail page. Encoded in the link you could pass the rowkey of the master record as a parameter and then in the detail page you could locate the master record that was clicked on by using the Find operation of the Row tag. When the master row is located, you automatically would be pointing to the correct detail records.
    In this case since the master was just created, there wouldn't be any detail records yet. You could then create new detail records for the new master..
    Let me know if this helps..
    -Chris

  • Report Viewer Dynamic Parameter List not showing a complete list of values

    Hi, I have installed the crystal report runtime 13.0.1.220 for framework 4.0 in a 64-bit windows 7 professional server.
    I have an aplication that opens crystal reports using the crystal report viewer control for visual studio 2010, also version 13.0.1.220.
    ISSUE: The report opens fine, but it does not shows all the available values in the dynamic parameter list.
    I have tried setting the MaxRowsetRecords registry key to diferent values but it does not work.
    I do not have any crystal report stand alone version installed in my server.
    Please help me?

    Hi Ludek,
    yes i followed the instructions of the KBase you are mentioning, but it isn't working for me.
    I modified the following keys:
    HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports\DatabaseOptions\LOV
    and
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports\DatabaseOptions\LOV
    1) I had to create the LOV key under the DatabaseOptions in both keys.
    2) Inside the LOV keys I created the new string value MaxRowsetRecords and set the value to different values. (Ex: 5000, 10000 and 1000000)
    3) I restarted my server. Still not working.
    4) Then after that i modified the following registry keys: (leaving the first 2 keys modified)
    HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports\DatabaseOptions\LOV
    and
    HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports Designer Component\DatabaseOptions\LOV
    5) Also had to create the LOV key under the DatabaseOptions in both keys.
    6) Inside the LOV keys I created the new string value MaxRowsetRecords and set the value to different values. (Ex: 5000, 10000 and 1000000)
    7) Restarted my server. still not working
    8)  Then after that i modified the following registry key: (leaving the first 4 keys modified)
    HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports Designer Component\ReportView
    Inside this key I created the DWORD PromptingLOVBatchSize and gave it a decimal value of 1000000
    9) Restarted the server. Still not working. For crying out LOUD!!

  • How to create materialized  view with parameter and index ?

    Hi all,
    i am using oracle 11g.
    i want to create  parameter materialized view  with two parameter (STORED_VALUE, LOV_NAME) with  an index .
    i have below view
    CREATE OR REPLACE FORCE VIEW SR_MY_TEST(DISPLAYED_VALUE, STORED_VALUE, LOV_NAME) AS
      SELECT  DISPLAYED_VALUE , LOVVALUE.STORED_VALUE , lovname.lov_name
               FROM (SELECT T.LOV_VALUE_ID,
          T.LOV_ID,
          T.ORG_ENTITY_ID,
          T.STORED_VALUE,
          T.DISPLAYED_VALUE,
          T.ENTERPRISE_ID
         FROM MS_QS_LIST_OF_VALUES_T T) lovvalue, ms_qs_lov_names lovname
              WHERE lovvalue.lov_id = lovname.lov_id
                AND lovvalue.org_entity_id = 1
                and LOVVALUE.ENTERPRISE_ID = 100000
                AND LOVNAME.ENTERPRISE_ID = 100000;
    i want to create index on   STORED_VALUE, LOV_NAME
    Thanks
    Damby

    No.AFAIK, there's nothing called as "parameterized MV".
    Materialized View store data like tables (and not like Views). So, does it make sense when you say - "table with parameters" ?
    Could you please explain your business requirement?
    What is the purpose behind those 2 parameters?

  • I was referred to this site when I looked for answers to why I got Fatal Error message with error code c0000005 when trying to upload photos to my computer. I see that someone else asked the same question, 90 people viewed but no answer given?

    I was referred to this site when I got Fatal Error message Error code c0000005 while trying to upload photos to computer. Someone else asked the same question in this forum, 90 people viewed the question but it was never answered?

    It looks to me like it is a problem on your Windows computer not being able to start an application. See the following link to Microsoft Community support (although the specifics of the problem in that case may not be applicable) and also note all of the "Related Content" at the upper right side of that link (and there may be others if you search that forum). http://answers.microsoft.com/en-us/windows/forum/windows_7-system/the-applicatio n-is-unable-to-start-correctly/bbb9c037-77b3-4fae-93b9-ded70f7f9a17
    It may help if you know or can determine which program Windows is trying to open when you upload photos -- there can be many different ones and it can be set by the user. If you are using Windows 7, you may need to check your Autoplay settings. There are some instructions in the following link that may help and that discuss how you can use Windows Explorer to manually transfer the photos: http://support.apple.com/kb/HT4083

  • Questions on Materialized Views and MV Log tables

    Hello all,
    Have a few questions with regards to Materialized View.
    1) Once the Materialized View reads the records from the MLOG table the MLOG's records get purged. correct? or is it not the case? In some cases I still see (old) records in the MLOG table even after the MV refresh.
    2) How does the MLOG table distinguish between a read that comes from an MV and a read that comes from a user? If I manually execute
    "select * from <MLOG table>" would the MLOG table's record get purged just the same way as it does after an MV refresh?
    3) One of our MV refreshes hangs intermittently. Based on the wait events I noticed that it was doing a "db file sequential read" against the master table. Finally I had to terminate the refresh. I'm not sure why it was doing sequential read on the master table when it should be reading from the MLOG table. Any ideas?
    4) I've seen "db file scattered read" (full table scan) in general against tables but I was surprised to see "db file sequential read" against the table. I thought sequential read normally happens against indexes. Has anyone noticed this behaviour?
    Thanks for your time.

    1) Once all registered materialized views have read a particular row from a materialized view log, it is removed, yes. If there are multiple materialized views that depend on the same log, they would all need to refresh before it would be safe to remove the MV log entry. If one of the materialized views does a non-incremental refresh, there may be cases where the log doesn't get purged automatically.
    2) No, your query wouldn't cause anything to be purged (though you wouldn't see anything interesting unless you happen to implement lots of code to parse the change vectors stored in the log). I don't know that the exact mechanism that Oracle uses has been published, though you could go through and trace a session to get an idea of the moving pieces. From a practical standpoint, you just need to know that when you create a fast-refreshable materialized view, it's going to register itself as being interested in particular MV logs.
    3) It would depend on what is stored in the MV log. The refresh process may need to grab particular columns from the table if your log is just storing the fact that data for a particular key changed. You can specify when you create a materialized view log that you want to store particular columns or to include new values (with the INCLUDING NEW VALUES) clause. That may be beneficial (or necessary) to the fast refresh process but it would tend to increase the storage space for the materialized view log and to increase the cost of maintianing the materialized view log.
    4) Sequential reads against a table are perfectly normal-- it just implies that someone is looking at a particular block in the table (i.e. looking up a row in the table by ROWID based on the ROWID in an index or in a materialized view log).
    Justin

  • Question about using views in joins

    I have a question that is related to views. When a view is joined with another table, how does Oracle internally handle it? Does it create a temporary table that contains the resultant rows of the view and join that temorary table to the other table or does it use the view's SQL and embed it into the join condition?
    Thanks.
    Edited by: soleil4716 on Aug 13, 2010 11:58 AM

    soleil4716 wrote:
    I have a question that is related to views. When a view is joined with another table, how does Oracle internally handle it? Does it create a temporary table that contains the resultant rows of the view and join that temorary table to the other table or does it use the view's SQL and embed it into the join condition?
    No oracle do not create temporary table to joining table and views.There no difference joining just table<=>table and table<=>view.There is important join condition,and oracle will join these table and view according these conditions.

  • Question Regarding "Show View Options"

    Good morning!
    I have a question and I am hoping someone here on the Apple Support Communities will be able to assist me.
    I am using a MacBook Air and have downloaded the latest iOS (Mavericks).  I have my iTunes application open and in the menu area, under "View" there is a selection called "Show View Options" but when I click on that selection, nothing happens.  Does anyone know why I cannot get the "View Options" to appear?
    Thanks,
    Michael Weaver, Jr.
    WU Online (AKA: Wrestling Update Online | www.WrestlingUpdateOnline.com)
    Follow me on Twitter at @WUonline!
    "Friend" me on Facebook at www.Facebook.com/JMichaelWeaverJR!

    No simple or known solution. Just hit CMD+2 and the window will retain the list view. It's one of my bugaboos and I've filed a bug report, but it hasn't been added.

  • Basic Questions On List View Plug-in For Lightroom

    I need some basic information about the List View Plug-in for Lightroom:
    HERE ARE MY QUESTIONS:
    I have 40-60 photos per folder. Can List View list that many files on successive pages?
    Most of the time I have 15-30 keywords or keyword phrases listed per picture. If I could widen the column I could see all of them. If the column does not widen, will the keywords not shown still be there to be exported to an Excel column, and then shown?
    The thumbnail pictures on the end of all the summary lines are cool, but can I delete them before exporting to Excel?
      Thank You Very Much for any information about this Plugin,
    THANK YOU,
    Sandy

    Your questions seemed to be asked without actually tried the trial of the plug-in.  I did, just now, and from what I can tell, with only have 20 images to test with since that is the trial limitation:
    1)      The number of rows is fixed, and you can use the slider at the top-right to move from one page to the next.
    2)      The columns do not change width in the plug-in though what you can’t see still gets exported to Excel although I’d expect all the keywords to be in one Excel column, not one column each.
    3)      There are several sizes of thumbnails that can be selected from, including None—this is new compared to the one screen-capture on the plug-in website, so setting None as the thumbnail size  is how you’d prevent thumbnails from going to Excel.  I tried exporting thumbnails and they were all broken images, so maybe it doesn’t actually work, or maybe there is a limitation in the trial mode.

  • Question in creating view pages

    Hi,
    I'm pretty new in SharePoint 2010 and I'm trying to design a simple task list in a tabular format. Below is the link to my screenshots
    https://plus.google.com/photos/111135350719234396436/albums/5969419655213868465?authkey=CK-WxOzIqP3F8wE
    When I click a task under the Task Name column, the 2nd screenshot in the link is displayed
    My question is how do I modify the 2nd screenshot to include additional fields such as Description, # of Devices etc... Also the Start and End Date shows the date when I entered the data and not the actual date I have entered in the first screenshot. How could
    I change this things?
    hope to hear from you guys.
    Thanks!

    Hello,
    What list template you have chosen for this task list? 
    Anyway, you can go to list settings and click on the your list default view to add more column-->select the column which you want to add and save it.
    Later you can add filter webpart on same page to filter data based on dates.
    http://office.microsoft.com/en-in/sharepoint-server-help/connect-a-filter-web-part-to-a-list-view-web-part-HA101785233.aspx
    Hope i understood you correctly
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Cannot create view with parameter bindings

    Hi, I'm trying to create this view in SQLPlus:
    SELECT order_no, SUM(cut_qty),
    SUM(received_qty)
    FROM (
    SELECT order_no, cut.dated, DECODE(cut.bimetallic, 'F', cut.quantity, cut.quantity/2) cut_qty,0 AS received_qty
    FROM cut_shop_orders_dated cut
    WHERE cut.dated BETWEEN TO_DATE('&date1','DD/MM/YYYY') AND TO_DATE('&date2','DD/MM/YYYY')
    UNION
    (SELECT order_no, rec.dated, 0, rec.quantity
    FROM received_shop_orders_dated rec
    WHERE rec.dated BETWEEN TO_DATE('&date3','DD/MM/YYYY') AND TO_DATE('&date4','DD/MM/YYYY')))
    GROUP BY order_no
    The problem is that sqlplus asks me for the parameter values and then creates it with these values as literal dates in the to_date function, those not asking for parameter values in runtime.
    How can I create it using parameters with no values at design time?
    Thanks.
    Leandro.

    if you want something like :
    select * from emp $where_clause;
    you can write a procedure with parameter and run it as dynamic sql for example
    create or replace procedure pr1 ( p_where   varchar2) is
    begin
      execute immediate 'create or replace view view_name as select * from emp '|| p_where;
    end pr1;
    /then run it on sql*plus
    SQL> exec pr1('where deptno = 10');
    make sure you give yourself "create any view" rights explicitly.
    HTH
    Ghulam

Maybe you are looking for

  • Printer can't be found on the network

    The printer has been working fine for months, and today it can't be accessed at its assigned IP address. No computer can print to it or find it, even when manually entering the IP address, although the printer is connected (it scans to a network fold

  • CS5 Master Collection Update Fails Mac OS 10.9.2

    Hello All, I have a CS5 Master Collection Student Teacher Edition installed on a Mac Pro, which is licensed, registered, and works perfectly. I recently purchased a Mac Book Pro running OS 10.9.2 which I installed the entire Master Suite Collection o

  • Safari 4 Crashes Every Two Minutes

    Safari 4 ran fine until yesterday, for whatever reason Safari crashes even when just running in the background while I am using text edit. I don't recall installing any plugins. I tried uninstalling and installing and Safari and it still cant stop cr

  • I get itunes "error 0x800000A" (itunes wont connect Iphone 4)

    I get itunes "error 0x800000A" (itunes wont connect Iphone 4)

  • Creative-Post Microsoft SBLive 5.1 Drivers On S

    It has been well documented that Soundblaster Li've 5. drivers are available on the Microsoft Update website. Only thing is, you can't actually download them, they are installed automatically. Creative should be able to post these drivers on their ow