Question

May I know the difference for these two items?

Data in materialized view can be refresh but so as view when we use select statement. Why not just use view instead of materialized view?

Was it helpful?

Solution

When you need performance on data that don't need to be up to date to the very second, materialized views are better, but your data will be older than in a standard view.

While creating Materialized view Oracle creates two objects, a table where the results are actually materialized and a materialized view that has all the metadata (the query, the attributes, etc.).

But while creating View Oracle creates only one object, which has all the metadata(the query, the attributes, etc.)

OTHER TIPS

You use materialized views for performance reasons mainly.

According to the Oracle docs:

A materialized view is a replica of a target master from a single point in time.

A regular view loads data 'on demand' and can 'automatically' change when the underlying data changes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top