Note
This view is available starting with V4.0.0.
Purpose
This view displays the status of pieces in the backup set of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| DEST_ID | bigint(20) | NO | The path ID. The system assigns a unique ID to each configured path. |
| ROUND_ID | bigint(20) | NO | The ID of the round of complete 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 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. |
| CREATE_TIMESTAMP | bigint(20) | NO | The creation time of the piece. |
| STATUS | varchar(64) | NO | The status of the piece: ACTIVE: The piece is active. FREEZING: The piece is being frozen. FROZEN: The piece is frozen. The status will no longer change after this. |
| START_SCN | bigint(20) unsigned | NO | The actual start SCN of the piece. |
| START_SCN_DISPLAY | datetime(6) | NO | The start time of the piece after the START_SCN is converted to a timestamp. |
| CHECKPOINT_SCN | bigint(20) unsigned | NO | The current archive SCN. |
| CHECKPOINT_SCN_DISPLAY | datetime(6) | NO | The archive time after the CHECKPOINT_SCN is converted to a timestamp. |
| MAX_SCN | bigint(20) unsigned | NO | The maximum archive SCN. |
| END_SCN | bigint(20) unsigned | NO | The theoretical end SCN of the piece. |
| END_SCN_DISPLAY | datetime(6) | NO | The end time 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 that is compressed or encrypted. This field is not supported. |
| COMPRESSION | varchar(128) | NO | The compression algorithm:
|
| INPUT_BYTES | bigint(20) | NO | The size of the original data. |
| INPUT_BYTES_DISPLAY | varchar(27) | NO | The size of the original data after the INPUT_BYTES is converted to 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 the OUTPUT_BYTES is converted to a unit. |
| COMPRESSION_RATIO | decimal(23,2) | NO | The compression ratio. |
| FILE_STATUS | varchar(64) | NO | The file status of the backup log piece: AVAILABLE: indicates that the backup is valid and can be used for recovery. COPYING: indicates that the log file is being backed up. INCOMPELTE: indicates that the logs under the piece are incomplete and some log streams are missing. DELETING: indicates that the log file is being deleted. EXPIRED: indicates that the backup file has expired. BROKEN: indicates that the backup file is incomplete and cannot be used. DELETED: indicates that the log file has been deleted. |
| PATH | varchar(2048) | NO | The archive path. |
Sample query
Query the status of pieces in the backup set of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_ARCHIVELOG_PIECE_FILES\G
The query result is as follows:
*************************** 1. row ***************************
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: 1736233485415914000
CHECKPOINT_SCN_DISPLAY: 2025-01-07 15:04:45.415914
MAX_SCN: 1736233485717186000
END_SCN: 1736314722307513000
END_SCN_DISPLAY: 2025-01-08 13:38:42.307513
COMPATIBLE: 1
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
FILE_STATUS: AVAILABLE
PATH: file:///home/admin/oceanbase/arglog
1 row in set