首页 > 其他 > 详细

ORA-14061: 不能更改索引分区列的数据类型或长度

时间:2020-12-10 09:33:31      阅读:24      评论:0      收藏:0      [点我收藏+]

修改分区表主键时报错:

在行: 2 上开始执行命令时出错 -
alter table KC23 modify AAZ210 VARCHAR2(50)
错误报告 -
SQL 错误: ORA-14061: 不能更改索引分区列的数据类型或长度
14061. 00000 -  "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)

 

--解决:

 

ALTER TABLE KC23 drop CONSTRAINT PK_KC23;
drop index PK_KC23;

alter table KC23 modify ( AAZ210 VARCHAR2(50));

alter table KC23 add constraint PK_KC23 primary key(AAZ210) using index TABLESPACE TBSB_SJQY;

ALTER TABLE KC23 enable CONSTRAINT PK_KC23;

ORA-14061: 不能更改索引分区列的数据类型或长度

原文:https://www.cnblogs.com/colorchild/p/14111916.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!