如何识别在oracle中使用表的哪个过程

时间:2016-03-11 18:25:28

标签: oracle list stored-procedures

我在sybase中有一个代码,用于获取使用给定表的过程。

什么是等效的Oracle代码

use <<database>>
go
select so.type,so.name from sysobjects so, syscomments sc
where so.id=sc.id
and sc.text like '%<<tablename>>%'
and so.type='U'

1 个答案:

答案 0 :(得分:1)

select owner, name, type, text
from all_source where text like lower('%<<tablename>>%');

TYPE是oracle对象类型,如PACKAGEPROCEDUREFUNCTION等。