Data not Migrated Properly While Using DBMS_REDEFINITION
Last updated on MARCH 02, 2017
Applies to:Oracle Database - Enterprise Edition - Version 184.108.40.206 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
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
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