Note
This view is available starting with V4.2.1.
Purpose
The DBA_SCHEDULER_JOB_RUN_DETAILS view displays information about all scheduler jobs in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| LOG_ID | NUMBER | NO | The log ID of the log entry. This field is not supported and is set to 0 by default.
Note
|
| LOG_DATE | TIMESTAMP(6) WITH TIME ZONE | NO | The log entry.
Note
|
| OWNER | VARCHAR2(128) | NO | The owner of the job.
Note
|
| JOB_NAME | VARCHAR2(128) | NO | The name of the job.
Note
|
| JOB_SUBNAME | VARCHAR2(128) | NO | The subname of the job. This field is not supported and is set to NULL by default.
Note
|
| STATUS | VARCHAR2(128) | NO | The status of the job.
Note
|
| CODE | NUMBER(38) | YES | The error number returned when an error occurs during job execution. |
| REQ_START_DATE | TIMESTAMP(6) WITH TIME ZONE | NO | The expected start time of the job.
Note
|
| ACTUAL_START_DATE | TIMESTAMP(6) WITH TIME ZONE | NO | The actual start time of the job.
Note
|
| RUN_DURATION | NUMBER | NO | The duration of the job execution.
Note
|
| INSTANCE_ID | VARCHAR2(128) | NO | This field is not supported and is set to NULL by default.
Note
|
| SESSION_ID | NUMBER | NO | This field is not supported and is set to NULL by default.
Note
|
| SLAVE_PID | VARCHAR2(128) | NO | The process ID of the sub-process that is initiated to execute the job. This field is not supported and is set to NULL by default.
Note
|
| CPU_USED | NUMBER | NO | The CPU usage of the job. This field is not supported and is set to NULL by default.
Note
|
| CREDENTIAL_OWNER | VARCHAR2(128) | NO | This field is not supported and is set to NULL by default.
Note
|
| CREDENTIAL_NAME | VARCHAR2(128) | NO | This column is not supported. The value of this column is NULL by default.
Note
|
| DESTINATION_OWNER | VARCHAR2(128) | NO | This column is not supported. The value of this column is NULL by default.
Note
|
| DESTINATION | VARCHAR2(128) | NO | This column is not supported. The value of this column is NULL by default.
Note
|
| MESSAGE | VARCHAR2(4000) | NO | The error message returned by the job. |
| JOB | NUMBER(38) | NO | The name of the program job. |
| TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the job log record was generated, in seconds. |
| JOB_CLASS | VARCHAR2(30) | YES | The category of the program job. |
| GMT_CREATE | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the program job was created, in seconds. |
| GMT_MODIFIED | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the program job was modified, in seconds. |
Sample query
Query the information about all scheduler jobs in the current tenant and display the first record.
obclient(SYS@oracle001)[SYS]> SELECT * FROM SYS.DBA_SCHEDULER_JOB_RUN_DETAILS WHERE ROWNUM = 1\G
The query result is as follows:
*************************** 1. row ***************************
LOG_ID: 0
LOG_DATE: NULL
OWNER: SYS
JOB_NAME: ASYNC_GATHER_STATS_JOB_PROC
JOB_SUBNAME: NULL
STATUS: SCHEDULED
CODE: -5001
REQ_START_DATE: 29-AUG-25 11.58.08.738054 AM +08:00
ACTUAL_START_DATE: NULL
RUN_DURATION: +000 00:00:00
INSTANCE_ID: NULL
SESSION_ID: NULL
SLAVE_PID: NULL
CPU_USED: NULL
CREDENTIAL_OWNER: NULL
CREDENTIAL_NAME: NULL
DESTINATION_OWNER: NULL
DESTINATION: NULL
MESSAGE: You have an error in your SQL syntax; check the manual that corresponds to your OceanBase version for the right syntax to use near 'and m.tablet_id < 1000 order by ratio desc,table_id limit 139798971270784' at line 1
JOB: 9
TIME: 29-AUG-25 11.58.09.276820 AM
JOB_CLASS: DEFAULT_JOB_CLASS
GMT_CREATE: 29-AUG-25 11.58.09.276820 AM
GMT_MODIFIED: 29-AUG-25 11.58.09.276820 AM
1 row in set (0.029 sec)
References
- Query the information about all scheduler jobs in all tenants: CDB_SCHEDULER_JOB_RUN_DETAILS
- For more information about DBMS_SCHEDULER, see DBMS_SCHEDULER Overview