Oracle Error ORA-30162: The OCIFile context is not initialzed

Oracle Error Message

ORA-30162: The OCIFile context is not initialzed

Reason for the Error

The function OCIFileInit need to be called before calling any other OCIFile function to initialize the OCIFile context.

Solution

Call the function OCIFileInit need to be called before calling any other OCIFile function.