How to fix the Oracle error OCI-21580: The LOB operation length (value=string) for column (string) must be an even number of bytes.?
In this post, you’ll learn more about the Oracle ErrorOCI-21580: The LOB operation length (value=string) for column (string) must be an even number of bytes. with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
OCI-21580: The LOB operation length (value=string) for column (string) must be an even number of bytes.
Reason for the Error OCI-21580: The LOB operation length (value=string) for column (string) must be an even number of bytes.
An attempt was made to call OCIXStreamInChunkSend with an odd number of bytes for a column flagged as AL16UTF16 or NCLOB.
How to fix the Error OCI-21580: The LOB operation length (value=string) for column (string) must be an even number of bytes. ?
You can fix this error in Oracle by following the below steps
Correct either the LOB column length or ‘column_flag’ argument to OCIXStreamInChunkSend call.
Leave Your Comment