Oracle 视图 ALL_SCHEDULER_JOB_LOG 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_SCHEDULER_JOB_LOG显示Scheduler Job执行的详细日志记录。它描述了每次执行job的成功状态,以及在执行过程中发生错误的消息和报告。主要的字段有:OWNER(任务的拥有者),JOB_NAME(任务的名称),INSTANCE_ID(实例ID),START_DATE(任务开始时间),END_DATE(任务结束时间),RUN_COUNT(任务执行次数),STATUS(任务执行状态),ERROR#(异常处理代码),MESSAGE(异常处理信息)等。
可以使用以下SQL查询来查看Scheduler Job的执行日志:
SELECT * FROM ALL_SCHEDULER_JOB_LOG WHERE JOB_NAME=”
我们也可以通过以下SQL查询来查询上次执行任务的状态:
SELECT * FROM ALL_SCHEDULER_JOB_LOG WHERE JOB_NAMe=” ORDER BY START_DATE DESC LIMIT 1
另外,还可以通过RUN_COUNT列来查询特定次数任务的执行情况:
SELECT * FROM ALL_SCHEDULER_JOB_LOG WHERE JOB_NAME=” AND RUN_COUNT=”;
官方英文解释
ALL_SCHEDULER_JOB_LOG
displays log information for the Scheduler jobs accessible to the current user.
Related Views
DBA_SCHEDULER_JOB_LOG
displays log information for all Scheduler jobs in the database.USER_SCHEDULER_JOB_LOG
displays log information for the Scheduler jobs owned by the current user.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
| Unique identifier that identifies a row |
|
| Date of the log entry | |
|
| Owner of the Scheduler job | |
|
| Name of the Scheduler job | |
|
| Subname of the Scheduler job (for a chain step job) | |
|
| Class that the job belonged to at the time of entry | |
|
| Operation corresponding to the log entry | |
|
| Status of the operation, if applicable. Possible values for this column are dependent on the value in the
| |
|
| Name of the user who performed the operation, if applicable | |
|
| Client identifier of the user who performed the operation, if applicable | |
|
| Global user identifier of the user who performed the operation, if applicable | |
|
| Owner of the credential used for this remote job run | |
|
| Name of the credential used for this remote job run | |
|
| Owner of the destination object used in this remote job run; NULL if no object used | |
|
| Destination for a remote job operation | |
|
| Additional information on the entry, if applicable |
See Also:
“DBA_SCHEDULER_JOB_LOG”
“USER_SCHEDULER_JOB_LOG”
编辑:568数据
标签:状态,异常,次数,还可以,可以通过