My Oracle Support Banner

EXCHANGE PARTITION Results In ORA-01407: Cannot Update ("SYS"."HIST_HEAD$"."COL#") To NULL (Doc ID 1677855.1)

Last updated on FEBRUARY 22, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

NOTE: In the document content below, the user information represents Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

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:

 

Changes

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.

   

Cause

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
Symptoms
Changes
Cause
Solution
References


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