Data not Migrated Properly While Using DBMS_REDEFINITION (Doc ID 1620561.1)

Last updated on MARCH 02, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.6 and later
Information in this document applies to any platform.
***Checked for relevance on 01-Mar-2017***
This Article is created to clarify the syntax of col_mapping parameter values in the START_REDEF_TABLE procedure of DBMS_REDIFINATION. DBMS_REDEFINITION misses data for nullable Column or those fields gets updated with NULL value and column with DEFAULT losses its original data

Symptoms

After running the DBMS_REDEFINITION few of the columns got updated with NULL or the column data is getting deleted and the column with DEFAULT will lose its original data and get the default value. This will cause the logical corruption in the existing data, as this is deleting data or changing the data.

The behaviour is demonstrated in the below testcase (Which is causing the Issue/Problem, which seems like delete the column data)

Part 1: Preparation

 

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