Purpose
The oceanbase.CDB_WR_SNAPSHOT view displays the snapshots of all tenants.
Note
This view is introduced since OceanBase Database V4.2.1.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CLUSTER_ID | bigint(20) | NO | The ID of the cluster. |
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| SNAP_ID | bigint(20) | NO | The ID of the snapshot. |
| SVR_IP | varchar(46) | NO | The IP address of the OBServer node. |
| SVR_PORT | bigint(20) | NO | The port of the OBServer node. |
| BEGIN_INTERVAL_TIME | timestamp(6) | NO | The start time of the snapshot. The value is a timestamp accurate to milliseconds. |
| END_INTERVAL_TIME | timestamp(6) | NO | The end time of the snapshot. The value is a timestamp accurate to milliseconds. |
| SNAP_FLAG | bigint(20) | YES | The reason for triggering the snapshot. |
| STARTUP_TIME | timestamp(6) | YES | The time when the process was started. The value is a timestamp accurate to milliseconds. |
Sample query
SELECT * FROM CDB_WR_SNAPSHOT limit 1;