Note
This view is introduced since OceanBase Database V4.1.0.
Purpose
The V$OB_ARCHIVE_DEST_STATUS view displays the status of each log archiving destination at the tenant level.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| DEST_ID | bigint(20) | NO | The ID of the log archiving destination. |
| PATH | varchar(4096) | NO | The archive path. |
| STATUS | varchar(64) | NO | The archiving status. |
| CHECKPOINT_SCN | bigint(20) unsigned | NO | The current archive checkpoint. |
| SYNCHRONIZED | varchar(32) | NO | Indicates whether the log archive is synchronized with tenant logs. Valid values:
|
| COMMENT | varchar(262144) | NO | The error prompt. |
Sample query
Query the status of all archive destinations in a user tenant from the system tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_ARCHIVE_DEST_STATUS;
The query result is as follows:
+-----------+---------+-------------------------------------+--------+---------------------+--------------+---------+
| TENANT_ID | DEST_ID | PATH | STATUS | CHECKPOINT_SCN | SYNCHRONIZED | COMMENT |
+-----------+---------+-------------------------------------+--------+---------------------+--------------+---------+
| 1002 | 1001 | file:///home/admin/oceanbase/arglog | DOING | 1736321349494697000 | NO | |
+-----------+---------+-------------------------------------+--------+---------------------+--------------+---------+
1 row in set