Note
This view is available starting with V4.0.0.
Purpose
This view displays the status of pieces in backup sets of all tenants.
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 path. |
| ROUND_ID | bigint(20) | NO | The ID of the round of full clog backup data. |
| PIECE_ID | bigint(20) | NO | The ID of the backup log piece. |
| INCARNATION | bigint(20) | NO | The number of incarnations after Flashback Database. |
| DEST_NO | bigint(20) | NO | The ID of the log_archive_dest_n parameter. For example, the dest_no of log_archive_dest is 0, and the dest_no of log_archive_dest_1 is 1. |
| CREATE_TIMESTAMP | bigint(20) | NO | The time when the piece was created. |
| STATUS | varchar(64) | NO | The status of the piece. Valid values: ACTIVE: The piece is active. FREEZING: The piece is being frozen. FROZEN: The piece is frozen. The status of a frozen piece will no longer be modified. |
| START_SCN | bigint(20) unsigned | NO | The start SCN of the piece. |
| START_SCN_DISPLAY | varchar(26) | NO | The start SCN of the piece, converted into a time unit. |
| CHECKPOINT_SCN | bigint(20) unsigned | NO | The current archive SCN. |
| CHECKPOINT_SCN_DISPLAY | varchar(26) | NO | The current archive SCN, converted into a time unit. |
| MAX_SCN | bigint(20) unsigned | NO | The maximum archive SCN. |
| END_SCN | bigint(20) unsigned | NO | The theoretical end SCN of the piece. |
| COMPATIBLE | bigint(20) | NO | The compatible version number of log archiving. |
| UNIT_SIZE | bigint(20) | NO | The size of a single log block for compression or encryption. This column is not supported. |
| COMPRESSION | varchar(128) | NO | The compression algorithm. Valid values:
|
| INPUT_BYTES | bigint(20) | NO | The size of the original data. |
| INPUT_BYTES_DISPLAY | varchar(27) | NO | The size of the original data, converted into a unit. |
| OUTPUT_BYTES | bigint(20) | NO | The size of the effective data after encryption and compression. |
| OUTPUT_BYTES_DISPLAY | varchar(27) | NO | The size of the effective data after encryption and compression, converted into a unit. |
| COMPRESSION_RATIO | decimal(23,2) | NO | The compression ratio. |
| FILE_STATUS | varchar(64) | NO | The file status of the backup log piece. Valid values: |
| PATH | varchar(2048) | NO | The archive path. |
Sample query
Query the status of pieces in the backup set of a tenant with the ID 1002 in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_ARCHIVELOG_PIECE_FILES WHERE TENANT_ID = 1002\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
DEST_ID: 1001
ROUND_ID: 1
PIECE_ID: 1
INCARNATION: 1
DEST_NO: 0
STATUS: ACTIVE
START_SCN: 1736228322307513000
START_SCN_DISPLAY: 2025-01-07 13:38:42.307513
CHECKPOINT_SCN: 1736233365380528000
CHECKPOINT_SCN_DISPLAY: 2025-01-07 15:02:45.380528
MAX_SCN: 1736233365682585000
END_SCN: 1736314722307513000
END_SCN_DISPLAY: 2025-01-08 13:38:42.307513
COMPATIBLE: 1
UNIT_SIZE: 1
COMPRESSION: none
INPUT_BYTES: 84860528
INPUT_BYTES_DISPLAY: 80.93MB
OUTPUT_BYTES: 84860528
OUTPUT_BYTES_DISPLAY: 80.93MB
COMPRESSION_RATIO: 1.00
FILE_STATUS: AVAILABLE
PATH: file:///home/admin/oceanbase/arglog
1 row in set