Note
This view is available starting with V4.2.1.
Overview
Displays the SNAPSHOT information of the current tenant.
Columns
Column |
Type |
Is NULL |
Description |
|---|---|---|---|
| CLUSTER_ID | bigint(20) | NO | Cluster ID |
| TENANT_ID | bigint(20) | NO | Tenant ID |
| SNAP_ID | bigint(20) | NO | Snapshot ID |
| SVR_IP | varchar(46) | NO | Node IP |
| SVR_PORT | bigint(20) | NO | Node Port |
| BEGIN_INTERVAL_TIME | timestamp(6) | NO | Snapshot start time, in milliseconds |
| END_INTERVAL_TIME | timestamp(6) | NO | Snapshot end time, in milliseconds |
| SNAP_FLAG | bigint(20) | YES | Snapshot Trigger Cause |
| STARTUP_TIME | timestamp(6) | YES | Process start time, in milliseconds |
Sample query
Query the SNAPSHOT information of the current tenant and display the first record.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_WR_SNAPSHOT LIMIT 1\G
The query result is as follows:
*************************** 1. row ***************************
CLUSTER_ID: -1
TENANT_ID: 1
SNAP_ID: -1
SVR_IP:
SVR_PORT: -1
BEGIN_INTERVAL_TIME: 2025-08-01 15:25:58.245982
END_INTERVAL_TIME: 2025-08-01 16:25:58.248916
SNAP_FLAG: 3
STARTUP_TIME: NULL
1 row in set (0.002 sec)
