Oracle Error ORA-24907: invalid pair of callback and recipient protocol attributes

Oracle Error Message

ORA-24907: invalid pair of callback and recipient protocol attributes

Reason for the Error

The subscription handle passed into the OCI call can’t have both the callback defined and a recipient protocol other than OCI_SUBSCR_PROTO_OCI at the same time.

Solution

Please set the appropriate callback and recipient protocol attributes using the OCIAttrSet() call.