Exchange Partition Signals ORA-14097 After Alter Table Add Column (Doc ID 1201195.1)

Last updated on MARCH 27, 2014

Applies to:

Oracle Server - Enterprise Edition - Version: 11.1.0.6 to 11.2.0.0. - Release: 11.1 to 11.2
Information in this document applies to any platform.

Symptoms


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));

Table created.

SQL v11107> ALTER TABLE exchtest ADD (c2 NUMBER DEFAULT 0 NOT NULL);

Table altered.

SQL v11107> CREATE TABLE exchtest_reorg_2 AS SELECT * FROM exchtest WHERE 1=0;

Table created.

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

Cause

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