Note
This view is available starting with V4.2.0.
Purpose
This view displays the log restore sources of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| ID | bigint(20) | NO | The ID of the log restore source. |
| TYPE | varchar(32) | NO | The type of the log restore source. Valid values:
|
| VALUE | longtext | NO | The entry address of the log restore source.
|
| RECOVERY_UNTIL_SCN | bigint(20) unsigned | NO | The upper limit of log retrieval. The value can be INT64_MAX or a positive finite value. |
Sample query
Query the log restore sources of the current user tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_LOG_RESTORE_SOURCE;
The query result is as follows:
+-----------+------+----------+-------------------------------------+---------------------+
| TENANT_ID | ID | TYPE | VALUE | RECOVERY_UNTIL_SCN |
+-----------+------+----------+-------------------------------------+---------------------+
| 1016 | 1 | LOCATION | file:///home/admin/oceanbase/arglog | 4611686018427387903 |
+-----------+------+----------+-------------------------------------+---------------------+
1 row in set