查询以搜索所有包中的表和/或列 [英] Query to search all packages for table and/or column
本文介绍了查询以搜索所有包中的表和/或列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以运行查询以搜索所有程序包,以查看程序包中是否使用了特定的表和/或列?有太多的程序包无法打开每个程序包,也无法找到我要寻找的值.
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
这篇关于查询以搜索所有包中的表和/或列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文