SELECT DISTINCT referenced_name
, referenced_type
, LEVEL
, LPAD( ' ', 2 * (LEVEL - 1))
|| name
, owner
, name
, TYPE
FROM (SELECT *
FROM dba_dependencies
WHERE 1 = 1
AND (referenced_name LIKE 'XX%'
OR referenced_name LIKE 'XX_1%')
AND (name LIKE 'XX_%'
OR name LIKE 'XX_1%')
AND name <> referenced_name)
START WITH referenced_name =<<&p_object_name>>
CONNECT BY NOCYCLE referenced_name = PRIOR name
ORDER BY LEVEL
, referenced_type
, LEVEL
, LPAD( ' ', 2 * (LEVEL - 1))
|| name
, owner
, name
, TYPE
FROM (SELECT *
FROM dba_dependencies
WHERE 1 = 1
AND (referenced_name LIKE 'XX%'
OR referenced_name LIKE 'XX_1%')
AND (name LIKE 'XX_%'
OR name LIKE 'XX_1%')
AND name <> referenced_name)
START WITH referenced_name =<<&p_object_name>>
CONNECT BY NOCYCLE referenced_name = PRIOR name
ORDER BY LEVEL
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.