Note
This view is available starting with V4.2.1.
Purpose
This view displays the SNAPSHOT information of all tenants.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CLUSTER_ID | bigint(20) | NO | The cluster ID. |
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| SNAP_ID | bigint(20) | NO | The snapshot ID. |
| SVR_IP | varchar(46) | NO | The IP address of the node. |
| SVR_PORT | bigint(20) | NO | The port number of the node. |
| BEGIN_INTERVAL_TIME | timestamp(6) | NO | The start time of the snapshot, accurate to the millisecond. |
| END_INTERVAL_TIME | timestamp(6) | NO | The end time of the snapshot, accurate to the millisecond. |
| SNAP_FLAG | bigint(20) | YES | The reason for the snapshot. |
| STARTUP_TIME | timestamp(6) | YES | The startup time of the process, accurate to the millisecond. |
Sample query
Query the SNAPSHOT information of 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)