Note
This view is available starting with V4.0.0.
Purpose
This 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. This column is not currently used. |
| SCHEDULE_OWNER | varchar(4000) | NO | The owner of the window's schedule. This column is not currently used. |
| SCHEDULE_NAME | varchar(4000) | NO | The name of the window's schedule. This column is not currently used. |
| SCHEDULE_TYPE | varchar(8) | NO | The type of the window's schedule:
This column is not currently used. |
| START_DATE | datetime(6) | YES | The start date of the window (for inline schedules) |
| REPEAT_INTERVAL | varchar(4000) | YES | The repeat interval for the window |
| END_DATE | datetime(6) | YES | The end date of the window |
| DURATION | bigint(20) | YES | The duration of the window |
| WINDOW_PRIORITY | varchar(4) | NO | The priority of the window relative to other windows:
This column is not currently used. |
| NEXT_RUN_DATE | datetime(6) | NO | The next start date of the window |
| LAST_START_DATE | datetime(6) | YES | The last start date of the window |
| ENABLED | varchar(5) | YES | Indicates whether the window is enabled (TRUE) or disabled (FALSE) |
| ACTIVE | varchar(5) | NO | Indicates whether the window is open (TRUE) or closed (FALSE). This column is not currently used. |
| MANUAL_OPEN_TIME | datetime(6) | NO | The time when the window was manually opened, or NULL if it was not manually opened. This column is not currently used. |
| MANUAL_DURATION | bigint(0) | NO | The duration of the manually opened window, or NULL if it was not manually opened. This column is not currently used. |
| COMMENTS | varchar(4000) | YES | The description of the window |
Sample query
Query information about all scheduler 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
