Informix Error -21512: Exclusive access required to pre-image buffer.
Cause and resolution
Exclusive access required to pre-image buffer.
Exclusive access required to pre-image buffer. Either a buffer was released with BF_MODIFY flag, or it was shared or waited for by some other thread.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-21512 is an internal error — per the official guidance, either a buffer was released with
the BF_MODIFY flag, or it was shared with or waited for by another thread, when exclusive
access to the pre-image buffer was required.
- A buffer released with
BF_MODIFY, or shared/waited-for by another thread, when exclusive pre-image-buffer access was required, per the official guidance — no further user-actionable detail is given.
Solutions / Resolution
- If this internal error recurs, note all circumstances and contact IBM Informix Technical Support, per the official guidance's implication.
Examples
N/A
No specific triggering statement is documented — this is reported as an internal error.
Diagnostic Checks
- Record the full sequence of events, and escalate to IBM Informix Technical Support if the error recurs.
Related Errors / Related Topics
- -21517 — "Error allocating bufQ for preimage or updator log." A related pre-image buffering error, on buffer-queue allocation rather than exclusive-access violation.
- -21519 — "No preimage exists." A related pre-image error, on an expected pre-image being entirely absent rather than an access-exclusivity violation.
Exclusive access to the pre-image buffer was required but not held — an internal error; contact IBM Informix Technical Support if it recurs.