Skip to content

Instantly share code, notes, and snippets.

@rponte
Last active October 13, 2018 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rponte/034c361ef3069890d84dcc77f6ceb86c to your computer and use it in GitHub Desktop.
Save rponte/034c361ef3069890d84dcc77f6ceb86c to your computer and use it in GitHub Desktop.
Playing with Oracle Jobs
-- shows running jobs
SELECT JOB_NAME, STATE
FROM USER_SCHEDULER_JOBS; -- DBA_SCHEDULER_JOBS
-- shows logs of completed jobs
SELECT *
FROM USER_SCHEDULER_JOB_LOG -- DBA_SCHEDULER_JOB_LOG
ORDER BY LOG_DATE DESC;
-- shows details of completed jobs
SELECT *
FROM USER_SCHEDULER_JOB_RUN_DETAILS -- DBA_SCHEDULER_JOB_RUN_DETAILS
ORDER BY LOG_DATE DESC;
--
-- Oracle Configuration
--
-- shows how many jobs Oracle supports in parallel
select value from v$parameter where name='job_queue_processes';
-- configures the max number of jobs in Oracle
alter system set job_queue_processes = 8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment