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

Last updated on SEPTEMBER 02, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 and later
Information in this document applies to any platform.
***Checked for relevance on 01-Sep-2017***

Symptoms


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,

DECLARE
redefinition_errors PLS_INTEGER := 0;
BEGIN
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);
END;
/
-- 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

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