查询以搜索表和/或列的所有包
2021-12-06 00:00:00
oracle
是否可以运行查询来搜索所有包以查看包中是否使用了特定表和/或列?包太多了,无法打开每个包并找出我要查找的值.
Is there a query I can run to search all packages to see if a particular table and/or column is used in the package? There are too many packages to open each one and do a find on the value(s) I'm looking for.
推荐答案
您可以这样做:
select *
from user_source
where upper(text) like upper('%SOMETEXT%');
或者,SQL Developer 有一个内置报告来执行此操作:
Alternatively, SQL Developer has a built-in report to do this under:
View > Reports > Data Dictionary Reports > PLSQL > Search Source Code
USER_SOURCE 的 11G 文档位于这里
The 11G docs for USER_SOURCE are here
相关文章