Oracle - dbms_job vs. dbms_scheduler
2015-03-13 18:15
871 查看
Starting with Oracle Database 10g, the Oracle scheduler was greatly improved with the
dbms_scheduler package. Replacing the dbms_job with dbms_scheduler offers additional features by adding the ability to tie jobs with specific user-type privileges and roles:
See from Dr. Timothy Hall's book "Oracle Job Scheduling"
these tips on migrating from dbms_job to dbms_scheduler:
The new 10g job scheduling views
Oracle MOSC also offers advice on moving from
dbms_job to dbms_scheduler and notes that the dba_jobs
view is obsolete with dbms_scheduler and we use dba_scheduler_jobs:
select
job_name,
enabled
from
user_scheduler_jobs;
and this:
select
job_id,
freq_type,
freq_interval,
freq_subday_type,
freq_subday_interval,
freq_relative_interval,
freq_recurrence_factor,
active_start_date,
active_end_date,
active_start_time,
active_end_time,
schedule_id
from
dba_scheduler_jobs;
MOSC also notes that internally-scheduled tasks (job queues, automatic statistics) can be seen by querying the
dba_scheduler_jobs view:
As the SYS user, use the following query to check for this job:
SELECT STATE
FROM DBA_SCHEDULER_JOBS
WHERE JOB_NAME = ’GATHER_STATS_JOB’;
This
DBASupport article shows the main DBA Scheduler views and a handy query:
DBA_SCHEDULER_SCHEDULES - provides me with information about the schedules that are in effect in the database.
DBA_SCHEDULER_PROGRAMS - shows all program objects and their attributes, while view DBA_SCHEDULER_PROGRAM_ARGS shows all program arguments for programs that have them.
DBA_SCHEDULER_JOBS - shows all job objects and their attributes.
dbms_scheduler package. Replacing the dbms_job with dbms_scheduler offers additional features by adding the ability to tie jobs with specific user-type privileges and roles:
|
these tips on migrating from dbms_job to dbms_scheduler:
|
|
Oracle MOSC also offers advice on moving from
dbms_job to dbms_scheduler and notes that the dba_jobs
view is obsolete with dbms_scheduler and we use dba_scheduler_jobs:
select
job_name,
enabled
from
user_scheduler_jobs;
and this:
select
job_id,
freq_type,
freq_interval,
freq_subday_type,
freq_subday_interval,
freq_relative_interval,
freq_recurrence_factor,
active_start_date,
active_end_date,
active_start_time,
active_end_time,
schedule_id
from
dba_scheduler_jobs;
MOSC also notes that internally-scheduled tasks (job queues, automatic statistics) can be seen by querying the
dba_scheduler_jobs view:
As the SYS user, use the following query to check for this job:
SELECT STATE
FROM DBA_SCHEDULER_JOBS
WHERE JOB_NAME = ’GATHER_STATS_JOB’;
This
DBASupport article shows the main DBA Scheduler views and a handy query:
DBA_SCHEDULER_SCHEDULES - provides me with information about the schedules that are in effect in the database.
DBA_SCHEDULER_PROGRAMS - shows all program objects and their attributes, while view DBA_SCHEDULER_PROGRAM_ARGS shows all program arguments for programs that have them.
DBA_SCHEDULER_JOBS - shows all job objects and their attributes.
相关文章推荐
- dbms_job vs Oracle Scheduler
- Oracle下查看dbms_job、dbms_scheduler_job创建的任务计划的job
- dbms_scheduler vs dbms_job
- oracle job,通过DBMS_SCHEDULER.CREATE_JOB来创建,管理也通过DBMS_SCHEDULER这个包来管理
- oracle定时任务dbms_job与dbms_scheduler使用方法
- [转]oracle定时任务(dbms_job)
- 使用DBMS_JOB包创建ORACLE定时任务
- Oracle中dbms_job包的使用
- Oracle调度程序作业dbms_scheduler
- 10g里 DBMS_SCHEDULER 和 DBMS_JOB 区别
- oracle包dbms_job的使用
- [转]oracle定时任务(dbms_job)
- oracle dba 书上的一个DBMS_JOB的例子
- oracle定时任务(dbms_job)
- oracle10g dbms_scheduler.create_job 创建job简单实例
- ORACLE特殊包和DBMS_Job包的用法
- ORACLE DBMS_JOB过程注意
- oracle dbms_job 自動調用
- Oracle中DBMS_JOB.SUBMIT的用法说明
- Oracle定时任务(1)-DBMS_SCHEDULER