Overview
Displays the log restore source for this tenant.
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:
|
| 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
Users can query the log restore sources of their own 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