Oracle Solution for Error ora-24370

Solution for Oracle Error ORA-24370

ORA-24370: illegal piecewise operation attempted

What triggered the Error:

ta of a certain datatype that does not support piecewise operation is being sent or fetched in pieces.

What should we do to fix it:

ways set the piece value to OCI_ONE_PIECE for datatypes that does not support piecewise operation.