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

Oracle Error Message

OCI-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().