Informix Error -25738: Index can be created online only for btree secondary access method.
Cause and resolution
Index can be created online only for btree secondary access method.
An index can be successfully created with the ONLINE keyword only if the secondary access method is btree.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25738 fires when CREATE INDEX ... ONLINE is issued for an index whose secondary access
method isn't btree — per the official guidance, ONLINE index creation only succeeds for
the btree access method.
ONLINEspecified for an index using a non-btree secondary access method, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove
ONLINE, or use the btree access method, per the official guidance.
Examples
An online index on a non-btree access method
CREATE INDEX idx1 ON tab(col1) USING rtree ONLINE;
-- -25738: ONLINE only works for the btree access method
Corrected
CREATE INDEX idx1 ON tab(col1) USING rtree;
Diagnostic Checks
- Check the index's secondary access method, and confirm it's btree before using
ONLINE, or dropONLINEfor a non-btree access method.
Related Errors / Related Topics
- -25737 — "Cluster Indexes cannot be created in an online environment." A related online-index restriction, on cluster indexes specifically rather than access method.
ONLINE index creation was attempted on a non-btree access method — use btree, or drop
ONLINE.