ORA-14061: data type or length of an index partitioning column may not be changed ORACLE 报错 故障修复 远程处理

文档解释

ORA-14061: data type or length of an index partitioning column may not be changed

Cause: User issued ALTER TABLE statement attempting to modify data type and/or length of a column used to partition some index defined on the table named in ALTER TABLE statement, which is illegal

Action: Avoid modifying data type and/or length of index partitioning column(s)

该错误是由于尝试修改索引分区列的数据类型或长度导致的。

官方解释

Oracle诊断报告:ORA-14061:尝试更改索引分区列的数据类型或长度,不允许这样做。

常见案例

尝试修改索引分区列的数据类型或长度,例如将一个VARCHAR2(32) 列更改为 VARCHAR2(64)。

正常处理方法及步骤

1、停止正在使用或访问的对象;

2、删除原有的索引;

3、创建一个新的索引,使用你想要的索引分区列的数据类型或长度;

4、在已删除的索引上重建任何约束和PROFILE;

5、重新启用访问或使用的对象。

香港美国云服务器首选后浪云,2H2G首月10元开通。
后浪云(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。

THE END