Note
This view is available starting with V4.0.0.
Purpose
This view displays the status of all tenants' historical and current log archives.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| DEST_ID | bigint(20) | NO | The path ID. The system assigns a unique ID to each set path. |
| ROUND_ID | bigint(20) | NO | The ID of the round of complete clog backup data stream. |
| INCARNATION | bigint(20) | NO | The number of incarnations after Flashback Database. |
| DEST_NO | bigint(20) | NO | The number of log_archive_dest_n. For example, the dest_no of log_archive_dest is 0, and the dest_no of log_archive_dest_1 is 1. |
| STATUS | varchar(64) | NO | The archive status. Valid values:
|
| START_SCN | bigint(20) unsigned | NO | The start backup point. |
| START_SCN_DISPLAY | datetime(6) | NO | The start backup point converted into a time unit. |
| CHECKPOINT_SCN | bigint(20) unsigned | NO | The current archive point. |
| CHECKPOINT_SCN_DISPLAY | datetime(6) | NO | The current archive point converted into a time unit. |
| COMPATIBLE | bigint(20) | NO | The compatibility version. |
| BASE_PIECE_ID | bigint(20) | NO | The ID of the first PIECE in the current round. |
| USED_PIECE_ID | bigint(20) | NO | The ID of the PIECE used in the current round. |
| PIECE_SWITCH_INTERVAL | bigint(20) | NO | The piece switch cycle. |
| UNIT_SIZE | bigint(20) | NO | The size of a single log block for compression or encryption in the current round. This field is not supported. |
| COMPRESSION | varchar(128) | NO | The compression algorithm. Valid values:
|
| INPUT_BYTES | bigint(20) | NO | The amount of data read. |
| INPUT_BYTES_DISPLAY | varchar(27) | NO | The amount of data read, with a unit. For example: 798.01 M or 5.25 G. |
| OUTPUT_BYTES | bigint(20) | NO | The amount of data output. |
| OUTPUT_BYTES_DISPLAY | varchar(27) | NO | The amount of data output, with a unit. For example: 798.01 M or 5.25 G. |
| COMPRESSION_RATIO | decimal(23,2) | NO | The compression rate. |
| DELETED_INPUT_BYTES | bigint(20) | NO | The amount of original data deleted. |
| DELETED_INPUT_BYTES_DISPLAY | varchar(27) | NO | The amount of original data deleted, with a unit. Valid values: MB, GB, TB, and PB. |
| DELETED_OUTPUT_BYTES | bigint(20) | NO | The amount of effective data deleted. |
| DELETED_OUTPUT_BYTES_DISPLAY | varchar(27) | NO | The amount of effective data deleted, with a unit. Valid values: MB, GB, TB, and PB. |
| PATH | varchar(2048) | NO | The archive path. |
| COMMENT | varchar(262144) | NO | The error message. |
Sample query
Query the status of all log archives for tenant 1002 in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_ARCHIVELOG_SUMMARY WHERE TENANT_ID = 1002\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
DEST_ID: 1001
ROUND_ID: 1
INCARNATION: 1
DEST_NO: 0
STATUS: DOING
START_SCN: 1736228322307513000
START_SCN_DISPLAY: 2025-01-07 13:38:42.307513
CHECKPOINT_SCN: 1736233485415914000
CHECKPOINT_SCN_DISPLAY: 2025-01-07 15:04:45.415914
COMPATIBLE: 1
BASE_PIECE_ID: 1
USED_PIECE_ID: 1
PIECE_SWITCH_INTERVAL: 86400000000
UNIT_SIZE: 1
COMPRESSION: none
INPUT_BYTES: 85183742
INPUT_BYTES_DISPLAY: 81.24MB
OUTPUT_BYTES: 85183742
OUTPUT_BYTES_DISPLAY: 81.24MB
COMPRESSION_RATIO: 1.00
DELETED_INPUT_BYTES: 0
DELETED_INPUT_BYTES_DISPLAY: 0.00MB
DELETED_OUTPUT_BYTES: 0
DELETED_OUTPUT_BYTES_DISPLAY: 0.00MB
PATH: file:///home/admin/oceanbase/arglog
COMMENT:
1 row in set