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 | NUMBER(38) | NO | The cluster ID. |
| TENANT_ID | NUMBER(38) | NO | The tenant ID. |
| SNAP_ID | NUMBER(38) | NO | The snapshot ID. |
| SVR_IP | VARCHAR2(46) | NO | The IP address of the node. |
| SVR_PORT | NUMBER(38) | NO | The port of the node. |
| BEGIN_INTERVAL_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The snapshot start time, accurate to the millisecond. |
| END_INTERVAL_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The snapshot end time, accurate to the millisecond. |
| SNAP_FLAG | NUMBER(38) | YES | The snapshot trigger reason. |
| STARTUP_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | YES | The process startup time, accurate to the millisecond. |
Sample query
Query the SNAPSHOT information of the current tenant and display the first record.
obclient [SYS]> SELECT * FROM SYS.DBA_WR_SNAPSHOT WHERE ROWNUM <= 1\G
The query result is as follows:
*************************** 1. row ***************************
CLUSTER_ID: -1
TENANT_ID: 1004
SNAP_ID: -1
SVR_IP: NULL
SVR_PORT: -1
BEGIN_INTERVAL_TIME: 06-AUG-25 02.17.04.156488 PM
END_INTERVAL_TIME: 06-AUG-25 03.17.04.156158 PM
SNAP_FLAG: 3
STARTUP_TIME: NULL
1 row in set (0.042 sec)