DBA_OB_BALANCE_JOBS

2025-12-04 07:10:03  Updated

Note

This view is available starting with V4.2.0.

Purpose

The DBA_OB_BALANCE_JOBS view displays the load balancing jobs currently running in the current tenant. At any given time, a tenant can have only one load balancing job running. Each load balancing job generates multiple load balancing tasks to perform the specific load balancing operations.

Columns

Column Type Nullable Description
JOB_ID NUMBER(38) NO The ID of the load balancing job.
CREATE_TIME TIMESTAMP(6) WITH LOCAL TIME ZONE NO The time when the job was created.
MODIFY_TIME TIMESTAMP(6) WITH LOCAL TIME ZONE NO The time when the information was last updated.
BALANCE_STRATEGY VARCHAR2(64) NO The name of the balancing strategy.
  • LS balance by migrate: migration-based balancing.
  • LS balance by alter: log stream attribute modification-based balancing.
  • LS balance by expand: expansion-based balancing.
  • LS balance by shrink: reduction-based balancing.
  • partition balance: partition-based balancing.
JOB_TYPE VARCHAR2(64) NO The type of the task.
  • LS_BALANCE: log stream balancing.
  • PARTITION_BALANCE: partition balancing.
TARGET_UNIT_NUM NUMBER(38) NO The number of units to be changed in each zone.
TARGET_PRIMARY_ZONE_NUM NUMBER(38) NO The number of primary zones to be changed.
STATUS VARCHAR2(64) NO The status of the task.
  • DOING: the job is being executed.
  • COMPLETED: the task was executed successfully.
  • CANCELING: the task is being canceled.
  • CANCELED: the task was canceled.
  • SUSPEND: the task is suspended.
COMMENT longtext YES The comment.
COMMENT CLOB YES The comment.
MAX_END_TIME TIMESTAMP(6) WITH LOCAL TIME ZONE YES The maximum end time of the load balancing task.

Note

This column is available starting with V4.2.4.

Sample query

Query the load balancing jobs currently running in the current tenant.

obclient [SYS]> SELECT * FROM SYS.DBA_OB_BALANCE_JOBS;

The query result is as follows:

+--------+----------------------------+----------------------------+---------------------------+--------------------+-----------------+-------------------------+--------+---------+--------------+
| JOB_ID | CREATE_TIME                | MODIFY_TIME                | BALANCE_STRATEGY          | JOB_TYPE           | TARGET_UNIT_NUM | TARGET_PRIMARY_ZONE_NUM | STATUS | COMMENT | MAX_END_TIME |
+--------+----------------------------+----------------------------+---------------------------+--------------------+-----------------+-------------------------+--------+---------+--------------+
|  68710 | 2024-12-31 18:24:16.758260 | 2024-12-31 18:24:16.758260 | manual transfer partition | TRANSFER_PARTITION |               3 |                       1 | DOING  | NULL    | NULL         |
+--------+----------------------------+----------------------------+---------------------------+--------------------+-----------------+-------------------------+--------+---------+--------------+
1 row in set

References

Contact Us