1

如何找到对给定函数的依赖关系A?我需要知道的是,既不依赖triggers也不functions依赖于它。使用某种查询可以做到这一点吗?

4

4 回答 4

4

是的,有一个查询:

SELECT *
FROM DBA_DEPENDENCIES
WHERE REFERENCED_OWNER = 'YOUR_SCHEMA'
AND REFERENCED_NAME = 'A';
于 2012-12-25T15:01:52.097 回答
2

你可以试试这个

exec dbms_utility.get_dependency('Object_Type', 'Schema_Name','Object'); 
于 2012-12-26T08:43:59.923 回答
0
select distinct 
   owner,
   name,
   referenced_name 
from 
   dba_dependencies where referenced_name='fn_name';
于 2012-12-25T18:19:42.797 回答
-1

The Query mentioned below show which functions, procedures,triggers the particular function is used. you can also check which functions procedures,triggers,packages a particular column is used using the same query just need to replace column name instead of name of function.

SELECT DISTINCT (NAME) 
  FROM USER_SOURCE 
WHERE UPPER(TEXT) LIKE '%NAME OF FUNCTION%'; 
于 2012-12-25T15:10:02.343 回答