Oracle Error ORA-44819: Execution of this WLM function is denied

Oracle Error Message

ORA-44819: Execution of this WLM function is denied

Reason for 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.

Solution

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.