ORA-01066
Placeholder substitution failed.
Cause
Either OCIStmtPlaceholderSubstitute() was called after OCIStmtExecute(), or the statement was prepared without specifying the mode OCI_PREP2_OCI_PLACEHOLDER to OCIStmtPrepare2().
Action
- Prepare the statement using OCIStmtPrepare2() with mode OCI_PREP2_OCI_PLACEHOLDER before calling OCIStmtPlaceholderSubstitute().
- Call OCIStmtPlaceholderSubstitute() before calling OCIStmtExecute().