Informix Error -25801: Cannot specify a dbspace more than once in the STORE IN clause.
Cause and resolution
Cannot specify a dbspace more than once in the STORE IN clause.
A dbspace cannot be specified more than once in the STORE IN clause. For example, the following statement generates an error:
CREATE TABLE address (street VARCHAR(128), city VARCHAR(32), state CHAR(2), zip INT) FRAGMENT BY RANGE(zip) INTERVAL(1000) STORE IN (dbs1, dbs2, dbs1) PARTITION p1 VALUES < 5000 IN dbs3, PARTITION p2 VALUES < 10000 IN dbs3, PARTITION p3 VALUES < 20000 IN dbs4;
The dbspace dbs1 appears twice in the STORE IN clause.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25801 fires when a STORE IN clause for interval fragmentation names the same dbspace
more than once — per the official guidance.
- A dbspace repeated in the
STORE INclause, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove the duplicate dbspace name from
STORE IN, per the official guidance.
Examples
A repeated dbspace
CREATE TABLE address (street VARCHAR(128), city VARCHAR(32), state CHAR(2), zip INT)
FRAGMENT BY RANGE(zip) INTERVAL(1000) STORE IN (dbs1, dbs2, dbs1)
PARTITION p1 VALUES < 5000 IN dbs3,
PARTITION p2 VALUES < 10000 IN dbs3,
PARTITION p3 VALUES < 20000 IN dbs4;
-- -25801: dbs1 appears twice
Diagnostic Checks
- Check the
STORE INclause's dbspace list, and remove any duplicate.
Related Errors / Related Topics
- -25800 — "Cannot specify overlapping fragment expressions for interval or list
fragmentation." A related interval/list fragmentation syntax error, on overlapping
partitions rather than
STORE INduplicates. - -25809 — "One or more dbspaces specified in the STORE IN clause does not exist." A
related
STORE INerror, on a nonexistent dbspace rather than a repeated one. - -25816 — "The dbspace
does not exist in list of dbspaces for interval fragments." A related interval-fragment dbspace-list error.
A dbspace was repeated in the STORE IN clause — remove the duplicate.