Incrementally refresh table

DB:10.2.0.4
OS:solaris
How to modify a table to be an incrementally refreshing table rather than a full refresh. There are background jobs that copy data from production database to our test database. How to do that

Create materialized view for that table and enable refresh.
http://download.oracle.com/docs/cd/B10500_01/server.920/a96567/repmview.htm
http://download.oracle.com/docs/cd/B10500_01/server.920/a96520/mv.htm
Thanks

Similar Messages

  • MV Incremental Refresh on join query of remote database tables

    Hi,
    I am trying to create a MV with incremental refresh option on a join query with 2 tables of remote database.
    Created MV logs on 2 tables in the remote database.
    DROP MATERIALIZED VIEW LOG ON emp;
    CREATE MATERIALIZED VIEW LOG ON emp WITH ROWID;
    DROP MATERIALIZED VIEW LOG ON dept;
    CREATE MATERIALIZED VIEW LOG ON dept WITH ROWID;
    Now, trying to create the MV,
    CREATE MATERIALIZED VIEW mv_emp_dept
    BUILD IMMEDIATE
    REFRESH FAST
    START WITH SYSDATE
    NEXT SYSDATE1/(24*15)+
    WITH PRIMARY KEY
    AS
    SELECT e.ename, e.job, d.dname FROM emp@remote_db e,dept@remote_db d
    WHERE e.deptno=d.deptno
    AND e.sal>800;
    Getting ORA-12052 error.
    Can you please help me.
    Thanks,
    Anjan

    Primary Key is on EMPNO for EMP table and DEPTNO for DEPT table.
    Actually, I have been asked to do an feasibility test whether incremental refresh can be performed on MV with join query of 2 remote database tables.
    I've tried with all combinations of ROWID and PRIMARY KEY, but getting different errors. From different links, I found that it's possible, but cannot create any successful testcase anyway.
    It will be very much helpful if you can correct my example or tell me the restrictions in this case.
    Thanks,
    Anjan

  • Full vs Incremental Refresh?

    What is the main difference between full an incremental (auto)refreshes?
    Documentation suggests that full refresh is recommended on the groups when data is changing very frequently while Incremental refresh is advised to use on the tables when data is more or less static.
    1. Is there any way to justify/quantify what is the frequent data change (50% of records in 24 hours, etc..)?
    2. In the documentation I also found that using Incremental Data Refresh TT will hook up triggers on the tables in the Oracle DB. Is that correct?
    3. For Full DataRefresh TT will be using logs from Oracle DB to refresh the data in TT. In some cases logs in the Oracle DB are kept only for a specific number of days (i.e. 5 days). What will happen if those logs are not available?
    4. Using Full refresh TT will be reloading all the data from the Oracle DB. Is there any impact for the data availability in TT by using Full refresh?
    5. I believe that Full data refresh will be taking much more time compared to the Incremental data refresh. In this case if I set autorefresh to every 5 seconds, then basically I will end up with the infinite refresh. What is recommended frequency for Full and Incremental refreshes?
    6. Full vs Incremental refresh. Which one is using less resources in Oracle DB and TT and why?
    Thank you.

    Full refresh works by discarding all the data in the cache group tables and then reloading it all from Oracle on every refresh cycle. it is best when (a) the tables are very small and (b) the refresh interval is not too short.
    Incremental autorefresh works by installing a trigger and a tracking table on each of the base tables in Oracle. As changes occur in Oracle they are tracked and when the next autorefrsh cycle comes around only the changes are propagated to the cache tables. Incremental is recommended when (a) the tables involved are of any substantial size and/or (b) when a short refresh interval is required. To try and answer your specific questions:
    1. Is there any way to justify/quantify what is the frequent data change (50% of records in 24 hours, etc..)?
    CJ>> Not really. This comes down to application requirements, how much load you can tolerate on Oracle etc.
    2. In the documentation I also found that using Incremental Data Refresh TT will hook up triggers on the tables in the Oracle DB. Is that correct?
    CJ>> Yes, a single trigger and a single tracking will be instantiated on each base table that is cached in cache group that uses incremental autorefresh.
    3. For Full DataRefresh TT will be using logs from Oracle DB to refresh the data in TT. In some cases logs in the Oracle DB are kept only for a specific number of days (i.e. 5 days). What will happen if those logs are not available?
    CJ>> No. Neither incremental nor full refresh uses Oracle logs. Full refresh simply queries the data in the table and incremental uses a combination of the data in the table and the tracking table.
    4. Using Full refresh TT will be reloading all the data from the Oracle DB. Is there any impact for the data availability in TT by using Full refresh?
    CJ>> Yes. Using full refresh TimesTen starts by emptying the cache table and so there is a significant impact on data availability. Incremental refresh does not have this issue.
    5. I believe that Full data refresh will be taking much more time compared to the Incremental data refresh. In this case if I set autorefresh to every 5 seconds, then basically I will end up with the infinite refresh. What is recommended frequency for Full and Incremental refreshes?
    CJ>> regardless of the refresh method chosen you should ensure that the refresh interval is set >> than the time it takes to perform the refresh. Setting it to a shorter value simply resuls in almost cointihnuous refresh and a much heavier load on Oracle. This is especially problematic with full refresh.
    6. Full vs Incremental refresh. Which one is using less resources in Oracle DB and TT and why?
    CJ>> Again it depends but in general incremental is the preferred choice.
    In my experience I have rarely seen anyone use full autorefresh.
    Chris

  • Refresh table-form query on table only

    Hello,
    I have a group being generated as a table-form layout. What I would like is for the table page to be refreshed always on entry. I can't set the group requery condition to always, or "when entering the page" as then the view object is executed going navigating from the table page to the form page. This seems a very simple requirement to me but Im struggling to come up with an elegant solution.
    Basically what i need is the refreshCondition on the invokeAction binding executable to be "Always and layout=table".
    Any help would be greatly appreciated !
    Cheers,
    Brent

    How do you do this, if your current page is a .jsff and not a .jspx? When I look at the refreshCondition, a .jsff does not have access to the facesContext.
    Thanks,
    Michelle
    Since this question was already answered, I created a new thread:
    Refresh table-form query on table only for .jsff pages
    Edited by: MSchaffer on Dec 1, 2010 11:54 AM

  • Reimport and Refresh Tables (MySQL DB adapter)

    Hello.
    I created DB adapter to MySQL DB in JDeveloper 11.1.1.5.
    Everytime I open Adapter Configuration Wizard on this DB Adapter I get warning: Reimport and Refresh Tables.
    "Some changes have been detected in the relational schema since these tables were imported. Please go back to the select tables page and reimport them. The changes are major enough that they can't be easily reconciled. The changes are: Table removed: ..." even there are not any changes in schema and tables still exists.
    Is it a bug or feature?
    I never saw this behaviour with Oracle DB. Is it a problem with MySQL JDBC driver?
    Thanks

    Looks like a bug to me. You should file an SR...
    Timo

  • How to refresh table display using slis and 'reuse_alv_grid_display method.

    hello,
    how to refresh table display using slis and 'reuse_alv_grid_display method'.
    when i'm refreshing table display it performs once again reuse_alv_grid_display.and when i back the previous value appear.how to solve it?
    neon

    are you chaning any value in the gird if so use this..
    Pass the user_command form name to the Import parameter
    I_CALL_BACK_USERCOMMAND .
    and have the Dynamic form implementation..
    FORM user_command USING ucomm TYPE sy-ucomm
                selfield TYPE slis_selfield.
    "The below is important for Editable Grid.
      DATA: gd_repid LIKE sy-repid, "Exists
      ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data .
      ENDIF.
      CASE ucomm.
        WHEN 'REFRSH'.
      ENDCASE.
           selfield-refresh = 'X'.
    ENDFORM.                    "user_command

  • Howto refresh table after closing a popup

    Using JDev 11.1.1.3
    I have a table and a popup. The table is populated by records from a datacontrol.
    The popup has a form showing details of the selected record in the table. I also use that popup to create new records.
    I have problems when pressing the "OK" button on the dialog. The record is saved to the database, a commit has been executed but my table does not show the new record. I need to press F5 before i see the record.
    I have tried setting a partialTrigger to the table from the popup but that does not work.
    This is the dialogEvent code:
        public void enqueteListener(oracle.adf.view.rich.event.DialogEvent dialogEvent) {
           if(dialogEvent.getOutcome() != DialogEvent.Outcome.no) {
             BindingContainer bindings =  BindingContext.getCurrent().getCurrentBindingsEntry();
             OperationBinding operationBinding = bindings.getOperationBinding("Commit");
             operationBinding.execute();
             operationBinding = bindings.getOperationBinding("Execute");
             operationBinding.execute();
           else {
             BindingContainer bindings =  BindingContext.getCurrent().getCurrentBindingsEntry();
             OperationBinding operationBinding = bindings.getOperationBinding("Rollback");
             operationBinding.execute();
        }As you see the commit gets executed and after that i execute the Execute to refresh the table but it does not seem to work...
    How can i achieve that i do not longer need to press F5 so the record show up directly in the table after the OK button is clicked in the popup?

    Hi,
    you may add this helper method to your basking bean (or base backing bean)
    public void refreshUIComponent(UIComponent x) {
            AdfFacesContext.getCurrentInstance().addPartialTarget(x);
    }When using the addPartialTarget on your adf table component, it will refresh the table entirely.
    With the "fetching data....." message etc... (It is a bit heavy)
    What would be nice, is to refresh only the current row and not the whole table.
    How ?
    protected void refreshTableCurrentRow(RichTable xTable) {
            //Refresh Table UI Current Row
            Set<Object> selectedKeys = xTable.getSelectedRowKeys();
            assert selectedKeys.size() == 1;
            Object old = xTable.getRowKey();
            try {
                xTable.setRowKey(selectedKeys.iterator().next());
                List<UIComponent> colList = xTable.getChildren();
                Iterator iter = colList.iterator();
                while (iter.hasNext()) {
                    UIComponent col = (UIComponent)iter.next();
                    Iterator iterCol = col.getChildren().iterator();
                    while (iterCol.hasNext()) {
                        refreshUIComponent((UIComponent)iterCol.next());
            } finally {
                xTable.setRowKey(old);
        }And call it just after executing the "Execute" operation
    operationBinding = bindings.getOperationBinding("Execute");
    operationBinding.execute();
    refreshTableCurrentRow(getTable());
    Regards
    Nicolas

  • Invalid member name [H] -2147218908 during incremental refreshes

    Hello,
    We're running an incremental refresh in Planning Desktop (9.2.0.2) but it errors out with: Invalid member name [H] -2147218908
    The Essbase log file mentions the same. Has anybody run in to this? I'm not sure where to look. Everything seems to be working fine.
    Essbase 9.2.0.2 on AIX
    Planning 9.2.0.2 on Windows 2003 R2

    Running into the same error. Going to run a full refresh, and will let you know my results

  • Incremental refresh in Planning Desktop only processes 1 member

    Hello,
    We're running Essbase 9.2.0.2 on AIX, Planning Desktop 9.2.0.2 on Windows, 2003, and Oracle 10g R2 on an AIX machine also.
    We copied our Oracle schema "X" to schema "Y" and linked it to a new Planning Application. Now, whenever we run a refresh (incremental or full) it only processes one member (no matter how many changes are pending). The pending x-acts table will get cleared out and only the first one will get added to Essbase.
    I've been working with Hyperion on this for over a year and they've determined that the last query (see below) that gets ran isn't getting the all the rows it needs. Basically, the query runs and only gets one result where it should get as many rows as there are in the pending x-acts table. This query runs perfectly in schema "X".
    This query does an outer join with HSP_STRINGS table. If we remove the outer join to that table, the query returns the desired results. Any thoughts on this?
    SELECT
    O1.OBJECT_ID,
    O.OBJECT_NAME,
    O2.OLD_NAME AS PARENTOLD,
    O2.OBJECT_NAME AS PARENTNEW,
    O.PARENT_ID,
    O.POSITION,
    M.CONSOL_OP1,
    M.DATA_STORAGE,
    M.TWOPASS_CALC,
    O.OLD_NAME,
    O3.OBJECT_NAME AS CURRENCY_CODE,
    O.HAS_CHILDREN,
    M.USED_FOR_CONSOL,
    O2.PARENT_ID,
    O2.POSITION,
    O3.OBJECT_ID,
    O.OBJECT_TYPE,
    S.THE_STRING
    FROM
    HSP_PENDING_XACTS O1,
    HSP_STRINGS S,
    HSP_MEMBER M,
    HSP_ENTITY R,
    HSP_CURRENCY C,
    HSP_OBJECT O2,
    HSP_OBJECT O3,
    HSP_OBJECT O
    WHERE
    O1.OBJECT_ID=S.STRING_SEQ (+) AND O1.OBJECT_ID=M.MEMBER_ID AND M.MEMBER_ID=R.ENTITY_ID
    AND R.DEFAULT_CURRENCY=C.CURRENCY_ID AND O.OBJECT_ID=O1.OBJECT_ID
    AND C.CURRENCY_ID=O3.OBJECT_ID
    AND O.PARENT_ID=O2.OBJECT_ID AND M.MEMBER_ID <> M.DIM_ID
    AND R.USED_IN IN (1,2,3,4,5,6,7)
    AND O1.XACT_TYPE = 1 AND O1.PLAN_TYPE = 1
    ORDER BY O.OBJECT_TYPE, O.GENERATION, O.POSITION

    Hi,
    The UDA will only retain member formulas.
    If you read all the information on the page, this relates to your situation :-
    To retain changes made directly to the Essbase outline, you must update the outline after every Refresh (for example, using MAXL scripts). Such changes can be automated. This process is not supported, and every effort should be made to work directly in Performance Management Architect or Planning. For more information, consult Hyperion Services or Hyperion Partners.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Refresh Table Data after dialog window is closed.

    My JDeveloper version is 11.1.1.6.0
    I have a master-detail scenario where in Master records(Table Component) are displayed in top half of the splitter panel.
    Detail records are displayed in second half of the splitter control using table components placed on tab panel.
    After clicking on the LinkButton in Master record a bounded-task-flow is invoked in a separate inline dialog window (applicaitonModal).
    In the dialog window changes to the child records is done using SelecteManyShuttle Component.
    After invoking the commit action to close the modal window the child records do not refresh or the child records do not display changes immediately. Only after the page is refreshed the changes are visible.
    Kindly suggest a solution.
    Thanks
    Deven

    are you using af;dialog then you cn use dialog listener see this
    http://www.techartifact.com/blogs/2013/03/handling-ok-and-cancel-button-in-afdialog-using-popup-in-oracle-adf-by-dialogl…

  • Refresh table and display the records after insertion of data from back end

    Hi Experts,
    JDEV 11.1.2.1
    I have a useacase which needs data to be inserted from oracle back end procedure and displayed in a ADF Table Component, when a button is pressed.
    is this possible?..if yes , how?
    Is view object will automatically refreshed and fetches newly created(from back end) rows?
    thankz in advance
    PMS

    Hi user707,
    thankz for ur reply....
    i think after executing a procedure you want to call commit operation. better you can perform this.getDbtransaction().commit In Application Module;yes i want to commit transaction after executing back end procedure using preparedStatement.Procedure is for inserting data into same table , which used for creating VO and Read only ADF Table.Procedure is executed fine, but newly created records are not getting into ADF table.Once i did commit opeartion inside back end procedure, whole records are getting into ADF Table.
    Is there any way to get whole records without doing Commit operation inside Back end procedure?
    PMS

  • Cannot refresh table - test connection works fine but refresh gives "We couldn't refresh the connection. Please go to existing connections and verify they connect to the file or server." error.

    I'm having some difficulty updating a table in my powerpivot data model. The data for the table is stored in a local excel file; if I go to
    Existing Connections select the connection and do a test then everything is successful. When however I try to refresh that particular table I get the following error:
    "We couldn’t refresh the connection. Please go to existing connections and verify they connect to the file or server."
    In the past I had this and it was an authentication issue, the files are stored on SharePoint and I wasn't logged in to Sharepoint - I have however checked this and it can't be the issue because I have other tables linked to other excel files in the same
    location that are refreshing without issue. Can anyone think of what may be causing it?
    I have even tried creating a new local excel with the same data, added it to the data model and then tried a refresh and I I get exactly the same issue. 
    Are there any known issues with refreshing data from an Excel file if, after the initial import, you add columns to the table in the excel file I was wondering if this might contribute?
    Thanks

    Hi Maracles,
    Thanks for your post.
    From your description, I tried to reproduce this issue on my test environment. However, everything is fine for me. Could you please post the specific version of SQL Server PowerPivot for Excel?
    You can try to use a trace file to troubleshoot errors in PowerPivot. If this issue still persists, please try to reinstall SQL Server PowerPivot for Excel to see if this helps.
    For more information, please see:
    PowerPivot Options & Diagnostics Dialog Box:
    http://technet.microsoft.com/en-us/library/gg399091.aspx
    Using a Trace File to Troubleshoot Errors in PowerPivot:
    http://www.sqlchick.com/entries/tag/powerpivot
    Best Regards,  
    Elvis Long
    TechNet Community Support

  • Excel 2010 Pivot Table VBA Not Refreshing Table

    My company recently upgraded from Excel 2003 to 2010. I had VBA written to take source data and convert it into a number of Pivot Tables on a number of worksheets. It has been working fine for years. After upgrading to 2010 the VBA crashed. I tracked it
    down to the fact that when my code was making changes to the Pivot Tables (changing fields, filters, etc...) the pivot table on the worksheet had no data, but the fields were there. I can manually go to the pivot table and manually refresh and all the data
    comes in.
    So I tried adding the VBA code to refresh the pivot table, but the pivot tables will not refresh with data.
    I tried:
    ActiveSheet.PivotTables("WO Pivot").RefreshTable
    and
    ActiveWorkbook.RefreshAll
    And these did not work.
    I also tried recording a macro for the manual steps to refresh and got:
     ActiveSheet.PivotTables("WO Pivot").PivotCache.Refresh
    This does not work either.
    The PivotTable name is correct, but I tried using the number as well, and the name works for other code manipulating the the pivot table.
    e.g.:
    With ActiveSheet.PivotTables("WOPivot").PivotFields("Task Title")
          .Orientation = xlRowField .Position = 2
          .Subtotals = Array(False, False, False, False, False, False, False, False, False, False, _False, False)
    End
    With Why isn't this working? Is there another way to refresh pivot table data in 2010?
    Thanks. P.S. I've tried formating this so it is readable, but it comes out garbled. Hope this looks better.

    The solution above didn't work for me, but the following did the trick:
    ActiveSheet.PivotTables("WOPivot").PivotCache.Refresh
    By the way, I identified it by recording a macro, then going on the Pivot Table that needed refreshing and pressing F9 to refresh it. The line of VBA code above was the result.
    Cheers,
    Marco.

  • Is it possible to increment the table rows automatically?

    In my HTML page I created one table with some columns but i'm unable to write code for incrementing the rows dynamically....
    i.e.. soon after entering the data in the last column, a new row should be automatically created by pressing enter key (without using any buttons it should create new row).... Is it possible...

    I don't think so. You have to trigger an js event to create a new row, I guess. You may need to write lot of javascript code. You can look for some third party grid controls.

  • Refresh table after creation of new Toplink BO

    Hi,
    i have the following Problem and i hope someone can help me. I use ADF11g/Taskflows with TopLink-mapped BOs (no ADF BC).
    Consider following Taskflow(s):
    main activity is a jsff-page (view) showing a table of BOs. From this view there are two action-outcomes defined called "edit" and "create". The edit-action calls another Taskflow constisting of one pageFragment showing the detailForm of the given BO. This Taskflow has one input and one output parameter (the BO to edit) and has two exists called "save" and "cancel". The add-Action calls a Method called "createNewBO" first and then calls the mentioned Taskflow also. Every Taskflow has ist own managed Bean in the pageFlowScope working as a Controller and DataControl for the TaskFlow and directly included views.
    The edit-action works fine. The add action also except that the table from the default activity of the first taskflow does not refresh after return from the second Taskflow. I tried to set the Refresh-Property in the PageDef to all possible values in combination with the RefreshCondition but no combination works. I can make a manual refresh or change the sorting then the new BO is shown in the table.
    Is there a possibility to call a refresh of a jsff from a taskflow or can i force the refresh on entering the jsff?
    I'm really stuck and appreciate any help ;)
    Friedrich

    You can try this:
    - on your taskflow diagram select the page that contains the table you want to refresh, and add a Page Parameter (from #{true} to #{viewScope.refresh})
    - in pageDef for that page add one invokeAction in executables and point it to methodAction that fills the iterator you want to refresh
    - for newly created invokeAction, set Refresh to ifNeeded and Refresh condition to #{viewScope.refresh}
    This should refresh the iterator each time the page (fragment) is loaded.
    Hope this helps!
    Pedja

Maybe you are looking for