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: SERVICE, LOCATION, and RAWPATH.
|
| VALUE | longtext | NO | The endpoint address of the log restore source.
|
| RECOVERY_UNTIL_SCN | bigint(20) unsigned | NO | The maximum log SCN to be retrieved. The value can be INT64_MAX or a positive value. |
| RECOVERY_DELAY | bigint(20) | NO | The synchronization delay of the tenant, in microseconds. Default value: 0, indicating no delay.
NoteThis field is available starting with V4.4.2 BP2. |
Sample query
Query the log restore sources of the current user tenant.
obclient(root@standby_tenant)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_LOG_RESTORE_SOURCE\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
ID: 1
TYPE: SERVICE
VALUE: IP_LIST=6.xx.xx.91:2881+2882,USER=rep_user@mysql001,PASSWORD=DFB**********************************,TENANT_ID=1002,CLUSTER_ID=10001,COMPATIBILITY_MODE=MYSQL,IS_ENCRYPTED=true
RECOVERY_UNTIL_SCN: 4611686018427387903
RECOVERY_DELAY: 1800000000
1 row in set
