Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Create Oracle Materialized View to be refreshed every 5 minute Using materialized view log

$
0
0

I'm Trying to create Materialized View which will be updated every 5 minute automatically, I need update based on Mview log table.

I have created Materialized view log on TABLE1

CREATE MATERIALIZED VIEW LOG ON TABLE1;   -- MLOG$_TABLE1

Then I've created Materialized View

CREATE MATERIALIZED VIEW JIBO_MVIEW 
REFRESH START WITH SYSDATE NEXT SYSDATE +5/24/60 
ENABLE QUERY REWRITE AS
      SELECT O.ID
            ,O.DATETIME_CREATED
            ,O.ORIGINATOR
            ,O.DETAILS
            ,O.PAYMENT_REF
        FROM TABLE1 O
       WHERE O.ORIGINATOR LIKE '53%';

after changing some value In TABLE1, new Record is inserted MLOG$_TABLE1 log table

enter image description here

but changed value is not updated in Materialized view (JIBO_MVIEW). (even after one day :) )

Please, helm me to solve this issue. is this problem due to incorrectly created Materialized view, or maybe it's due to some parameter in oracle which should be turned on?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>