Oracle Message ORA-24363 - measurements in characters illegal here

ERRORmeasurements in characters illegal here
CAUSEMeasurements in characters instead of bytes are illegal if either the servers or clients character set is varying width.
ACTIONIf either the clients or servers character set is varying width then do not use the OCI_ATTR_CHAR_COUNT attribute for the bind handle. Use OCI_ATTR_MAXDATA_SIZE instead.