ALL_SCHEDULER_JOBS

本文详细介绍了 Oracle 数据库中 Scheduler 的工作原理,包括其如何管理定时任务、作业类型、调度策略等关键信息。Scheduler 能够帮助用户自动化执行数据库作业,如 PL/SQL 块、存储过程、外部可执行文件等。

ALL_SCHEDULER_JOBS

ALL_SCHEDULER_JOBS displays information about the Scheduler jobs accessible to the current user.

Related Views

  • DBA_SCHEDULER_JOBS displays information about all Scheduler jobs in the database.

  • USER_SCHEDULER_JOBS displays information about the Scheduler jobs owned by the current user. This view does not display the OWNER column.

ColumnDatatypeNULLDescription
OWNERVARCHAR2(30)NOT NULLOwner of the Scheduler job
JOB_NAMEVARCHAR2(30)NOT NULLName of the Scheduler job
JOB_SUBNAMEVARCHAR2(30) Subname of the scheduler job (for a job running a chain step)
JOB_CREATORVARCHAR2(30) Original creator of the job
CLIENT_IDVARCHAR2(64) Client identifier of the user creating the job
GLOBAL_UIDVARCHAR2(32) Global user identifier of the user creating the job
PROGRAM_OWNERVARCHAR2(4000) Owner of the program associated with the job
PROGRAM_NAMEVARCHAR2(4000) Name of the program associated with the job
JOB_TYPEVARCHAR2(16) Inline job action type:
  • PLSQL_BLOCK

  • STORED_PROCEDURE

  • EXECUTABLE

  • CHAIN

JOB_ACTIONVARCHAR2(4000) Inline job action
NUMBER_OF_ARGUMENTSNUMBER Inline number of job arguments
SCHEDULE_OWNERVARCHAR2(4000) Owner of the job's schedule (can be a window or a window group)
SCHEDULE_NAMEVARCHAR2(4000) Name of the job's schedule (can be a window or a window group)
SCHEDULE_TYPEVARCHAR2(12) The type of schedule. Possible values are as follows:
  • IMMEDIATE - start date and repeat interval are null

  • ONCE - repeat interval is null

  • PLSQL - PL/SQL expression used as schedule

  • CALENDAR - Oracle calendaring expression used as schedule

  • EVENT - event schedule

  • NAMED - a named schedule

  • WINDOW - window used as schedule

  • WINDOW_GROUP - window group used as schedule

START_DATETIMESTAMP(6) WITH TIME ZONE Original scheduled start date of the job (for an inline schedule)
REPEAT_INTERVALVARCHAR2(4000) Inline schedule PL/SQL expression or calendar string
EVENT_QUEUE_OWNERVARCHAR2(30) Owner of the source queue into which the event will be raised
EVENT_QUEUE_NAMEVARCHAR2(30) Name of the source queue into which the event will be raised
EVENT_QUEUE_AGENTVARCHAR2(30) Name of the AQ agent used by the user on the event source queue (if it is a secure queue)
EVENT_CONDITIONVARCHAR2(4000) Boolean expression used as the subscription rule for the event on the source queue
EVENT_RULEVARCHAR2(65) Name of the rule used by the coordinator to trigger the event-based job
END_DATETIMESTAMP(6) WITH TIME ZONE Date after which the job will no longer run (for an inline schedule)
JOB_CLASSVARCHAR2(30) Name of the job class associated with the job
ENABLEDVARCHAR2(5) Indicates whether the job is enabled (TRUE) or not (FALSE)
AUTO_DROPVARCHAR2(5) Indicates whether the job will be dropped when it has completed (TRUE) or not (FALSE)
RESTARTABLEVARCHAR2(5) Indicates whether the job can be restarted (TRUE) or not (FALSE)
STATEVARCHAR2(15) Current state of the job:
  • DISABLED

  • RETRY SCHEDULED

  • SCHEDULED

  • RUNNING

  • COMPLETED

  • BROKEN

  • FAILED

  • REMOTE

  • SUCCEEDED

  • CHAIN_STALLED

JOB_PRIORITYNUMBER Priority of the job relative to other jobs in the same class
RUN_COUNTNUMBER Number of times the job has run
MAX_RUNSNUMBER Maximum number of times the job is scheduled to run
FAILURE_COUNTNUMBER Number of times the job has failed to run
MAX_FAILURESNUMBER Number of times the job will be allowed to fail before being marked broken
RETRY_COUNTNUMBER Number of times the job has retried, if it is retrying
LAST_START_DATETIMESTAMP(6) WITH TIME ZONE Last date on which the job started running
LAST_RUN_DURATIONINTERVAL DAY(9) TO SECOND(6) Amount of time the job took to complete during the last run
NEXT_RUN_DATETIMESTAMP(6) WITH TIME ZONE Next date on which the job is scheduled to run
SCHEDULE_LIMITINTERVAL DAY(3) TO SECOND(0) Time after which a job which has not run yet will be rescheduled
MAX_RUN_DURATIONINTERVAL DAY(3) TO SECOND(0) Maximum amount of time for which the job will be allowed to run
LOGGING_LEVELVARCHAR2(4) Amount of logging that will be done pertaining to the job:
  • OFF

  • RUNS

  • FULL

STOP_ON_WINDOW_CLOSEVARCHAR2(5) Indicates whether the job will stop if a window associated with the job closes (TRUE) or not (FALSE)
INSTANCE_STICKINESSVARCHAR2(5) Indicates whether the job is sticky (TRUE) or not (FALSE)
RAISE_EVENTSVARCHAR2(4000) List of job events to raise for this job. Possible values are:
  • JOB_STARTED

  • JOB_SUCCEEDED

  • JOB_FAILED

  • JOB_BROKEN

  • JOB_COMPLETED

  • JOB_STOPPED

  • JOB_SCH_LIM_REACHED

  • JOB_DISABLED

  • JOB_CHAIN_STALLED

  • JOB_OVER_MAX_DUR

SYSTEMVARCHAR2(5) Indicates whether the job is a system job (TRUE) or not (FALSE)
JOB_WEIGHTNUMBER Weight of the job
NLS_ENVVARCHAR2(4000) NLS environment of the job
SOURCEVARCHAR2(128) Source global database identifier
DESTINATIONVARCHAR2(128) Destination global database identifier
COMMENTSVARCHAR2(240) Comments on the job
FLAGSNUMBER This column is for internal use.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值