We may encounter some situation ,where client code is completely wrapped and situation may come to know table names used for that package without unwrapping code.
Below query will help us to know some information for it.
SQL> SELECT * FROM USER_DEPENDENCIES
WHERE TYPE ='PACKAGE BODY'
AND REFERENCED_OWNER = '&OWNER_NAME'
AND NAME = '&NAME_OF_THE_OBJECT';
as we all know, In Normal unwrapped code , below query will help us to know anything.
SQL> select * from user_source
where TEXT LIKE '%&Enter_Any_String_Which_You_Want_to_Search_in_Complete_Schema%'
and Same way you may want to find DB Link where its used in your Database objects.
We can use following query to find DB link used objects:-
SQL> SELECT * FROM USER_DEPENDENCIES
WHERE REFERENCED_LINK_NAME='db link name';
Below query will help us to know some information for it.
SQL> SELECT * FROM USER_DEPENDENCIES
WHERE TYPE ='PACKAGE BODY'
AND REFERENCED_OWNER = '&OWNER_NAME'
AND NAME = '&NAME_OF_THE_OBJECT';
as we all know, In Normal unwrapped code , below query will help us to know anything.
SQL> select * from user_source
where TEXT LIKE '%&Enter_Any_String_Which_You_Want_to_Search_in_Complete_Schema%'
and Same way you may want to find DB Link where its used in your Database objects.
We can use following query to find DB link used objects:-
SQL> SELECT * FROM USER_DEPENDENCIES
WHERE REFERENCED_LINK_NAME='db link name';