Informix Error -26903: Multiple execution of a CREATE TABLE statement that was prepared once is not allowed.
Cause and resolution
Multiple execution of a CREATE TABLE statement that was prepared once is not allowed.
A CREATE TABLE statement that was prepared only one time cannot be executed multiple times.
ACTION Either set the AUTO_REPREPARE configuration parameter to 1 in the onconfig file or include the FREE statement after the PREPARE CREATE TABLE and EXECUTE statements.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26903 fires when a PREPAREd CREATE TABLE statement is EXECUTEd more than once —
per the official guidance.
- A
CREATE TABLEstatement, prepared once, was executed multiple times, per the official guidance — the direct, only cause; not allowed by default.
Solutions / Resolution
- Set the
AUTO_REPREPAREONCONFIG parameter to 1, per the official guidance, or - Add a
FREEstatement after eachPREPARE CREATE TABLE/EXECUTEpair, per the official guidance.
Examples
Freeing after each execution
PREPARE stmt1 FROM 'CREATE TABLE t1 (c1 INT)';
EXECUTE stmt1;
FREE stmt1;
Diagnostic Checks
- Check whether the program re-executes a prepared
CREATE TABLEwithout freeing it, and addFREE, or setAUTO_REPREPARE=1.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26903 in this set yet.
A prepared CREATE TABLE statement was executed more than once — free it after each
execution, or set AUTO_REPREPARE=1.