Oracle 10g 中的定时任务job

WBOY
Release: 2016-06-07 17:00:10
Original
1055 people have browsed it

在oracle10g中有很多自动执行的job。如AUTO_SPACE_ADVISOR_JOB,GATHER_STATS_JOB等等。这些自动执行的job,在给我们带来便利的同

在Oracle10g中有很多自动执行的job。如AUTO_SPACE_ADVISOR_JOB,GATHER_STATS_JOB

等等。这些自动执行的job,在给我们带来便利的同时,,也会消耗一定的系统资源。如果不对这些自动执行任

务的时间及功能有所了解,那么这些自动执行任务就会成为你系统的一颗"地雷"。说不定那天就会爆炸。

以下的SQL让我们对系统中的定时任务,及执行时间有个简单的了解。方便我们合理的使用oracle中的这

些定时任务。尤其是在系统异常时,更要关注是否是这些定时任务在作怪。

SQL> SELECT OWNER,
2 JOB_NAME,
3 to_char(last_start_date, 'yyyy-mm-dd hh24:mi:ss') last_start_date,
4 to_char(next_run_date, 'yyyy-mm-dd hh24:mi:ss') next_run_date,
5 PROGRAM_NAME,
6 JOB_TYPE,
7 JOB_ACTION
8 FROM DBA_SCHEDULER_JOBS;

SQL> SELECT log_id,
2 job_name,
3 to_char(REQ_START_DATE, 'yyyy-mm-dd hh24:mi:ss') REQ_START_DATE,
4 to_char(Actual_Start_Date, 'yyyy-mm-dd hh24:mi:ss') Actual_Start_Date,
5 to_char(log_date, 'yyyy-mm-dd hh24:mi:ss') log_date,
6 status,
7 SESSION_ID
8 FROM dba_scheduler_job_run_details
9 ORDER BY LOG_DATE DESC;

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!