2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
-- -----------------------------------------------------------------------------------
-- File Name : https://oracle-base.com/dba/monitoring/code_dep_tree.sql
-- Author : Tim Hall
-- Description : Displays a tree of dependencies of specified object.
-- Call Syntax : @code_dep_tree (schema-name) (object-name)
-- Last Modified: 15/07/2000
-- -----------------------------------------------------------------------------------
SET VERIFY OFF
SET LINESIZE 255
SET PAGESIZE 1000
COLUMN referenced_object FORMAT A50
COLUMN referenced_type FORMAT A20
COLUMN referenced_link_name FORMAT A20
SELECT RPAD(' ', level*2, ' ') || a.referenced_owner || '.' || a.referenced_name AS referenced_object,
a.referenced_type,
a.referenced_link_name
FROM all_dependencies a
WHERE a.owner NOT IN ('SYS','SYSTEM','PUBLIC')
AND a.referenced_owner NOT IN ('SYS','SYSTEM','PUBLIC')
AND a.referenced_type != 'NON-EXISTENT'
START WITH a.owner = UPPER('&1')
AND a.name = UPPER('&2')
CONNECT BY a.owner = PRIOR a.referenced_owner
AND a.name = PRIOR a.referenced_name
AND a.type = PRIOR a.referenced_type;
SET VERIFY ON
SET PAGESIZE 22