I have a weird problem while creating a materialized view on a table with alot of columns, indexes and constraints.
I tried running the command:
CREATE MATERIALIZED VIEW mvX PARALLEL BUILD IMMEDIATE REFRESH FAST AS SELECT * FROM table_name
After running the command I got: "cannot create a fast refresh materialized view from a complex query" So I run the command: dbms_mview.explain_mview('SELECT * FROM table_name') and checked the mv_capabilities_table at REFRESH_FAST_AFTER_INSERT, there was the message: "inline view or subquery in FROM list not supported for this type MV"
- I have created a matiralized view log on the table with primary key and rowid.
- I tried to create the same matiralized view on a copy table (CREATE TABLE copy_table_name as select * from table_name) and it finish successfully (created a log on this table too)
This view must be FAST REFRESH. I can't explain why on the copy table it succeeded and on the original table it failed. help?