Oracle Error ORA-24509: OCI function currently not supported in UTF16 mode.

Oracle Error Message

ORA-24509: OCI function currently not supported in UTF16 mode.

Reason for the Error

Attempt to call an OCI function that was not supported in OCI_UTF16ID mode.

Solution

Remove the offending function or do not create an OCI environment with OCI_UTF16ID mode or OCI_UTF16ID character set ID.