Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • TRUNCATE Privs Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Giving Grant on v$DATABASE Oracle
  • Oracle 11g Environment Setup Oracle
  • scripts to take listener.log backup Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Virtual Indexes in Oracle Oracle
  • block_ident.sql Oracle
  • Find Stale DR Physical Standby Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • Important Script Method for tuning Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix
  • Gathering statistics with DBMS_STATS 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

  • VIvek Encryption Package and Its Usage Oracle
  • Oracle Identifiers Oracle
  • Index Range Scan Oracle
  • Exadata Basics Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • Jai Shree Ram Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • handling filenname with space Linux/Unix
  • Some OS level threshold for performance. Linux/Unix
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • Implementing Listener Security Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • find_cons.sql Oracle
  • Absolute file number and relative file number Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme