Informix Error -25817: Cannot drop or detach the only remaining non-null, non-remainder fragment.
Cause and resolution
Cannot drop or detach the only remaining non-null, non-remainder fragment.
The fragmentation scheme cannot be altered to drop or detach the last non-null, non-remainder fragment. Interval or list fragmentation must have at least one non-null, non-remainder fragment.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25817 fires when ALTER FRAGMENT ... DROP/DETACH would leave an interval/list
fragmentation scheme with no non-null, non-remainder fragment — per the official guidance,
at least one such fragment must remain.
- Dropping/detaching the last non-null, non-remainder fragment, per the official guidance — the direct, only cause.
Solutions / Resolution
- Leave at least one non-null, non-remainder fragment in place, per the official guidance, or add a replacement before dropping/detaching the last one.
Examples
N/A
No specific triggering statement is documented beyond dropping the last qualifying fragment.
Diagnostic Checks
- Check whether the fragment being dropped/detached is the scheme's last non-null, non-remainder fragment, and add a replacement first if so.
Related Errors / Related Topics
- -25803 — "Interval or list fragmentation must have at least one non-null,
non-remainder fragment." The related requirement this error enforces during
ALTER FRAGMENT.
Dropping/detaching would leave no non-null, non-remainder fragment — add a replacement first.