Informix Error -25838: Duplicate partition name in the list of fragments for truncation.
Cause and resolution
Duplicate partition name in the list of fragments for truncation.
A partition name was specified more than once in the TRUNCATE clause of the ALTER FRAGMENT statement. For example, the following statements generate an error:
ALTER FRAGMENT ON TABLE employee TRUNCATE PARTITION p1, PARTITION p1, PARTITION p2;
The partition p1 appears twice in the TRUNCATE clause.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25838 fires when ALTER FRAGMENT ... TRUNCATE's partition list names the same partition
more than once — per the official guidance.
- A partition name repeated in the
TRUNCATEclause, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove the duplicate partition name from the
TRUNCATEclause, per the official guidance.
Examples
A repeated partition name
ALTER FRAGMENT ON TABLE employee TRUNCATE PARTITION p1, PARTITION p1, PARTITION p2;
-- -25838: p1 appears twice
Corrected
ALTER FRAGMENT ON TABLE employee TRUNCATE PARTITION p1, PARTITION p2;
Diagnostic Checks
- Check the
TRUNCATE PARTITIONlist for repeated names, and remove any duplicates.
Related Errors / Related Topics
- -25837 — "Cannot truncate an index fragment." A related
TRUNCATE-clause error, on targeting an index fragment rather than repeated partition names.
ALTER FRAGMENT ... TRUNCATE repeated a partition name — remove the duplicate.