Informix Error -25816: The dbspace <dbsname> does not exist in list of dbspaces for interval fragments. </dbsname>
Cause and resolution
The dbspace <dbsname> does not exist in list of dbspaces for interval fragments. </dbsname>
The specified dbspaces does not exist in list of dbspaces for interval fragments of the given table table or index. The following query will give the current list of dbspaces for interval fragments for a table and its indexes:
SELECT t.tabname, f.indexname, f.exprtext FROM sysfragments f, systables t WHERE f.tabid = t.tabid AND f.evalpos = -1 AND t.tabname = <tabname>; </tabname>
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25816 fires when a statement references a dbspace not present in a table/index's registered list of interval-fragment dbspaces — per the official guidance.
- A dbspace not in the table/index's
sysfragments-recorded interval-fragment dbspace list, per the official guidance — the direct, only cause.
Solutions / Resolution
- Query
sysfragments/systablesfor the table's actual current interval-fragment dbspace list, and use one of those, per the official guidance.
Examples
Checking a table's interval-fragment dbspace list
SELECT t.tabname, f.indexname, f.exprtext
FROM sysfragments f, systables t
WHERE f.tabid = t.tabid AND f.evalpos = -1 AND t.tabname = 'mytable';
Diagnostic Checks
- Query
sysfragments/systablesas shown above, and confirm the dbspace being referenced is actually in the list.
Related Errors / Related Topics
- -25801 — "Cannot specify a dbspace more than once in the STORE IN clause." A
related
STORE IN-clause error. - -25809 — "One or more dbspaces specified in the STORE IN clause does not exist." A related dbspace-existence error, checked at creation time.
A dbspace wasn't in the table/index's registered interval-fragment dbspace list — query
sysfragments/systables for the actual list.