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

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 7.3.4.0 to 11.2.0.2 [Release 7.3.4 to 11.2]
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 master 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

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