Oracle Solution for Error ora-44819

Solution for Oracle Error ORA-44819

ORA-44819: Execution of this WLM function is denied

What triggered the Error:

Either a WLM plan was being loaded from another instance, or the strict order of the PL/SQL calls for loading WLM plan was not followed.

What should we do to fix it:

Check if another session is also concurrently trying to load a WLM plan. If that is not true, check the order in which you are making these PL/SQL calls to load your WLM plan.