I am looking for a simple Oracle SQL query: I want to know in which packages in the Oracle database a specific table is been used. E.g
select *
from abc
where table.name = 'XYZ'
The output should show me all packages for this table.
I am looking for a simple Oracle SQL query: I want to know in which packages in the Oracle database a specific table is been used. E.g
select *
from abc
where table.name = 'XYZ'
The output should show me all packages for this table.
Give this a try:
SELECT *
FROM ALL_DEPENDENCIES
WHERE referenced_name = 'YOUR_TABLE_NAME'
AND owner = 'YOUR_USER'
and type = 'PACKAGE BODY';