GV$OB_MEMSTORE

2025-11-14 07:33:33  Updated

Note

The view GV$SERVER_MEMSTORE was renamed to GV$OB_MEMSTORE in V4.0.0. In V4.0.0 and later, you must use the new view name GV$OB_MEMSTORE to query the view. Otherwise, an error will occur.

Purpose

This view displays the memory usage of MemTables on all servers of all tenants.

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 ID of the tenant.
ACTIVE_SPAN NUMBER(38) NO The estimated memory usage of active MemTables (which may be overestimated), in bytes.
FREEZE_TRIGGER NUMBER(38) NO The memory size that triggers the freezing of MemTables, in bytes.
FREEZE_CNT NUMBER(38) NO The number of times MemTables have been frozen.
MEMSTORE_USED NUMBER(38) NO The total memory usage of MemTables, in bytes.
MEMSTORE_LIMIT NUMBER(38) NO The memory size limit of MemTables, in bytes.

Sample query

The following example queries the memory usage of MemTables on all servers of the current tenant.

obclient [SYS]> SELECT * FROM SYS.GV$OB_MEMSTORE;

The query result is as follows:

+----------------+----------+-----------+-------------+----------------+------------+---------------+----------------+
| SVR_IP         | SVR_PORT | TENANT_ID | ACTIVE_SPAN | FREEZE_TRIGGER | FREEZE_CNT | MEMSTORE_USED | MEMSTORE_LIMIT |
+----------------+----------+-----------+-------------+----------------+------------+---------------+----------------+
| 172.xx.xxx.xxx |     2882 |      1004 |    25165824 |      603982068 |          0 |      25165824 |     2684354550 |
+----------------+----------+-----------+-------------+----------------+------------+---------------+----------------+
1 row in set

References

Contact Us