Oracle Solution for Error ora-32339

Solution for Oracle Error ORA-32339

ORA-32339: cannot alter materialized view with the PMOP

What triggered the Error:

the materialized view is not allowed to have destructive PMOPS such as DROP, TRUNCATE and EXCHANGE (sub)partition. The UGA flag of i_am_a_refresh should be set first.

What should we do to fix it:

execute set_i_am_a_refresh first before alter materialized view with the PMOP.