Oracle Error ORA-56700: plan string is a subplan and SUB_PLAN attribute cannot be modified

Oracle Error Message

ORA-56700: plan string is a subplan and SUB_PLAN attribute cannot be modified

Reason for the Error

An attempt was made to modify the SUB_PLAN attribute of the specified plan.

Solution

Do not attempt to modify the SUB_PLAN attribute.