START_REDEF_TABLE Builds Wrong Primary Key Index Attributes (Doc ID 1914635.1)

Last updated on DECEMBER 06, 2016

Applies to:

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

Symptoms

While using a PK based online redefinition, start_redef_table() always builds the PK Index NoParallel which causes bad execution performance. i.e,  DBMS_REDEFINITION builds the target table with wrong Primary Key index attributes.

Eg:
If there is table with a primary key index and this primary key is compressed or has a parallel clause the:
If you use the DBMS_REDEFINITION package to rebuild the table then the index on the target table has no  parallel clause.
If you have a compressed key index the redefinition operation fails with ORA-28665

Steps to reproduce:

 - create MV metadata wrapper and add pk constraint
 - alter table <interim_table> disable primary key
   (internal statement to drop the pk index)
 - <complete refresh>
 - alter table <interim_table> enable primary key

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