Oracle Error OCI-30150: Invalid argument passed to OCIFile function

Oracle Error Message

OCI-30150: Invalid argument passed to OCIFile function

Reason for the Error

An invalid argument is passed to the OCIFile function. The most common cause is that a NULL pointer is passed where a non-NULL pointer is expected.

Solution

Make sure that the values passed as arguments are valid. Esp check for NULL pointers.