Informix Error -12242: Changed Data Capture: The CDC session must be closed.
Cause and resolution
Changed Data Capture: The CDC session must be closed.
The smart large object file descriptor you are using refers to a Changed Data Capture (CDC) session. The CDC session can no longer be read and must be closed. The likely cause is an error in the CDC subsystem.
Issue the close operation provided by the Changed Data Capture interface on the CDC session. Monitor the CDC subsystem to determine the nature of the error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-12242 fires when a Changed Data Capture (CDC) session can no longer be read and must be closed — per the official guidance.
- An error in the CDC subsystem, per the official guidance — the likely cause, leaving the session unreadable.
Solutions / Resolution
- Issue the close operation from the Changed Data Capture interface on the session, per the official guidance.
- Monitor the CDC subsystem to determine the nature of the error, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a CDC session becoming unreadable.
Diagnostic Checks
- Close the CDC session via the CDC interface, and monitor the CDC subsystem for the underlying cause.
Related Errors / Related Topics
- -12240 — "Changed Data Capture: Generic Read Error." A related CDC-session error, on an individual read failure rather than the session needing closure.
- -12241 — "Changed Data Capture: The attempted operation is not supported." A related CDC-session error, about an unsupported operation rather than the session becoming unreadable.
The CDC session can no longer be read and must be closed, likely due to a CDC subsystem error — close it via the CDC interface and monitor the subsystem.