It is clear to me why a materialized view is preferable to a simple query on the base table. What is not so clear is the advantage over creating another table with the same data as MV. Is the only advantage to MV just the ease of creation / maintenance?
Isn't MV equivalent to a table with matching schema and INSERT INTO using the MVS SELECT statement?
Value, you can create MV as follows
CREATE MATERIALIZED VIEW ... AS SELECT * FROM FOO;
And you can create an equivalent table:
CREATE TABLE bar (....); INSERT INTO bar SELECT * FROM FOO;
This is not to say that ease of creation / maintenance is not enough for an advantage, I just want to make sure that I haven't missed anything.
sql oracle materialized-views
seth Nov 18 '10 at 19:21 2010-11-18 19:21
source share