create materialized view MV_test
partition by range(id1)
(partition p0 values less than (1),
partition pmax values less than (maxvalue))
compress
refresh fast on demand
enable query rewrite
as
select
/******************************************
test.
*******************************************/
...
from t1 ...
OR
create materialized view MV_test
on prebuilt table
refresh fast on demand
enable query rewrite
as
select
...