修改分區表主鍵時報錯: 在行: 2 上開始執行命令時出錯 -alter table KC23 modify AAZ210 VARCHAR2(50)錯誤報告 -SQL 錯誤: ORA-14061: 不能更改索引分區列的數據類型或長度14061. 00000 - "data type or length ...
修改分區表主鍵時報錯:
在行: 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;