Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Article 6

$
0
0

Script to check the Scheduled Jobs in the Database



set lines 200
col owner     format a12
col username  format a12
col job       format a30
col instance  format a12
col last_date format a20
col next_date format a20
col enabled   format a7

ttitle "Scheduled jobs ..." left

SELECT OWNER, JOB_NAME job, TO_CHAR(LAST_START_DATE,'mm/dd/yyyy hh24:mi:ss') last_date,
    TO_CHAR(NEXT_RUN_DATE,'mm/dd/yyyy hh24:mi:ss') next_date, ENABLED
FROM DBA_SCHEDULER_JOBS
WHERE ENABLED='TRUE'
-- AND OWNER <> 'SYS'
UNION ALL
SELECT SCHEMA_USER owner, 'dba_jobs -- '||TO_CHAR(job) job, TO_CHAR(LAST_DATE,'mm/dd/yyyy hh24:mi:ss') last_date,
    TO_CHAR(NEXT_DATE,'mm/dd/yyyy hh24:mi:ss') next_date, DECODE(broken , 'Y', 'FALSE', 'TRUE') enabled
FROM DBA_JOBS
ORDER BY 1,2
/

ttitle off

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>