ORA-14551 randomly occurring on materialized view refresh
Oracle Database Release 12c Enterprise Edition Release 12.2.0.1.200114 - 64bit Solaris 11
Scheduler jobs run daily that refresh various materialized views (complete). On some occasions, we get "ORA-12801: error signaled in parallel query server POOM. ORA-14551: cannot perform a DML operation inside a query". This does not happen for every refresh, so it seems like it may be some problem within the parallel query server. Which materialized views get the error changes (i.e., it doesn't impact the same view/views each time). The sql for these views references different schemas/objects so it is also not consistent there.
Has anyone else experienced issues like this? We were originally thinking it had to do with parallel hints in the SQL the materialized view is based on, but sometimes they refresh with no issue and sometimes they throw this error and we have to drop and recreate them. Sometimes the recreation fails with the same error, but other times it works.