Oracle Error ORA-29385: cannot create plan directive from string to string

Oracle Error Message

ORA-29385: cannot create plan directive from string to string

Reason for the Error

An attempt was made to create a plan directive from a plan to itself.

Solution

Make sure the arguments PLAN and GROUP_OR_SUBPLAN to procedure CREATE_PLAN_DIRECTIVE of package DBMS_RESOURCE_MANAGER are different.