How To Use DBMS_METADATA_DIFF API To Compare Object Metadata

(Doc ID 1366469.1)

Last updated on FEBRUARY 15, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2]
Information in this document applies to any platform.
RDBMS version 11gR2.
***Checked for relevance on 15-Feb-2017***


The provided information/example shows how to use DBMS_METADATA_DIFF API to compare object metadata.
For the example a new test schema and two test tables need to be created as summarized below:

  1. Create a new testschema.
  2. Create two tables under the test schema.
    These tables are going to have a few DDL differences for this example.
  3. Run DBMS_METADATA_DIFF API to compare the tables and show the differences


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