Oracle Error OCI-21579: Input LCR must have at least one old or new column.

Oracle Error Message

OCI-21579: Input LCR must have at least one old or new column.

Reason for the Error

An attempt was made to call OCIXStreamInChunkSend with an LCR that had empty column lists.

Solution

Use OCILCRRowColumnInfoSet to add one or more columns to the input LCR before calling OCIXStreamInChunkSend.