Oracle Message OCI-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().