Note
This view is introduced since OceanBase Database V4.0.0.
Purpose
The oceanbase.DBA_SCHEDULER_WINDOWS view displays information about all scheduler windows in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| OWNER | varchar(128) | NO | The owner of the scheduler window. |
| WINDOW_NAME | varchar(128) | NO | The name of the scheduler window. |
| RESOURCE_PLAN | varchar(128) | NO | The resource plan associated with the window. At present, this column is not used. |
| SCHEDULE_OWNER | varchar(4000) | NO | The owner of the schedule for the window. At present, this column is not used. |
| SCHEDULE_NAME | varchar(4000) | NO | The name of the schedule for the window. At present, this column is not used. |
| SCHEDULE_TYPE | varchar(8) | NO | The type of the schedule. Valid values:
At present, this column is not used. |
| START_DATE | datetime(6) | YES | The start date of the window (for an inline plan). |
| REPEAT_INTERVAL | varchar(4000) | YES | The repeat interval of the window. |
| END_DATE | datetime(6) | YES | The end time of the window. |
| DURATION | bigint(20) | YES | The duration of the window. |
| WINDOW_PRIORITY | varchar(4) | NO | The priority of the job in relative to other windows. Valid values:
At present, this column is not used. |
| NEXT_RUN_DATE | datetime(6) | NO | The time when the window starts the next time. |
| LAST_START_DATE | datetime(6) | YES | The time when the window started the last time. |
| ENABLED | varchar(5) | YES | Indicates whether the window is enabled (TRUE) or disabled (FALSE). |
| ACTIVE | varchar(5) | NO | Indicates whether the window is activated (TRUE) or deactivated (FALSE). At present, this column is not used. |
| MANUAL_OPEN_TIME | datetime(6) | NO | The time when the window was manually activated. If the window was not manually activated, the value is NULL. At present, this column is not used. |
| MANUAL_DURATION | bigint(0) | NO | The duration for which the window has been manually activated. If the window was not manually activated, the value is NULL. At present, this column is not used. |
| COMMENTS | varchar(4000) | YES | The description of the window. |
Sample query
Query all scheduling windows in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_SCHEDULER_WINDOWS;
The query result is as follows:
+--------+------------------+---------------+----------------+---------------+---------------+----------------------------+-------------------------+----------------------------+----------+-----------------+----------------------------+----------------------------+---------+--------+------------------+-----------------+---------------------------------+
| OWNER | WINDOW_NAME | RESOURCE_PLAN | SCHEDULE_OWNER | SCHEDULE_NAME | SCHEDULE_TYPE | START_DATE | REPEAT_INTERVAL | END_DATE | DURATION | WINDOW_PRIORITY | NEXT_RUN_DATE | LAST_START_DATE | ENABLED | ACTIVE | MANUAL_OPEN_TIME | MANUAL_DURATION | COMMENTS |
+--------+------------------+---------------+----------------+---------------+---------------+----------------------------+-------------------------+----------------------------+----------+-----------------+----------------------------+----------------------------+---------+--------+------------------+-----------------+---------------------------------+
| root@% | FRIDAY_WINDOW | NULL | NULL | NULL | NULL | 2025-03-21 22:00:00.000000 | FREQ=WEEKLY; INTERVAL=1 | 4000-01-01 00:00:00.000000 | 14400 | NULL | 2025-03-21 22:00:00.000000 | NULL | 1 | NULL | NULL | NULL | used to auto gather table stats |
| root@% | MONDAY_WINDOW | NULL | NULL | NULL | NULL | 2025-03-24 22:00:00.000000 | FREQ=WEEKLY; INTERVAL=1 | 4000-01-01 00:00:00.000000 | 14400 | NULL | 2025-03-24 22:00:00.000000 | NULL | 1 | NULL | NULL | NULL | used to auto gather table stats |
| root@% | SATURDAY_WINDOW | NULL | NULL | NULL | NULL | 2025-03-22 22:00:00.000000 | FREQ=WEEKLY; INTERVAL=1 | 4000-01-01 00:00:00.000000 | 14400 | NULL | 2025-03-22 22:00:00.000000 | NULL | 1 | NULL | NULL | NULL | used to auto gather table stats |
| root@% | SUNDAY_WINDOW | NULL | NULL | NULL | NULL | 2025-03-23 22:00:00.000000 | FREQ=WEEKLY; INTERVAL=1 | 4000-01-01 00:00:00.000000 | 14400 | NULL | 2025-03-23 22:00:00.000000 | NULL | 1 | NULL | NULL | NULL | used to auto gather table stats |
| root@% | THURSDAY_WINDOW | NULL | NULL | NULL | NULL | 2025-03-20 22:00:00.000000 | FREQ=WEEKLY; INTERVAL=1 | 4000-01-01 00:00:00.000000 | 14400 | NULL | 2025-03-27 22:00:00.000000 | 2025-03-20 22:00:00.002084 | 1 | NULL | NULL | NULL | used to auto gather table stats |
| root@% | TUESDAY_WINDOW | NULL | NULL | NULL | NULL | 2025-03-25 22:00:00.000000 | FREQ=WEEKLY; INTERVAL=1 | 4000-01-01 00:00:00.000000 | 14400 | NULL | 2025-03-25 22:00:00.000000 | NULL | 1 | NULL | NULL | NULL | used to auto gather table stats |
| root@% | WEDNESDAY_WINDOW | NULL | NULL | NULL | NULL | 2025-03-19 22:00:00.000000 | FREQ=WEEKLY; INTERVAL=1 | 4000-01-01 00:00:00.000000 | 14400 | NULL | 2025-03-26 22:00:00.000000 | 2025-03-19 22:00:00.002020 | 1 | NULL | NULL | NULL | used to auto gather table stats |
+--------+------------------+---------------+----------------+---------------+---------------+----------------------------+-------------------------+----------------------------+----------+-----------------+----------------------------+----------------------------+---------+--------+------------------+-----------------+---------------------------------+
7 rows in set