ORA-14271: table is not partitioned by Composite Range method ORACLE 报错 故障修复 远程处理
文档解释
ORA-14271: table is not partitioned by Composite Range method
Cause: The table in ALTER TABLE MODIFY SUBPARTITION { UNUSABLE LOCAL INDEXES | REBUILD UNUSABLE LOCAL INDEXES } statement is not partitioned by Composite Range method which is illegal.
Action: Ensure that the table is partitioned by Composite Range method
ORA-14271 错误代表表不能以组合范围分区的方式进行分区。
官方解释
ORA-14271,表的分区方法不是组合范围分区。
例:
有一个名为“employee_table”的表,要求分区使用组合范围分区,尝试执行以下操作:
ALTER TABLE employee_table PARTITION BY RANGE
(salary) (PARTITION salary_1 VALUES LESS THAN (10000),
PARTITION salary_2 VALUES LESS THAN (20000),
PARTITION salary_3 VALUES LESS THAN (MAXVALUE);
执行操作时会返回以下错误:
ORA-14271:表的分区方法不是组合范围分区:
正常处理方法及步骤
确保表的分区方式是组合范围分区,如下:
ALTER TABLE employee_table PARTITION BY COMPOSITE RANGE
(salary) (PARTITION salary_1 VALUES LESS THAN (10000),
PARTITION salary_2 VALUES LESS THAN (20000),
PARTITION salary_3 VALUES LESS THAN (