Note
- In V4.3.x, this view was introduced in V4.3.3.
- In V4.2.x, this view was introduced in V4.2.4.
Purpose
The DBA_SCHEDULER_JOB_RUN_DETAILS view displays information about all scheduled jobs in the current tenant.
Columns
Column |
Type |
Nullable? |
Description |
|---|---|---|---|
| LOG_ID | decimal(10,0) | NO | Not supported. The default value is NULL. |
| 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 | Not supported. The default value is NULL. |
| STATUS | varchar(128) | NO | The status of the job. |
| CODE | bigint(20) | YES | The error code when the job fails. |
| REQ_START_DATE | datetime | NO | The scheduled start time of the job. |
| ACTUAL_START_DATE | datetime | NO | The actual start time of the job. |
| RUN_DURATION | decimal(10,0) | NO | Not supported. The default value is NULL. |
| INSTANCE_ID | varchar(128) | NO | Not supported. The default value is NULL. |
| SESSION_ID | decimal(10,0) | NO | Not supported. The default value is NULL. |
| SLAVE_PID | varchar(128) | NO | Not supported. The default value is NULL. |
| CPU_USED | decimal(10,0) | NO | Not supported. The default value is NULL. |
| CREDENTIAL_OWNER | varchar(128) | NO | Not supported. The default value is NULL. |
| CREDENTIAL_NAME | varchar(128) | NO | Not supported. The default value is NULL. |
| DESTINATION_OWNER | varchar(128) | NO | Not supported for cross-database jobs. The default value is NULL. |
| DESTINATION | varchar(128) | NO | Not supported for cross-database jobs. The default value is NULL. |
| MESSAGE | varchar(4000) | NO | The error message returned by the job. |
| JOB | bigint(20) | NO | The name of the program job. |
| TIME | timestamp(6) | NO | The time when the job log was recorded, in seconds. |
| JOB_CLASS | varchar(30) | YES | The category of the program job. |
| GMT_CREATE | timestamp(6) | YES | The time when the program job was created, in seconds. |
| GMT_MODIFIED | timestamp(6) | YES | The time when the program job was modified, in seconds. |
Sample query
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)
