Effect Of DBMS_REDEFINITION on Foreign Key Constraints (Doc ID 1914611.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 12.1.0.2 [Release 10.2 to 12.1]
Information in this document applies to any platform.

Symptoms

Redefining a table with a foreign key constraint that refers to the same table, leaves the constraint in a disabled state. However, Foreign key constraints that refer to other tables, behave as expected. i.e., the constraint is re-enabled at the end of the redefinition.

SQL> exec dbms_redefinition.abort_redef_table(user, 'foo_child', 'foo_child_i');

The FK is disabled:

CONSTRAINT_NAME                STATUS  
------------------------------ --------
SYS_C0033255                   ENABLED  
FOO_PK                             ENABLED  
SYS_C0033258                   ENABLED  
FOO_CHILD_FK                   DISABLED
FOO_CHILD_PK                   ENABLED  

The stack is likely to include function kkzumco2

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