Note
This view is available starting with V4.4.2 BP1.
Purpose
This view displays all running jobs in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| OWNER | varchar(128) | NO | The job owner. |
| JOB_NAME | varchar(128) | NO | The job name. |
| JOB_SUBNAME | varchar(128) | NO | This column is not supported in the current version. |
| JOB_STYLE | varchar(17) | YES | The value is always REGULAR. |
| DETACHED | varchar(5) | NO | This column is not supported in the current version. |
| SESSION_ID | decimal(10,0) | YES | The session ID. |
| SLAVE_PROCESS_ID | decimal(10,0) | NO | This column is not supported in the current version. |
| SLAVE_OS_PROCESS_ID | decimal(10,0) | NO | This column is not supported in the current version. |
| RUNNING_INSTANCE | decimal(10,0) | NO | This column is not supported in the current version. |
| RESOURCE_CONSUMER_GROUP | varchar(128) | NO | This column is not supported in the current version. |
| ELAPSED_TIME | decimal(10,0) | NO | The job running time. |
| CPU_USED | decimal(10,0) | NO | This column is not supported in the current version. |
| DESTINATION_OWNER | varchar(261) | NO | This column is not supported in the current version. |
| DESTINATION | varchar(261) | YES | This column is not supported in the current version. |
| CREDENTIAL_OWNER | varchar(128) | NO | This column is not supported in the current version. |
| CREDENTIAL_NAME | varchar(128) | YES | This column is not supported in the current version. |
| THIS_DATE | datetime(6) | YES | The job start time (calculated from the RPC initiation). |
| THIS_EXEC_DATE | datetime(6) | YES | The job start time (calculated from the session creation on the execution end). |
| THIS_EXEC_ADDR | varchar(128) | YES | The IP address of the server where the job is executed. |
| THIS_EXEC_TRACE_ID | varchar(128) | YES | The trace ID of the job execution. |
Sample query
Execute the following command to query all running jobs in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_SCHEDULER_RUNNING_JOBS\G
The query result is as follows:
TENANT_ID:1
OWNER:root@%
JOB_NAME:201001.e_eventbody_privilege_hrh
JOB_SUBNAME:NULL
JOB_STYLE:REGULAR
DETACHED:NULL
SESSION_ID:
3221532050
SLAVE_PROCESS_ID:
NULL
SLAVE_OS_PROCESS_ID:
NULL
RUNNING_INSTANCE:NULL
RESOURCE_CONSUMER_GROUP:NULL
ELAPSED_TIME:2
CPU_USED:
NULL
DESTINATION_OWNER:NULL
DESTINATION:
NULL
CREDENTIAL_OWNER:
NULL
CREDENTIAL_NAME:NULL
THIS_DATE:2026-02-09 14:51:40.023010
THIS_EXEC_DATE:2026-02-09 14:51:40.046197
THIS_EXEC_ADDR:
:6.12.233.95:10202
THIS_EXEC_TRACE_ID:Y27DA060CE95F-00064A5E79750AB6-0-0
**************************2。rOW***************************
TENANT_ID:1002
OWNER:SYS
JOB_NAME:test_job
JOB_SUBNAME:
NULL
JOB_STYLE:REGULAR
DETACHED:
NULL
SESSION_ID:
3221532045
SLAVE_PROCESS_ID:
NULL
SLAVE_OS_PROCESS_ID:
NULL
RUNNING_INSTANCE:
NULL
RESOURCE_CONSUMER_GROUP:NULL
ELAPSED_TIME:2
CPU_USED:
NULL
DESTINATION_OWNER:NULL
DESTINATION:NULL
CREDENTIAL_OWNER:NULL
CREDENTIAL_NAME:
NULL
THIS_DATE:
2026-02-0914:51:40.017257
THIS_EXEC_DATE:
2026-02-0914:51:40.047754
THIS_EXEC_ADDR:6.12.233.95:10202
THIS_EXEC_TRACE_ID:Y27DA060CE95F-00064A5E81A50AB5-0-0
***************************3.**W***************************
TENANT_ID:1004
OWNER:root@%
J0B_NAME:201001.e_eventbody_privilege_hrh
JOB_SUBNAME:
NULL
JOB_STYLE:REGULAR
DETACHED:NULL
SESSI0N_ID:3221532149
SLAVE_PROCESS_ID:
NULL
SLAVE_OS_PROCESS_ID:
NULL
RUNNING_INSTANCE:
NULL
RESOURCE_CONSUMER_GROUP:NULL
ELAPSED_TIME:
1
CPU_USED:NULL
DESTINATION_OWNER:
NULL
DESTINATION:
NULL
CREDENTIAL_OWNER:
NULL
CREDENTIAL_NAME:NULL
THIS_DATE:
:2026-02-0914:51:41.032907
THIS_EXEC_DATE:2026-02-09 14:51:41.059554
THIS_EXEC_ADDR:6.12.233.95:10202
THIS_EXEC_TRACE_ID:Y27DA060CE95F-00064A5E88950A40-0-0
3rowsinset(0.03sec)
