oracle查看包内的所有程序和功能

时间:2015-10-23 21:12:52

标签: sql oracle

我可以在包内执行一个过程,但我希望能够查看此包内的所有过程和函数,因为还有更多。我怎么能这样做?

1 个答案:

答案 0 :(得分:1)

全部在ALL_SOURCE表中。

DESC ALL_SOURCE;

对于包规格:

select text
from all_source
where type = 'PACKAGE'
and name = 'YOUR_PACKAGE_NAME'
order by line asc;

对于包体:

select text
from all_source
where type = 'PACKAGE BODY'
and name = 'YOUR_PACKAGE_NAME'
order by line asc;