Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7761659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:11:39+00:00 2026-06-01T14:11:39+00:00

I created a materialized view that refreshed every 5 min but when I do

  • 0

I created a materialized view that refreshed every 5 min but when I do insert and perform select on materialized view I get same old data? Do I need to refresh manually?

CREATE MATERIALIZED VIEW MVW_TEST
REFRESH FORCE ON DEMAND 
START WITH TO_DATE('01-01-2009 00:01:00', 'DD-MM-YYYY HH24:MI:SS') NEXT SYSDATE + 1/1152 
As select * from TEST12
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:11:41+00:00Added an answer on June 1, 2026 at 2:11 pm

    I have demonstrated in steps where a materialized view refresh after every one minute ,for having
    a mv which refresh after 5 minute use next(sysdate+5/1440)

    Step1:

    Create table temp (A int);
    

    Step2:

    Create Materialized view temp_mv
          refresh complete start with (sysdate) next  (sysdate+1/1440) with rowid
            as select * from temp;
    

    Step3:

    select count(*) from temp;
    
           COUNT(*)
          ----------
              0
    

    Step4:

    select count(*) from temp_mv;
    
           COUNT(*)
          ----------
              0
    

    Step5:

    begin
          for i in 1..10 loop
             insert into temp values (i+1);
          end loop;
    end;
    /
    

    Step6:

    commit;
    

    Step7:

    select count(*) from temp;
    
           COUNT(*)
         ----------
            10
    

    Step8:

    select count(*) from temp_mv;
    
           COUNT(*)
           ----------
              0
    

    Step9:

    select to_char(sysdate,'hh:mi') from dual;
    
           TO_CH
           -----
           04:28
    

    Step10:

    select to_char(sysdate,'hh:mi') from dual;
    
           TO_CH
            -----
           04:29
    

    Step11:

    select count(*) from temp;
    
          COUNT(*)
         ----------
            10
    

    Step12:

    select count(*) from temp_mv;
    
          COUNT(*)
          ----------
             10
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to execute a refresh on a materialized view, but I cant get
I have some demanding mysql queries that have to select same frequently updated datasets
We have some Materialized views in our Oracle 9i database that were created a
I created a Materialized view using the following code: CREATE MATERIALIZED VIEW M_USER_HIERARCHY BUILD
i, I have one Materialized view on one server which is created by DB
CREATE MATERIALIZED VIEW ORDERS_MV BUILD IMMEDIATE REFRESH COMPLETE ON DEMAND AS SELECT * FROM
I have a Materialized view in Oracle that contains a LEFT JOIN which takes
I have created materialized view (MV) on a table which is updated once in
Created a views.py method to get the data posted from an html form. As
Created .NET WCF service, tested it - works. Generated schemas from Data and service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.