Note
This view is available starting with V4.0.0.
Purpose
This view displays the log archiving status on each path.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| DEST_ID | bigint(20) | NO | The path identifier. |
| ROUND_ID | bigint(20) | NO | The identifier of the backup round. |
| INCARNATION | bigint(20) | NO | The number of incarnations after the Flashback Database operation. |
| DEST_NO | bigint(20) | NO | The identifier of log_archive_dest_n. |
| STATUS | varchar(64) | NO | The archiving status. Valid values:
|
| START_SCN | bigint(20) unsigned | NO | The start backup SCN. |
| START_SCN_DISPLAY | datetime(6) | NO | The start backup SCN converted into a time unit. |
| CHECKPOINT_SCN | bigint(20) unsigned | NO | The current archiving SCN. |
| CHECKPOINT_SCN_DISPLAY | datetime(6) | NO | The current archiving SCN converted into a time unit. |
| COMPATIBLE | bigint(20) | NO | The compatibility version. |
| BASE_PIECE_ID | bigint(20) | NO | The first PIECE ID of the current backup round. |
| USED_PIECE_ID | bigint(20) | NO | The PIECE ID of the current backup round. |
| PIECE_SWITCH_INTERVAL | bigint(20) | NO | The piece switching cycle. |
| UNIT_SIZE | bigint(20) | NO | The size of a single log block that is compressed or encrypted in one log archiving operation. This field is not supported. |
| COMPRESSION | varchar(128) | NO | The compression algorithm. Valid values:
|
| INPUT_BYTES | bigint(21) | NO | The amount of data read. This field is not supported in OceanBase Database. |
| INPUT_BYTES_DISPLAY | varchar(28) | NO | The amount of data read, which is converted into MB, GB, TB, or PB. This field is not supported in OceanBase Database. |
| OUTPUT_BYTES | bigint(21) | NO | The amount of data output. This field is not supported in OceanBase Database. |
| OUTPUT_BYTES_DISPLAY | varchar(28) | NO | The amount of data output, which is converted into MB, GB, TB, or PB. This field is not supported in OceanBase Database. |
| COMPRESSION_RATIO | decimal(24,2) | NO | The compression ratio. This field is not supported in OceanBase Database. |
| 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. |
| 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. |
| COMMENT | varchar(262144) | NO | The error prompt. |
| PATH | varchar(2048) | NO | The archiving path. |
Sample query
Query the log archiving status of the tenant with ID 1002 in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_ARCHIVELOG 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: 1736232524851954000
CHECKPOINT_SCN_DISPLAY: 2025-01-07 14:48:44.851954
COMPATIBLE: 1
BASE_PIECE_ID: 1
USED_PIECE_ID: 1
PIECE_SWITCH_INTERVAL: 86400000000
UNIT_SIZE: 1
COMPRESSION: none
INPUT_BYTES: 82476454
INPUT_BYTES_DISPLAY: 78.66MB
OUTPUT_BYTES: 82476454
OUTPUT_BYTES_DISPLAY: 78.66MB
COMPRESSION_RATIO: 1.00
DELETED_INPUT_BYTES: 0
DELETED_INPUT_BYTES_DISPLAY: 0.00MB
DELETED_OUTPUT_BYTES: 0
DELETED_OUTPUT_BYTES_DISPLAY: 0.00MB
COMMENT:
PATH: file:///home/admin/oceanbase/arglog
1 row in set