Overview
Displays the details of the MemTable for all partitions of the current tenant on all servers.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | Server IP Address |
| SVR_PORT | bigint(20) | NO | Server Port |
| TENANT_ID | bigint(20) | NO | Tenant ID |
| LS_ID | bigint(20) | NO | Log Stream |
| TABLE_ID | bigint(20) | NO | Data Shard ID |
| IS_ACTIVE | varchar(3) | NO | Active |
| START_SCN | bigint(20) unsigned | NO | Storage Start Offset |
| END_SCN | bigint(20) unsigned | NO | Storage End Offset |
| FREEZE_TS | bigint(20) | NO | Frozen Timestamp |
Sample query
You can query the details of the MemTable of all partitions in the current tenant on all servers.
obclient [oceanbase]> SELECT * FROM oceanbase.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 | 1002 | 1 | 378 | YES | 1714068002572249530 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1 | 1 | YES | 1714068112628329951 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1 | 377 | YES | 1714068002572249530 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1 | 323 | YES | 1714068002572249530 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1 | 331 | YES | 1714068002572249530 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1 | 121 | YES | 1714068114066199993 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1 | 431 | YES | 1714031525703603309 | 4611686018427387903 | 0 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1 | 373 | YES | 1 | 4611686018427387903 | 0 |
+----------------+----------+-----------+-------+-----------+-----------+---------------------+---------------------+-----------+
8 rows in set
Related views
View detailed information about the MemTable of all partitions on the current node: V$OB_MEMSTORE_INFO
View the memory usage of tenants' MemTables on all nodes: GV$OB_MEMSTORE