Note
This view is available starting with V4.0.0.
Purpose
This view displays the status of all logs archived for the current and historical tenants.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| DEST_ID | NUMBER(38) | NO | The path ID. The system assigns a unique ID to each path. |
| ROUND_ID | NUMBER(38) | NO | The ID of a complete clog backup stream. |
| INCARNATION | NUMBER(38) | NO | The number of times the database has been flashed back. |
| DEST_NO | NUMBER(38) | 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. |
| STATUS | VARCHAR2(64) | NO | The status of the log archiving. Valid values:
|
| START_SCN | NUMBER(38) | NO | The starting backup point. |
| START_SCN_DISPLAY | TIMESTAMP(9) | NO | The value of START_SCN converted to a timestamp. |
| CHECKPOINT_SCN | NUMBER(38) | NO | The current archiving point. |
| CHECKPOINT_SCN_DISPLAY | TIMESTAMP(9) | NO | The value of CHECKPOINT_SCN converted to a timestamp. |
| COMPATIBLE | NUMBER(38) | NO | The compatibility version. |
| BASE_PIECE_ID | NUMBER(38) | NO | The ID of the first PIECE in the current round. |
| USED_PIECE_ID | NUMBER(38) | NO | The ID of the last PIECE used in the current round. |
| PIECE_SWITCH_INTERVAL | NUMBER(38) | NO | The interval for switching pieces. |
| UNIT_SIZE | NUMBER(38) | NO | The size of a single log block to be compressed or encrypted in the current round. This column is not supported. |
| COMPRESSION | VARCHAR2(128) | NO | The compression algorithm. Valid values:
|
| INPUT_BYTES | NUMBER | NO | The size of data read, in bytes. |
| INPUT_BYTES_DISPLAY | VARCHAR2(42) | NO | The size of data read, with the unit. For example: 798.01 M or 5.25 G. |
| OUTPUT_BYTES | NUMBER | NO | The size of data output, in bytes. |
| OUTPUT_BYTES_DISPLAY | VARCHAR2(42) | NO | The size of data output, with the unit. For example: 798.01 M or 5.25 G. |
| COMPRESSION_RATIO | NUMBER | NO | The compression ratio. This column is not supported. |
| DELETED_INPUT_BYTES | NUMBER(38) | NO | The size of original data deleted, in bytes. |
| DELETED_INPUT_BYTES_DISPLAY | VARCHAR2(42) | NO | The size of original data deleted, with the unit. Valid values: MB, GB, TB, and PB. |
| DELETED_OUTPUT_BYTES | NUMBER(38) | NO | The size of effective data deleted, in bytes. |
| DELETED_OUTPUT_BYTES_DISPLAY | VARCHAR2(42) | NO | The size of effective data deleted, with the unit. Valid values: MB, GB, TB, and PB. |
| PATH | VARCHAR2(2048) | NO | The archiving path. |
| COMMENT | VARCHAR2(262144) | NO | The error message. |
Sample query
Query the status of all logs archived for the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_ARCHIVELOG_SUMMARY\G
The query result is as follows:
*************************** 1. row ***************************
DEST_ID: 1002
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: 1736233725601484000
CHECKPOINT_SCN_DISPLAY: 2025-01-07 15:08:45.601484
COMPATIBLE: 1
BASE_PIECE_ID: 1
USED_PIECE_ID: 1
PIECE_SWITCH_INTERVAL: 86400000000
UNIT_SIZE: 1
COMPRESSION: none
INPUT_BYTES: 85762972
INPUT_BYTES_DISPLAY: 81.79MB
OUTPUT_BYTES: 85762972
OUTPUT_BYTES_DISPLAY: 81.79MB
COMPRESSION_RATIO: 1.00
DELETED_INPUT_BYTES: 0
DELETED_INPUT_BYTES_DISPLAY: 0.00MB
DELETED_OUTPUT_BYTES: 0
DELETED_OUTPUT_BYTES_DISPLAY: 0.00MB
PATH: file:///home/admin/oceanbase/arglogorc
COMMENT:
1 row in set