Solved

Oracle Materialized View

Posted on 2014-03-20
4
494 Views
Last Modified: 2014-03-21
Hi,

Can you please let me know what will happen if I query a oracle materialized view during materialized view refresh?

Thanks.
0
Comment
Question by:GouthamAnand
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
johnsone earned 250 total points
ID: 39941966
Fast refresh or complete refresh?

During a complete refresh you should see no rows in the view.  A complete does a truncate and load.  Once complete the load is committed and you will see all data.

During a fast refresh you should see the pre-refresh data.  It is transactional and committed at the end.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 39941977
I confirm above.
which is the reason why, on my MV which are complete refresh, I have 2 of them, and a view that is directed to the "other" one I am refreshing, and the applications use the view, not the MV .
0
 
LVL 34

Expert Comment

by:johnsone
ID: 39942013
We did it with 2 mviews and a synonym.  Everything used the synonym and didn't know the name of the mview.  Once the refresh completed successfully, the synonym was changed.
0
 

Author Closing Comment

by:GouthamAnand
ID: 39944852
Thank you.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
oracle rollup query 3 50
EXECUTE IMMEDIATE 5 53
Oracle Next Available Number 2 31
Oracle 10g standard edition server with 4 processors 3 33
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
Via a live example, show how to take different types of Oracle backups using RMAN.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now