How to fix the Oracle error ORA-24907: invalid pair of callback and recipient protocol attributes?

In this post, you’ll learn more about the Oracle ErrorORA-24907: invalid pair of callback and recipient protocol attributes with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

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

Reason for the Error ORA-24907: invalid pair of callback and recipient protocol attributes

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.

How to fix the Error ORA-24907: invalid pair of callback and recipient protocol attributes ?

You can fix this error in Oracle by following the below steps

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