Note
This view is available starting with V4.2.1.
Purpose
This view displays the SNAPSHOT information of the current tenant.
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, with millisecond precision. |
| END_INTERVAL_TIME | timestamp(6) | NO | The end time of the snapshot, with millisecond precision. |
| SNAP_FLAG | bigint(20) | YES | The reason for triggering the snapshot. |
| STARTUP_TIME | timestamp(6) | YES | The startup time of the process, with millisecond precision. |
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)