My Oracle Support Banner

HowTo show all recursive constraints leading to a table (Doc ID 779129.1)

Last updated on JULY 27, 2021

Applies to:

Oracle Database - Enterprise Edition - Version 7.3.4.0 to 11.2.0.2 [Release 7.3.4 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Goal

In some cases you may want to know the recursive constraints leading to a primary key of a table:
- ORA-2292 being hit at delete of primary row but unknown in which table
- checking the (complexity of) data model

Dba_constraints has all the entries but it will only show 1 level, for the complete picture you need to recursively select from dba_constraints.

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.