Overview
Displays the log restore sources for all physical restore tenants and standby tenants.
Columns
Column |
Type |
Is NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| ID | bigint(20) | NO | Log Restore Source Number |
| TYPE | varchar(32) | NO | Log restore source type. Valid values:
|
| VALUE | longtext | NO | Log restore source entry address
|
| RECOVERY_UNTIL_SCN | bigint(20) unsigned | NO | Maximum number of logs to retrieve. The value can be INT64_MAX or a positive finite number. |
Sample query
The system tenant queries the physical restore tenant or standby tenant for log restore sources.
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