select o.object_type,o.owner,o.object_name, CASE WHEN D.REFERENCED_NAME = O.OBJECT_NAME THEN NULL ELSE D.REFERENCED_NAME || ' --> ' || d.referenced_type END "dependency to" from dba_objects o join dba_dependencies d on o.object_name = d.name where object_name in ( 'MYVIEW1', 'MYVIEW2', ) and object_type <> 'SYNONYM' order by object_type desc, "dependency to";
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
Wednesday, December 7, 2016
How to find dependencies between views and the tables they're based upon
Use the following Query to list the base tables on which the
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment