Oracle Error ORA-24500: invalid UTF16 mode

Oracle Error Message

ORA-24500: invalid UTF16 mode

Reason for the Error

UTF16 mode is allowed only at environment handle creation time.

Solution

Remove UTF16 mode for functions other than OCIEnvCreate()