START_REDEF_TABLE Builds Wrong Primary Key Index Attributes
Last updated on DECEMBER 06, 2016
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 126.96.36.199 [Release 10.2 to 12.1]
Information in this document applies to any platform.
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.
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:
- alter table <interim_table> disable primary key
(internal statement to drop the pk index)
- <complete refresh>
- alter table <interim_table> enable primary key
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