Informix Error -26917: The statement failed because a UDR specifies the dbspace for the next interval fragment of this table or index.
Cause and resolution
The statement failed because a UDR specifies the dbspace for the next interval fragment of this table or index.
You cannot change th elist of dbspaces for interval fragments when a UDR returns the dbspace names for storing new interval fragments. You can use the STORE IN clause of the ALTER FRAGMENT MODIFY statement to replace the user-defined function with a list of dbspaces in which to create system-generated interval fragments.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26917 fires when an attempt to directly change a table/index's interval-fragment dbspace list conflicts with a UDR already supplying those names — per the official guidance.
- A UDR returns the dbspace names for new interval fragments, and the statement tries to change the dbspace list directly, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use
ALTER FRAGMENT MODIFY ... STORE INto replace the UDR with an explicit dbspace list, per the official guidance, if system-generated interval fragments with a fixed dbspace list are wanted instead.
Examples
Replacing the UDR with an explicit dbspace list
ALTER FRAGMENT ON TABLE rolling_tab MODIFY STORE IN (dbsp1, dbsp2);
Diagnostic Checks
- Check whether the table/index uses a UDR for interval-fragment dbspace
selection, and use
ALTER FRAGMENT MODIFY STORE INto replace it if a fixed list is needed.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26917 in this set yet.
A UDR already supplies interval-fragment dbspace names — use ALTER FRAGMENT MODIFY STORE IN to replace it instead of changing the list directly.