Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • crontab syntax Linux/Unix
  • Parallel DML Oracle
  • .profile Linux/Unix
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • find_longsql.sql Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle
  • SQL Server Vs Oracle Architecture difference SQL Server
  • Explain Plan Output 2 Oracle
  • Korn Shell Arithmatic Linux/Unix
  • USER_TABLES.Freelists Oracle
  • good note for shared pool tunnig Oracle
  • SQL Server: How to see historical transactions SQL Server
  • Jai Shree Ram Oracle

Find Multiple levels of object dependencies : depen.sql

Posted on 21-Apr-2006 By Admin No Comments on Find Multiple levels of object dependencies : depen.sql

set echo off

set head off

set lines 130

set verify off

accept v_owner prompt ‘Enter Owner Name : ‘

accept v_name prompt ‘Enter Object Name : ‘

accept v_type prompt ‘Enter Object Type : ‘

prompt Dependency tree for OWNER : &v_owner, OBJECT_NAME : &v_name OBJECT_TYPE : &v_type

prompt ==========================================================================================

SELECT rpad (rpad(‘*’, LEVEL*2, ‘ ‘) || rpad( owner||’.’||name, 60, ‘ ‘), 80, ‘ ‘) || ‘-‘ || type

FROM dba_dependencies

START WITH referenced_owner = upper(‘&v_owner’)

and referenced_name = upper(‘&v_name’)

and referenced_type = upper(‘&v_type’)

CONNECT BY PRIOR owner = referenced_owner

and prior name = referenced_name

and prior type= referenced_type;

set echo on

set head on

set verify on

Oracle, SQL scripts

Post navigation

Previous Post: SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql
Next Post: Parallel DML

Related Posts

  • Building Our Own Namespaces with “Create Context” Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • Oracle 10g for solaris 10 Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Good notes for shared pool Oracle
  • Difference between SYNC and AFFIRM Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • find_string_in_database.sql Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Backup and Recovery Scenarios Oracle
  • chk_space_SID.ksh Linux/Unix
  • Caching sequence in Memory Oracle
  • CPU speed on solaris Linux/Unix
  • Proc code Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme