Exchange Partition Signals ORA-14097 After Alter Table Add Column
(Doc ID 1201195.1)
Last updated on OCTOBER 17, 2019
Applies to:Oracle Database - Enterprise Edition - Version 220.127.116.11 to 18.104.22.168. [Release 11.1 to 11.2]
Information in this document applies to any platform.
ALTER TABLE EXCHANGE PARTITION fails even though both tables have the same column names and data types when a column has been added via alter table.
SQL v11107> CREATE TABLE exchtest (c1 CHAR(9) NOT NULL) PARTITION BY RANGE (c1) (PARTITION exchtest_00 VALUES LESS THAN (MAXVALUE));
SQL v11107> ALTER TABLE exchtest ADD (c2 NUMBER DEFAULT 0 NOT NULL);
SQL v11107> CREATE TABLE exchtest_reorg_2 AS SELECT * FROM exchtest WHERE 1=0;
SQL v11107> ALTER TABLE exchtest EXCHANGE PARTITION exchtest_00 WITH TABLE exchtest_reorg_2;
ALTER TABLE exchtest EXCHANGE PARTITION exchtest_00 WITH TABLE exchtest_reorg_2
ERROR at line 1:
ORA-14097: column type or size mismatch in ALTER TABLE EXCHANGE PARTITION
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document