My Oracle Support Banner

Bug 11068025 - DBMS_REDEFINITION Fails To Move Table & Lob Columns If Lob Segment Names Not System Generated (Doc ID 1317168.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


Attempting to perform an online move of a table and it's lob columns with DBMS_REDEFINITION to a new tablespace does not move the segments if non-system generated names are used for the lob segments.

The COPY_TABLE_DEPENDENTS function  fails with  ORA-936 when the table contains a named lob segment,

redefinition_errors PLS_INTEGER := 0;
DBMS_REDEFINITION.copy_table_dependents(uname => 'TEST',
orig_table => 'ORIGINAL',
int_table => 'INTERIM',
copy_indexes => DBMS_REDEFINITION.cons_orig_params,
copy_triggers => TRUE,
copy_constraints => TRUE,
copy_privileges => TRUE,
ignore_errors => FALSE,
num_errors => redefinition_errors,
copy_statistics => FALSE);
-- ERROR at line 1:
-- ORA-00936: missing expression
-- ORA-06512: at "SYS.DBMS_REDEFINITION", line 1173
-- ORA-06512: at "SYS.DBMS_REDEFINITION", line 1713
-- ORA-06512: at line 4


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.