Note
The view GV$MEMSTORE_INFO was renamed to GV$OB_MEMSTORE_INFO starting from V4.0.0. In V4.0.0 and later versions, you must use the new view name GV$OB_MEMSTORE_INFO to query. Using the original view name GV$MEMSTORE_INFO will result in an error.
Purpose
This view displays the detailed information of MemTables for all partitions of the current tenant on all servers.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server. |
| SVR_PORT | NUMBER(38) | NO | The port of the server. |
| TENANT_ID | NUMBER(38) | NO | The tenant ID. |
| LS_ID | NUMBER(38) | NO | The log stream ID. |
| TABLE_ID | NUMBER(38) | NO | The data shard ID. |
| IS_ACTIVE | VARCHAR2(3) | NO | Indicates whether the MemTable is active. |
| START_SCN | NUMBER(38) | NO | The start SCN of the MemTable. |
| END_SCN | NUMBER(38) | NO | The end SCN of the MemTable. |
| FREEZE_TS | NUMBER(38) | NO | The timestamp when the MemTable was frozen. |
Sample query
Query the detailed information of MemTables for all partitions of the current tenant on all servers.
obclient [SYS]> SELECT * FROM SYS.GV$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
References
Query the detailed information of MemTables for all partitions of the current node: V$OB_MEMSTORE_INFO
Query the memory usage of MemTables of the tenant on all nodes: GV$OB_MEMSTORE
