0
A
回答
0
尝试此查询:
select name,
line,
text
from ALL_SOURCE
where text like '%ID_SUB%'
+0
Works!谢谢!! ;) – pacio14
0
所有的程序代码将在sys.all_source表,如果您有权从中进行选择。这应该让你靠近一点:
select distinct owner, name
from sys.all_source
where type = 'PROCEDURE'
and text like '%ID_SUB%';
0
没有保证的方式,但可以使用regexp_like
检查整个单词搜索用户/所有/ dba_source,和交叉引用与用户/所有/ dba_dependencies到缩小要检查的包列表。
select s.name, s.type, s.line, s.text
from user_source s
where ltrim(s.text,chr(9)||' ') not like '--%'
and regexp_like(lower(s.text),'\Wyour_column_name_here\W')
and (s.name, s.type) in
(select d.name, d.type
from user_dependencies d
where d.referenced_owner = user
and d.referenced_name = 'YOUR_TABLE_NAME_HERE');
,或者有可能是从其他模式对它的引用,
select s.owner, s.name, s.type, s.line, s.text
from all_source s
where ltrim(s.text,chr(9)||' ') not like '--%'
and regexp_like(lower(s.text),'\Wyour_column_name_here\W')
and (s.owner, s.name, s.type) in
(select d.owner, d.name, d.type
from all_dependencies d
where d.referenced_owner = user
and d.referenced_name = 'YOUR_TABLE_NAME_HERE');
你可能会使它只需使用select distinct s.owner, s.name, s.type ...
获得对象进行调查的名单。
(重复我的回答How to find name of the stored procedure using Column name in Oracle 11g我意识到后职位是5岁。希望这是确定与SO礼仪。)
相关问题
- 1. pl/sql - 在存储过程中使用动态查询
- 2. 将多列SQL查询显示到PL/SQL存储过程中
- 3. INSERT存储过程(PL/SQL)
- 4. PL/SQL存储过程
- 5. oracle PL/SQL存储过程
- 6. PL/SQL存储过程
- 7. 在所有存储过程中查找使用表值函数
- 8. 如何使用存储的PL/SQL过程调用包函数?
- 9. 如何使用PL/SQL查找是否存在序列
- 10. 如何查找存储过程中使用的列
- 11. 如何查找使用存储过程的SQL Server作业?
- 12. PL/SQL存储和调用过程
- 13. 存储过程。 T-SQL到PL/SQL
- 14. 查找引用另一个存储过程的所有存储过程
- 15. 如何在存储过程中查找数据表列引用
- 16. PL/SQL在存储过程中包装分层查询
- 17. 查找存储过程列表的所有依赖关系
- 18. 的Oracle PL/SQL存储过程
- 19. PL/SQL复杂的存储过程
- 20. 查找存储过程中未引用的所有表格
- 21. Java存储过程与PL/SQL存储过程
- 22. SQL Server在存储过程中如何查找对象名称?
- 23. 如何查找所有使用特定功能的存储过程
- 24. 如何查找存储过程调用?
- 25. 如何使用PL/SQL查找表中的空列数
- 26. 在SQL Server 2008中查找存在错误的存储过程?
- 27. 找到SQL Server 2000中的所有存储过程和作业
- 28. 创建Oracle PL/SQL存储过程
- 29. Oracle存储过程比PL/SQL慢吗?
- 30. 存储过程 - PL/SQL - 插入错误
的可能的复制[如何在Oracle 11g中使用列名,找到存储过程的名称] (http://stackoverflow.com/questions/5432948/how-to-find-name-of-the-stored-procedure-using-column-name-in-oracle-11g) –