Informix Error -26015: All fragments of the table or index need to be of same pagesize.
Cause and resolution
All fragments of the table or index need to be of same pagesize.
This error can occur on creating a fragmented table or index across dbspaces of different pagesize. It can also occur while performing an ALTER FRAGMENT on a table or index and the new dbspaces are of different pagesize than the dbspaces in the existing fragmentation strategy. For an interval fragmented table or index, this error can occur if the pagesize of the dbspaces in the STORE IN clause is different from the pagesize of initial fragment dbspaces.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26015 fires when a table's or index's fragments span dbspaces of different page sizes — per the official guidance.
- Creating a fragmented table/index across dbspaces of different pagesize, per the official guidance — the first named case.
- An
ALTER FRAGMENTnaming new dbspaces whose pagesize differs from the existing fragmentation strategy's dbspaces, per the official guidance — the second named case. - For an interval-fragmented table/index, a
STORE INclause naming dbspaces whose pagesize differs from the initial fragment dbspaces' pagesize, per the official guidance — the third named case.
Solutions / Resolution
- Choose dbspaces with matching pagesize for every fragment of the table/index, per the official guidance.
- For
ALTER FRAGMENT, match the new dbspaces' pagesize to the existing fragmentation strategy, per the official guidance. - For interval fragmentation, match the
STORE INclause's dbspaces' pagesize to the initial fragment dbspaces, per the official guidance.
Examples
Fragmenting across mismatched pagesizes
CREATE TABLE big_tab (id INT) FRAGMENT BY EXPRESSION
id < 1000 IN dbspace_2k,
id >= 1000 IN dbspace_4k;
-- -26015: dbspace_2k and dbspace_4k have different pagesizes
Diagnostic Checks
- Check the pagesize of every dbspace named in the fragmentation strategy
(
onstat -d), and confirm they all match.
Related Errors / Related Topics
- -26014 — "Alter fragment on typed table is not allowed." A related fragmentation restriction, on typed-table eligibility rather than pagesize consistency.
A table's/index's fragments span dbspaces of different page sizes — use dbspaces with matching pagesize throughout.