Oracle Solution for Error ora-24363

Solution for Oracle Error ORA-24363

ORA-24363: measurements in characters illegal here

What triggered the Error:

asurements in characters instead of bytes are illegal if either the server's or client's character set is varying width.

What should we do to fix it:

either the client's or server's 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.