1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| select 'A',parent_owner, parent_name,
case when parent_type = 2 then 'TABLE'
when parent_type = 4 then 'VIEW'
when parent_type = 7 then 'PROCEDURE'
when parent_type = 8 then 'FUNCTION'
when parent_type = 9 then 'PACKAGE'
when parent_type = 11 then 'PACKAGE BODY'
when parent_type = 12 then 'TRIGGER'
when parent_type = 13 then 'TYPE'
when parent_type = 24 then 'QUEUE'
else 'NON'
end,
null,null,null,order_number
from ora_kglr7_dependencies
where name = upper('$prefixe')
and parent_name != upper('$prefixe')
and parent_owner != 'SYS'
and parent_name != 'DUAL'
and parent_name != 'DBMS_OUTPUT'
and parent_type not in (1,3,5,6,10,14)
UNION
select 'B',null,null,null,owner,name,
case when type = 2 then 'TABLE'
when type = 4 then 'VIEW'
when type = 7 then 'PROCEDURE'
when type = 8 then 'FUNCTION'
when type = 9 then 'PACKAGE'
when type = 11 then 'PACKAGE BODY'
when type = 12 then 'TRIGGER'
when type = 13 then 'TYPE'
when type = 24 then 'QUEUE'
else 'NON'
end,
order_number
from ora_kglr7_dependencies
where parent_name = upper('$prefixe')
and name != upper('$prefixe')
and owner != 'SYS'
and name != 'DUAL'
and name != 'DBMS_OUTPUT'
and type not in (1,3,5,6,10,14); |
Partager