My Oracle Support Banner

How to get the metadata DDL of U, P and R type constraints (Doc ID 2289315.1)

Last updated on AUGUST 04, 2018

Applies to:

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

Goal

How to get the metadata DDL of U P and R type constraints?

Referential constraint DDL can not be just collected simply using dbms_metadata and the document might be useful if import utility is not able to import constraints from a corrupted dumpfile or character set difference or character corrupted etc..
Basically if the corruption is in metadata, then collect DDL of all the constraints and run in target using below scripts.

 

Solution

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
Goal
Solution


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