ORA-14097: column type or size mismatch on Alter Table Exchange Partition (Doc ID 946427.1)

Last updated on FEBRUARY 02, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.6 to 11.1.0.7 [Release 9.2 to 11.1]
Information in this document applies to any platform.

Symptoms

When trying to exchange any partitions of existing tables with a table from the original partition table an ora-14097 error is encountered. The VALIDATED status of the constraint on any of the table has status as "NOT VALIDATED".

There are no UNUSED columns or function based indexes.

Following queries return no rows:

select col#, name, type#, length, precision# from sys.col$
where obj# =(select object_id from dba_objects where object_name='object A' and object_type='TABLE')
minus
select col#, name, type#, length, precision# from sys.col$
where obj# = (select object_id from dba_objects where object_name='object B' and object_type='TABLE');




select col#, name, type#, length from sys.col$
where obj# = (select object_id from dba_objects where object_name='object B' and object_type='TABLE')
minus
select col#, name, type#, length from sys.col$
where obj# =(select object_id from dba_objects where object_name='object A' and object_type='TABLE');


Error: ORA-14097
Text: column type or size mismatch in ALTER TABLE EXCHANGE PARTITION
---------------------------------------------------------------------------
Cause: The corresponding columns in the tables specified in the ALTER TABLE
EXCHANGE PARTITION are of different type or size
Action: Ensure that the two tables have the same number of columns with the
same type and size.

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