Informix Error -795: One or more dbspaces for interval fragments are unusable.
Cause and resolution
One or more dbspaces for interval fragments are unusable.
The primary chunk (and the mirror chunk, if one exists) for one or more dbspaces in the STORE IN clause of an interval fragmented table or index are unusable. Roll back the current transaction and terminate the application. Contact the database server administrator to repair the dbspaces.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-795 is a more serious variant of -794: it fires when a dbspace named in an interval
fragmentation STORE IN clause exists but its primary chunk (and mirror chunk, if configured)
are unusable — per the official guidance, unlike a simple missing-dbspace situation, this
reflects a genuine storage-level problem requiring administrator repair, and the immediate
guidance is to roll back and terminate the application rather than retry.
- A chunk-level hardware or filesystem failure affecting the primary (or mirror) chunk of a
dbspace in the
STORE INlist, per the official guidance — the underlying condition, though the specific mechanism isn't detailed further. - A chunk taken off-line or otherwise made unavailable by an administrative action, with the interval fragmentation mechanism then unable to use it when a new fragment is needed.
Solutions / Resolution
- Roll back the current transaction and terminate the application, per the official guidance — this is the documented, immediate response, distinct from -794's retry-after-fix pattern.
- Contact the database server administrator to repair the dbspaces, per the official guidance — this is a storage-level problem outside the scope of application-level recovery.
- Do not simply retry the operation, since per the official guidance the underlying chunks are unusable, not merely temporarily busy.
Examples
Checking chunk status (for the administrator)
$ onstat -d
-- review chunk status flags for the dbspace(s) named in the interval
-- fragmentation STORE IN clause; look for off-line or down chunks
Diagnostic Checks
- Roll back and terminate first, per the official guidance, rather than investigating further from the application side.
- Escalate to the database server administrator, who can check chunk status (
onstat -d) and initiate repair.
Related Errors / Related Topics
- -794 — "One or more dbspaces for interval fragments do not exist." A related, less severe
STORE INclause error, about a dbspace not existing at all (fixable viaALTER FRAGMENTor adding the dbspace) rather than an existing dbspace's chunks being unusable.
More serious than -794 — roll back and terminate the application, then escalate to the administrator for chunk repair; don't simply retry.