Note
- This view is available starting with V4.3.3 in V4.3.x.
- This view is available starting with V4.2.4 in V4.2.x.
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 | decimal(20,0) | NO | This column is not supported. The value of this column is 0 by default. |
| LOG_DATE | datetime | NO | The log entry. |
| OWNER | varchar(128) | NO | The owner of the job. |
| JOB_NAME | varchar(128) | NO | The name of the job. |
| JOB_SUBNAME | varchar(128) | NO | This column is not supported. The value of this column is NULL by default. |
| STATUS | varchar(128) | NO | The status of the job. |
| CODE | bigint(20) | YES | The error number returned when an error occurs during the execution of the job. |
| REQ_START_DATE | datetime | NO | The expected start time of the job. |
| ACTUAL_START_DATE | datetime | NO | The actual start time of the job. |
| RUN_DURATION | decimal(20,0) | NO | The duration of the job execution. |
| INSTANCE_ID | varchar(128) | NO | This column is not supported. The value of this column is NULL by default. |
| SESSION_ID | decimal(20,0) | NO | This column is not supported. The value of this column is NULL by default. |
| SLAVE_PID | varchar(128) | NO | This column is not supported. The value of this column is NULL by default. |
| CPU_USED | decimal(20,0) | NO | This column is not supported. The value of this column is NULL by default. |
| CREDENTIAL_OWNER | varchar(128) | NO | This column is not supported. The value of this column is NULL by default. |
| CREDENTIAL_NAME | varchar(128) | NO | This column is not supported. The value of this column is NULL by default. |
| DESTINATION_OWNER | varchar(128) | NO | This column is not supported for cross-tenant jobs. The value of this column is NULL by default. |
| DESTINATION | varchar(128) | NO | This column is not supported for cross-tenant jobs. The value of this column is NULL by default. |
| MESSAGE | varchar(4000) | NO | The error information returned during the execution of the job. |
| JOB | bigint(20) | NO | The name of the program job. |
| TIME | timestamp(6) | NO | The timestamp when the job execution log is recorded, in seconds. |
| JOB_CLASS | varchar(30) | YES | The category of the program job. |
| GMT_CREATE | timestamp(6) | YES | The timestamp when the program job is created, in seconds. |
| GMT_MODIFIED | timestamp(6) | YES | The timestamp when the program job is modified, in seconds. |
Sample query
Query the information about all scheduler jobs in the current tenant and display the first record.
obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.DBA_SCHEDULER_JOB_RUN_DETAILS limit 1\G
The query result is as follows:
*************************** 1. row ***************************
LOG_ID: 0
LOG_DATE: NULL
OWNER: root@%
JOB_NAME: ASYNC_GATHER_STATS_JOB_PROC
JOB_SUBNAME: NULL
STATUS: SCHEDULED
CODE: -5001
REQ_START_DATE: 2025-08-29 11:57:22.818044
ACTUAL_START_DATE: NULL
RUN_DURATION: 0
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 139798281832208' at line 1
JOB: 9
TIME: 2025-08-29 11:57:23.392851
JOB_CLASS: DEFAULT_JOB_CLASS
GMT_CREATE: 2025-08-29 11:57:23.392851
GMT_MODIFIED: 2025-08-29 11:57:23.392851
1 row in set (0.006 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