Oracle Error OCI-21301: not initialized in object mode

Oracle Error Message

OCI-21301: not initialized in object mode

Reason for the Error

This function requires the oci process to be initialized in object mode.

Solution

Specify OCI_OBJECT mode when calling OCIInitialize().