Note
This view is available starting with V4.0.0.
Purpose
This view displays the log archiving status on each path of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| DEST_ID | bigint(20) | NO | The path identifier. |
| ROUND_ID | bigint(20) | NO | The backup round number. |
| INCARNATION | bigint(20) | NO | The number of incarnations after Flashback Database. |
| DEST_NO | bigint(20) | NO | The log_archive_dest_n identifier. |
| STATUS | varchar(64) | NO | The archiving status. Valid values:
|
| START_SCN | bigint(20) unsigned | NO | The starting backup SCN. |
| START_SCN_DISPLAY | datetime(6) | NO | The display of START_SCN after it is converted into a time unit. |
| CHECKPOINT_SCN | bigint(20) unsigned | NO | The current archiving SCN. |
| CHECKPOINT_SCN_DISPLAY | datetime(6) | NO | The display of CHECKPOINT_SCN after it is 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 round. |
| USED_PIECE_ID | bigint(20) | NO | The PIECE ID used in the current 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 in OceanBase Database. |
| 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 display of INPUT_BYTES after the unit is converted. Valid values: MB, GB, TB, and 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 display of OUTPUT_BYTES after the unit is converted. Valid values: MB, GB, TB, and 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 display of DELETED_INPUT_BYTES after the unit is converted. 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 display of DELETED_OUTPUT_BYTES after the unit is converted. Valid values: MB, GB, TB, and PB. |
| COMMENT | varchar(262144) | NO | The error message. |
| PATH | varchar(2048) | NO | The archiving path. |
Sample query
Query the log archiving status of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_ARCHIVELOG\G
The query result is as follows:
*************************** 1. row ***************************
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: 1736232885149619001
CHECKPOINT_SCN_DISPLAY: 2025-01-07 14:54:45.149619
COMPATIBLE: 1
BASE_PIECE_ID: 1
USED_PIECE_ID: 1
PIECE_SWITCH_INTERVAL: 86400000000
UNIT_SIZE: 1
COMPRESSION: none
INPUT_BYTES: 83551468
INPUT_BYTES_DISPLAY: 79.68MB
OUTPUT_BYTES: 83551468
OUTPUT_BYTES_DISPLAY: 79.68MB
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