Oracle Message ORA-21301 - not initialized in object mode

ERRORnot initialized in object mode
CAUSEThis function requires the OCI process to be initialized in object mode.
ACTIONSpecify OCI_OBJECT mode when calling OCIInitialize().