Note
This view is available starting with V4.0.0.
Overview
Displays information about all scheduler jobs in the tenant.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| OWNER | varchar(128) | NO | Owner of the scheduler job |
| JOB_NAME | varchar(128) | NO | Name of the scheduler job |
| JOB_SUBNAME | varchar(128) | NO | Subname of the scheduler job |
| JOB_STYLE | varchar(17) | YES | Job style. Valid values:
|
| JOB_CREATOR | varchar(128) | NO | Scheduler Job Creator |
| CLIENT_ID | varchar(65) | NO | Client identifier of the user who created the job |
| GLOBAL_UID | varchar(33) | NO | The global user identifier of the job creator. |
| PROGRAM_OWNER | text | NO | Owner of the job-related program |
| PROGRAM_NAME | text | YES | Program name related to the job |
| JOB_TYPE | varchar(16) | YES | Job operation type:
|
| JOB_ACTION | text | YES | Inline Job Operations |
| NUMBER_OF_ARGUMENTS | bigint(20) | YES | Number of Inline Job Parameters |
| SCHEDULE_OWNER | text | NO | Owner of the plan used by the job |
| SCHEDULE_NAME | text | NO | Plan name used by the job |
| SCHEDULE_TYPE | varchar(12) | NO | Plan type used by the job:
|
| START_DATE | datetime(6) | YES | Original Planned Start Date of the Job |
| REPEAT_INTERVAL | text | YES | Inline plan PL/SQL expression or calendar string |
| EVENT_QUEUE_OWNER | varchar(128) | NO | The owner of the source queue that triggers the event. |
| EVENT_QUEUE_NAME | varchar(128) | NO | The name of the source queue that triggers the event. |
| EVENT_QUEUE_AGENT | text | NO | The name of the AQ proxy used by the user on the event source queue. |
| EVENT_CONDITION | text | NO | Subscription rules for events on the source queue |
| EVENT_RULE | varchar(261) | NO | The name of the rule used by the coordinator to trigger the event-based job. |
| FILE_WATCHER_OWNER | varchar(261) | NO | Owner of the file observer on which this job is based |
| FILE_WATCHER_NAME | varchar(261) | NO | The name of the file observer on which this job is based. |
| END_DATE | datetime(6) | YES | Date when the job will stop running |
| JOB_CLASS | varchar(128) | YES | The name of the job category associated with the job. |
| ENABLED | varchar(5) | YES | Specifies whether to enable the job. Valid values:
|
| AUTO_DROP | varchar(5) | YES | Specifies whether the job is deleted after it is completed. Valid values:
|
| RESTART_ON_RECOVERY | varchar(5) | NO | Whether to restart the job when the cluster restarts. Valid values:
|
| RESTART_ON_FAILURE | varchar(5) | NO | Indicates whether to restart the job when it fails.
|
| STATE | varchar(15) | YES | Current status: |
| JOB_PRIORITY | bigint(0) | NO | Priority of this task compared to other similar tasks |
| RUN_COUNT | bigint(20) | YES | Number of Job Runs |
| MAX_RUNS | bigint(0) | NO | Maximum Number of Job Plan Runs |
| FAILURE_COUNT | bigint(20) | YES | Number of Job Run Failures |
| MAX_FAILURES | bigint(0) | NO | Number of Job Failures Allowed Before Being Marked as Damaged |
| RETRY_COUNT | bigint(20) | YES | Number of Job Retries |
| LAST_START_DATE | datetime(6) | YES | Last Start Date of Job |
| LAST_RUN_DURATION | bigint(20) | YES | Time spent on completing the job during the last run |
| NEXT_RUN_DATE | datetime(6) | NO | Next scheduled run date |
| SCHEDULE_LIMIT | bigint(0) | NO | Time When Jobs Not Yet Running Will Be Rescheduled |
| MAX_RUN_DURATION | bigint(20) | YES | Maximum Time Allowed for Job Execution |
| LOGGING_LEVEL | varchar(11) | NO | Job-related log records:
|
| STORE_OUTPUT | varchar(5) | NO | Whether the output of job execution is stored in the database:
|
| STOP_ON_WINDOW_CLOSE | varchar(5) | NO | Whether to stop the job when its scheduling window closes:
|
| INSTANCE_STICKINESS | varchar(5) | NO | Whether the job has instance stickiness. Valid values:
|
| RAISE_EVENTS | text | NO | The following table describes the job events.
|
| SYSTEM | varchar(5) | NO | Specifies whether the job is a system job. Valid values:
|
| JOB_WEIGHT | bigint(0) | NO | The weight of a job, which specifies its scheduling priority. |
| NLS_ENV | text | YES | The locale setting of the job. |
| SOURCE | varchar(128) | NO | The source code or script of the job. |
| NUMBER_OF_DESTINATIONS | bigint(0) | NO | The target number of jobs. |
| DESTINATION_OWNER | varchar(261) | NO | Owner of the job target. |
| DESTINATION | varchar(261) | NO | The target of the job, that is, the object or location to be operated on. |
| CREDENTIAL_OWNER | varchar(128) | NO | Owner of the credential. |
| CREDENTIAL_NAME | varchar(128) | NO | The name of the credential. |
| INSTANCE_ID | bigint(21) | YES | Instance on which the user requests the job to run |
| DEFERRED_DROP | varchar(5) | NO | Whether the job is delayed for deletion. |
| ALLOW_RUNS_IN_RESTRICTED_MODE | varchar(5) | NO | Whether the job is allowed to run in restricted mode. |
| COMMENTS | text | YES | The comment or description of the job. |
| FLAGS | bigint(20) | NO | Flags of the job. |
| RESTARTABLE | varchar(5) | NO | Whether the job can be restarted. |
| CONNECT_CREDENTIAL_OWNER | varchar(128) | NO | Owner of the connection credentials. |
| CONNECT_CREDENTIAL_NAME | varchar(128) | NO | The name of the connection credential. |
Sample query
View the running status of all scheduler jobs for this tenant.
obclient [oceanbase]> SELECT JOB_NAME, ENABLED, NEXT_RUN_DATE, STATE, LAST_START_DATE FROM oceanbase.DBA_SCHEDULER_JOBS;
The query result is as follows:
+-------------------------------------+---------+----------------------------+-----------+----------------------------+
| JOB_NAME | ENABLED | NEXT_RUN_DATE | STATE | LAST_START_DATE |
+-------------------------------------+---------+----------------------------+-----------+----------------------------+
| ASYNC_GATHER_STATS_JOB_PROC | 1 | 2025-03-21 16:08:11.812271 | SCHEDULED | 2025-03-21 15:53:11.813913 |
| FRIDAY_WINDOW | 1 | 2025-03-21 22:00:00.000000 | NULL | NULL |
| MONDAY_WINDOW | 1 | 2025-03-24 22:00:00.000000 | NULL | NULL |
| OPT_STATS_HISTORY_MANAGER | 1 | 2025-03-22 13:53:11.812220 | SCHEDULED | 2025-03-21 13:53:11.813703 |
| SATURDAY_WINDOW | 1 | 2025-03-22 22:00:00.000000 | NULL | NULL |
| SCHEDULED_TRIGGER_DUMP_DATA_DICT | 1 | 2025-03-21 17:54:00.000000 | SCHEDULED | 2025-03-21 15:54:00.001537 |
| SCHEDULED_TRIGGER_PARTITION_BALANCE | 1 | 2025-03-22 00:00:00.000000 | SCHEDULED | 2025-03-21 00:00:00.001456 |
| SPM_STATS_MANAGER | 1 | 2025-03-22 01:00:00.000000 | SCHEDULED | 2025-03-21 01:00:00.002017 |
| SUNDAY_WINDOW | 1 | 2025-03-23 22:00:00.000000 | NULL | NULL |
| THURSDAY_WINDOW | 1 | 2025-03-27 22:00:00.000000 | SCHEDULED | 2025-03-20 22:00:00.002084 |
| TUESDAY_WINDOW | 1 | 2025-03-25 22:00:00.000000 | NULL | NULL |
| WEDNESDAY_WINDOW | 1 | 2025-03-26 22:00:00.000000 | SCHEDULED | 2025-03-19 22:00:00.002020 |
+-------------------------------------+---------+----------------------------+-----------+----------------------------+
12 rows in set
