Oracle Solution for Error ora-21301

Solution for Oracle Error ORA-21301

ORA-21301: not initialized in object mode

What triggered the Error:

is function requires the OCI process to be initialized in object mode.

What should we do to fix it:

ecify OCI_OBJECT mode when calling OCIInitialize().