Skip to content

Instantly share code, notes, and snippets.

@attibalazs
Created February 21, 2017 15:21
Show Gist options
  • Save attibalazs/2ca4102de86319eb9b276d7ebe402877 to your computer and use it in GitHub Desktop.
Save attibalazs/2ca4102de86319eb9b276d7ebe402877 to your computer and use it in GitHub Desktop.
Get all dependencies for oracle table or view. A hierarchical query which goes through the dependency tree.
select distinct *
from all_dependencies a
start with a.referenced_name = 'TEST'
connect by NOCYCLE prior a.name = a.referenced_name;
@febzhang
Copy link

exactly what i needed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment