Note
This view is available starting with V4.2.1.
Overview
Displays the SNAPSHOT information for all tenants.
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 |
Usage examples
Query the SNAPSHOT information for all tenants.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_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-07-31 14:17:04.145914
END_INTERVAL_TIME: 2025-07-31 15:17:04.149195
SNAP_FLAG: 3
STARTUP_TIME: NULL
1 row in set (0.037 sec)
