2026-03-12 20:23:15
This commit is contained in:
26
timhall/monitoring/search_source.sql
Normal file
26
timhall/monitoring/search_source.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/monitoring/search_source.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Displays a list of all code-objects that contain the specified word.
|
||||
-- Requirements : Access to the ALL views.
|
||||
-- Call Syntax : @search_source (text) (schema-name)
|
||||
-- Last Modified: 15/07/2000
|
||||
-- -----------------------------------------------------------------------------------
|
||||
BREAK ON Name Skip 2
|
||||
SET PAGESIZE 0
|
||||
SET LINESIZE 500
|
||||
SET VERIFY OFF
|
||||
|
||||
SPOOL Search_Source.txt
|
||||
|
||||
SELECT a.name "Name",
|
||||
a.line "Line",
|
||||
Substr(a.text,1,200) "Text"
|
||||
FROM all_source a
|
||||
WHERE Instr(Upper(a.text),Upper('&&1')) != 0
|
||||
AND a.owner = Upper('&&2')
|
||||
ORDER BY 1,2;
|
||||
|
||||
SPOOL OFF
|
||||
SET PAGESIZE 14
|
||||
SET VERIFY ON
|
||||
Reference in New Issue
Block a user