Note
This view is available starting with V4.1.0.
Purpose
This view displays the status of archive destinations for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| DEST_ID | bigint(20) | NO | The archive destination ID. |
| PATH | varchar(4096) | NO | The archive path. |
| STATUS | varchar(64) | NO | The archive status. |
| CHECKPOINT_SCN | bigint(20) unsigned | NO | The continuous point of archived logs. |
| SYNCHRONIZED | varchar(32) | NO | Indicates whether the archive is synchronized with the tenant logs:
|
| COMMENT | varchar(262144) | NO | The error message. |
Sample query
Query the status of archive destinations for the current 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