DBMS_METADATA_DIFF.COMPARE_ALTER_XML DOES NOT CAPTURE CHAR/BYTE CHANGE

(Doc ID 2386683.1)

Last updated on APRIL 22, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 12.2.0.1 [Release 11.2 to 12.2]
Information in this document applies to any platform.

Symptoms

When using DBMS_METADATA_DIFF.COMPARE_ALERT_XML, an alter table command to change just the length semantics from BYTE to CHAR or CHAR to BYTE is not captured, however DBMS_METADATA sees the change.

If we also change the length of the column, the change can be captured by DBMS_METADATA_DIFF.COMPARE_ALERT_XML.

 

The package should pick up the change as it alters the default of the character storage. If a table column's char semantics has been modified from BYTE to CHAR and DBMS_METADATA_DIFF.COMPARE_ALERT_XML() does not report this difference.

 

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