Note
This view is introduced since OceanBase Database V4.0.0.
Purpose
The V$OB_TENANT_MEMORY view displays the memory usage of the current tenant on the current OBServer node.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | NUMBER(38) | NO | The ID of the tenant. |
| SVR_IP | VARCHAR2(46) | NO | The IP address of the OBServer node. |
| SVR_PORT | NUMBER(38) | NO | The port number of the OBServer node. |
| HOLD | NUMBER(38) | NO | The memory used by the tenant, in bytes. |
| FREE | NUMBER | NO | The memory available for the tenant, in bytes. |
Sample query
Query the memory usage of the current tenant on the current OBServer node.
obclient [SYS]> SELECT * FROM SYS.V$OB_TENANT_MEMORY;
The query result is as follows:
+-----------+----------------+----------+-----------+------------+
| TENANT_ID | SVR_IP | SVR_PORT | HOLD | FREE |
+-----------+----------------+----------+-----------+------------+
| 1004 | 172.xx.xxx.xxx | 2882 | 748290048 | 4620419072 |
+-----------+----------------+----------+-----------+------------+
1 row in set