Oracle Error ORA-30151: File already exists

Oracle Error Message

ORA-30151: File already exists

Reason for the Error

Tried to open a file with OCI_FILE_EXCL flag and the file already exists.

Solution

OCIFile is supposed throw this exception in this case.