Oracle Error ORA-24480: invalid OCI mode

Oracle Error Message

ORA-24480: invalid OCI mode

Reason for the Error

An attempt was made to invoke OCI API with an invalid mode.

Solution

Provide the OCI API with legitimate mode.