Message Oracle ORA-29391 - string and string must be mandatory to create a mandatory plan directive

ERRORstring and string must be mandatory to create a mandatory plan directive
CAUSEAn attempt was made to create a mandatory plan directive where either PLAN or GROUP_OR_SUBPLAN or both were not mandatory
ACTIONRecreate these objects as mandatory and then create the plan directive.