Informix Error -12246: Smart large objects: You cannot put a temporary large object into a permanent table
Cause and resolution
Smart large objects: You cannot put a temporary large object into a permanent table
You attempted to take a temporary smart large object and put it into a permanent table. This large object can disappear leaving the permanent table with an invalid pointer. Checking for this behavior is controlled by onconfig parameter SB_CHECK_FOR_TEMP.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-12246 fires when a temporary smart large object is inserted into a permanent table — per the official guidance.
- A temporary smart large object placed into a permanent table, per the official guidance — the direct, only cause; the temporary object can disappear, leaving the permanent table with an invalid pointer.
Solutions / Resolution
- Use a permanent smart large object for data stored in a permanent table, per the official guidance's implication, rather than a temporary one.
Examples
N/A
No specific triggering statement is documented beyond storing a temporary object in a permanent table.
Diagnostic Checks
- Check whether the smart large object being stored is temporary, and confirm the
SB_CHECK_FOR_TEMPonconfig parameter's setting, which controls whether this behavior is checked.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -12246 in this set yet.
A temporary smart large object was placed into a permanent table, risking a dangling
pointer — use a permanent object instead. Controlled by the SB_CHECK_FOR_TEMP onconfig
parameter.