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 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 value of the log_archive_dest parameter is 0, and the dest_no value of the log_archive_dest_1 parameter is 1. |
| STATUS | varchar(64) | NO | The status of the piece. Valid values:
|
| START_SCN | bigint(20) unsigned | NO | The start SCN of the piece. |
| START_SCN_DISPLAY | datetime(6) | NO | The start time of the piece, converted from the START_SCN value. |
| CHECKPOINT_SCN | bigint(20) unsigned | NO | The current archive SCN. |
| CHECKPOINT_SCN_DISPLAY | datetime(6) | NO | The current archive time, converted from the CHECKPOINT_SCN value. |
| MAX_SCN | bigint(20) unsigned | NO | The maximum archive SCN. |
| END_SCN | bigint(20) unsigned | NO | The 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 in one log archiving operation. 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, in bytes. |
| INPUT_BYTES_DISPLAY | varchar(27) | NO | The size of the original data, converted from the INPUT_BYTES value. |
| OUTPUT_BYTES | bigint(20) | NO | The size of the encrypted or compressed data, in bytes. |
| OUTPUT_BYTES_DISPLAY | varchar(27) | NO | The size of the encrypted or compressed data, converted from the OUTPUT_BYTES value. |
| 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 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
References
For more information about pieces, see Overview of log archiving.