Last updated on MARCH 27, 2014
Applies to:Oracle Server - Enterprise Edition - Version: 184.108.40.206 to 220.127.116.11. - 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
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms