Note
This view is available starting with V4.2.0.
Purpose
This view displays the log restore sources of all physical restore tenants and standby tenants.
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 endpoint address of the log restore source.
|
| RECOVERY_UNTIL_SCN | bigint(20) unsigned | NO | The upper limit of the log to be obtained. The value can be INT64_MAX or a finite value greater than 0. |
Sample query
Query the log restore sources of a physical restore tenant and standby tenant in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_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