0

Is it possible to search a JOB by the code it executes? I.E. I want to find the JOB that launches a certain stored procedure.

Is there a query to do it?

enter image description here

Raidri
  • 17,258
  • 9
  • 62
  • 65
Revious
  • 7,816
  • 31
  • 98
  • 147

2 Answers2

2
select 
  * 
from 
  user_jobs 
where 
  what like '%my_token%';
Florin Ghita
  • 17,525
  • 6
  • 57
  • 76
1

Try using the all_dependencies view.

select * from all_dependencies where referenced_name = 'YOUR_STORED_PROC';
furman87
  • 928
  • 13
  • 20