EXCHANGE PARTITION Results In ORA-01407: Cannot Update ("SYS"."HIST_HEAD$"."COL#") To NULL
Last updated on FEBRUARY 17, 2016
Applies to:Oracle Database - Enterprise Edition - Version 22.214.171.124 and later
Information in this document applies to any platform.
ALTER TABLE <table_name> EXCHANGE PARTITION <partition_name> WITH TABLE <exchange table> INCLUDING INDEXES WITHOUT VALIDATION ;
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01407: cannot update ("SYS"."HIST_HEAD$"."COL#") to NULL
A 10046 trace of the exchange statement showed this was the failing statement:
The table had had a hidden column added at some point, so primary key could be added to do a redefinition. Although the hidden column was not 100% confirmed as the cause of the corruption in hist_head$, it was suspect.
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