修改分区表主键时报错: 在行: 2 上开始执行命令时出错 -alter table KC23 modify AAZ210 VARCHAR2(50)错误报告 -sql 错误: ORA-14061: 不能更改索引分区列的数据类型或长度1
修改分区表主键时报错:
在行: 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;
--结束END--
本文标题: ORA-14061: 不能更改索引分区列的数据类型或长度
本文链接: https://www.lsjlt.com/news/2156.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0