I'm trying to create a job that runs a stored procedure in Oracle. I have tried creating the job with a script, and with the UI in SQL Developer, but haven't had any luck. It shows up in the Scheduler/Jobs folder with no issues, and all the details match the script. I have changed the repeat_interval to something more frequent for testing, but that doesn't change anything. Running the job manually won't work either, though it does show a pop-up saying "Successfully processed SQL command."
I went through the list of configurations mentioned in this answer: Oracle DBMS Job not running, but everything seems correct. The Stored Procedure does run without any issues, it's just the job that's causing me problems.
Here is the script I've been using (repeat_interval's value is the desired outcome, but I've been using different values for it):
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'J_CAPTURE_TABLE_DATA_FOR_WEEK',
job_type => 'PLSQL_BLOCK', -- I've also tried 'STORED_PROCEDURE here
job_action => 'CAST.SP_CAPTURE_TABLE_DATA_FOR_WEEK',
comments => 'Capture Table data for older data',
start_date => SYSDATE,
end_date => null,
repeat_interval => 'FREQ=WEEKLY;BYDAY=MON;BYHOUR=2;',
enabled => true,
auto_drop => false,
number_of_arguments => 0);
COMMIT;
END;
Desired Results: The job actually runs on the schedule (or at all).