Note
The V$MEMSTORE_INFO view has been renamed as V$OB_MEMSTORE_INFO since OceanBase Database V4.0.0. If you query the V$MEMSTORE_INFO view in OceanBase Database V4.0.0 or later, an error is returned.
Purpose
The V$OB_MEMSTORE_INFO view displays the details about MemTables of all partitions of all tenants on all OBServer nodes.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | The IP address of the OBServer node. |
| SVR_PORT | NUMBER(38) | NO | The port number of the OBServer node. |
| TENANT_ID | NUMBER(38) | NO | The ID of the tenant. |
| LS_ID | NUMBER(38) | NO | The ID of the log stream. |
| TABLE_ID | NUMBER(38) | NO | The ID of the tablet. |
| IS_ACTIVE | VARCHAR2(3) | NO | Indicates whether the current MemTable is active. |
| START_SCN | NUMBER(38) | NO | The system change number (SCN) at which the storage started. |
| END_SCN | NUMBER(38) | NO | The SCN at which the storage ended. |
| FREEZE_TS | NUMBER(38) | NO | The freeze timestamp. |
Sample query
Query details about MemTables of all partitions of a user tenant on all OBServer nodes from the user tenant.
obclient [SYS]> SELECT * FROM SYS.V$OB_MEMSTORE_INFO;
The query result is as follows:
+----------------+----------+-----------+-------+-----------+-----------+---------------------+---------------------+-----------+
| SVR_IP | SVR_PORT | TENANT_ID | LS_ID | TABLET_ID | IS_ACTIVE | START_SCN | END_SCN | FREEZE_TS |
+----------------+----------+-----------+-------+-----------+-----------+---------------------+---------------------+-----------+
| 172.xx.xxx.xxx | 2882 | 1004 | 1 | 378 | YES | 1714068002398559906 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1 | 1 | YES | 1714068042428321987 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1 | 377 | YES | 1714068002398559906 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1 | 323 | YES | 1714068002398559906 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1 | 331 | YES | 1714068002398559906 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1 | 121 | YES | 1714068039981365017 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1 | 431 | YES | 1714031571263590534 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1 | 373 | YES | 1 | 4611686018427387903 | 0 |
+----------------+----------+-----------+-------+-----------+-----------+---------------------+---------------------+-----------+
8 rows in set