dbms_scheduler vs dbms_job

Although dbms_job still exists in 10gand 11g, Oracle recommends the use of dbms_scheduler in releases 10g and up. Nonew features are being added to dbms_job and you will likely quickly run intoits limitations.

dbms_scheduler is more robust andfully-featured than dbms_job and includes the following features that dbms_job doesnot have :

dbms_scheduler功能比dbms_jobs更加健全,推荐使用dbms_scheduler;以下比较来自google,并不代表全部观点。

·        logging of job runs (job history)

·        simple but powerful scheduling syntax (similar to butmore powerful than cron syntax)

·        running of jobs outside of the database on the operatingsystem

·        resource management between different classes of jobs

·        use of job arguments including passing of objects intostored procedures

·        privilege-based security model for jobs

·        naming of jobs and comments in jobs

·        stored, reusable schedules

Features in releases after 10g Release 1include :

·        dependencies between job units (10gR2 and up)

·        scheduling based on financial calendars and fiscalquarters (10gR2 and up)

·        event based jobs which run when an event is received (10gR2and up)

·        running of jobs on remote machines (11gR1 and up)

·        e-mail notifications on job events of interest (10gR2 andup)

·        starting a job based on arrival of a file (10gR2 and up)

时间: 2024-11-11 05:52:01

dbms_scheduler vs dbms_job的相关文章

DBMS_SCHEDULER and DBMS_JOB

引用原文:http://foolraty.iteye.com/blog/1107803 For DBMS_JOB usage:To find out more information about that failing job you can simply go over the jobnumber and select the needed information from the view dba_jobs. SQL>select job, what from dba_jobs ; For

Oracle 10.2.0.5 RMAN迁移并升级11.2.0.4一例

一.环境介绍 1. 源数据库环境 操作系统版本: OEL 5.4 x64数据库版本  : 10.2.0.5 x64数据库sid名 : orcl Oracle 10g 10.2.0.5(64bit)安装目录如下: 数据库软件:/u01/app/oracle/product/10.2.0/db_1数据库文件:/u01/app/oracle/oradata/orcl 归档目录:/u01/archivelog RMAN目录:/backup/dbbak/orabak 背景:一个老oracle10g数据库,

JOB_QUEUE_PROCESSES 参数

JOB_QUEUE_PROCESSES specifies the maximum number of job slaves per instance that can be created for the execution of DBMS_JOB jobs and Oracle Scheduler (DBMS_SCHEDULER) jobs. DBMS_JOB and Oracle Scheduler share the same job coordinator and job slaves

dbms_job dbms_scheduler简单比较

---------------------------陈旧的-------------------------------------/*--------------------- 创建job ---------------------------  variable jobno number;    begin   dbms_job.submit(jobno,   'book_yuqi011;',    sysdate,    'sysdate+1/24/60');   commit;end;

Oracle定时任务(1)-DBMS_SCHEDULER

来自:http://blog.csdn.net/fw0124/article/details/6753715 Oracle 10g之前,可以使用dbms_job来管理定时任务.10g之后,Oracle引入dbms_scheduler来替代先前的dbms_job,在功能方面,它比dbms_job提供了更强大的功能和更灵活的机制/管理. 使用dbms_scheduler创建一个定时任务有两种形式1)创建1个SCHEDULER来定义计划,1个PROGRAM来定义任务内容,再创建1个JOB,为这个JOB

oracle定时任务(dbms_job)的时间设置参考

最后那一项可以参考如下: 每天午夜12点 'TRUNC(SYSDATE + 1)' 每天早上8点30分 'TRUNC(SYSDATE + 1) + (8*60+30)/(24*60)' 每星期二中午12点 'NEXT_DAY(TRUNC(SYSDATE ), ''TUESDAY'' ) + 12/24' 每个月第一天的午夜12点 'TRUNC(LAST_DAY(SYSDATE ) + 1)' 每个季度最后一天的晚上11点 'TRUNC(ADD_MONTHS(SYSDATE + 2/24, 3 )

dbms_scheduler create_job repeat_interval 列子

文章 from oracle 官网 29.4.5 Setting the Repeat Interval You can control when and how often a job repeats. About Setting the Repeat IntervalYou control when and how often a job repeats by setting the repeat_interval attribute of the job itself or the nam

oracle定时任务(dbms_job)

我们要做定时任务时,有两种办法 一种是: 操作系统的定时,win的定时任务,unix的crontab一种是: 数据库级的定时,她的效率更高, 再有大量的表级操作时,建议用数据库本身的job queue,这样方便,效率高;如果用系统级定时,会增加很多编程工作,成本增加了,还很容易出错,事情越简单出错的几率越小. 再使用job queue之前,我们还要简单配置下,oracle定时执行job queue 的后台进程是SNP,要启动 snp,首先看系统模式是否支持 sql> alter system e

关于oracle dbms_job 定时执行的内容。

一.设置初始化参数 job_queue_processessql> alter system set job_queue_processes=n;(n>0)job_queue_processes最大值为1000查看job queue 后台进程sql>select name,description from v$bgprocess;或者sql>show parameter job_queue_processes;二.dbms_job package 用法介绍1.Broken()过程更