Oracle Solution for Error ora-32337

Solution for Oracle Error ORA-32337

ORA-32337: cannot alter materialized view with pending changes refresh on commit

What triggered the Error:

There are some pending changes in the detail tables

What should we do to fix it:

Execute an on-demand refresh on the materialized view to synchronize the data between the materialized view and the detail tables and then issue an ALTER MATERIALIZED VIEW statement.