Oracle Error ORA-22132: hexadecimal string does not correspond to a valid REF

Oracle Error Message

ORA-22132: hexadecimal string does not correspond to a valid REF

Reason for the Error

The given hexadecimal string is invalid.

Solution

Provide a valid hexadecimal string which was previously returned by a call to OCIRefToHex().