Note
This view is available starting with V4.2.0.
Purpose
This view displays the history of load balancing tasks executed in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| JOB_ID | NUMBER(38) | NO | The ID of the load balancing task. |
| CREATE_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the task was created. |
| FINISH_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the task was completed, including the time when the task was canceled. |
| BALANCE_STRATEGY | VARCHAR2(64) | NO | The name of the load balancing strategy.
|
| JOB_TYPE | VARCHAR2(64) | NO | The type of the task.
|
| TARGET_UNIT_NUM | NUMBER(38) | NO | The number of units in each zone that is changed. |
| TARGET_PRIMARY_ZONE_NUM | NUMBER(38) | NO | The number of primary zones that is changed. |
| STATUS | VARCHAR2(64) | NO | The status of the task.
|
| COMMENT | CLOB | YES | The comment. |
| MAX_END_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | YES | The maximum end time of the load balancing task.
NoteFor V4.3.x, this view is available starting with V4.3.4. For V4.2.x, this column is available starting with V4.2.4. |
Sample query
Query the history of all load balancing tasks executed in the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_BALANCE_JOB_HISTORY;
The query result is as follows:
+--------+------------------------------+------------------------------+----------------------+------------+-----------------+-------------------------+-----------+---------+--------------+
| JOB_ID | CREATE_TIME | FINISH_TIME | BALANCE_STRATEGY | JOB_TYPE | TARGET_UNIT_NUM | TARGET_PRIMARY_ZONE_NUM | STATUS | COMMENT | MAX_END_TIME |
+--------+------------------------------+------------------------------+----------------------+------------+-----------------+-------------------------+-----------+---------+--------------+
| 321371 | 09-MAY-25 02.45.15.599930 PM | 09-MAY-25 02.45.25.614648 PM | LS balance by expand | LS_BALANCE | 1 | 2 | COMPLETED | NULL | NULL |
+--------+------------------------------+------------------------------+----------------------+------------+-----------------+-------------------------+-----------+---------+--------------+
1 row in set
References
Query the log stream-based load balancing tasks (jobs) that are being executed in the current tenant: DBA_OB_BALANCE_JOBS
Query the log stream-based load balancing tasks (tasks) in the current tenant:
Query the tablet-based load balancing tasks (tasks) in the current tenant:
Query the transfer partition tasks (tasks) in the current tenant:
For more information about data load balancing, see Data load balancing.