Note
This view is available starting with V4.0.0.
Purpose
This view displays the memory usage of the current tenant on all nodes.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | NUMBER(38) | NO | The tenant ID. |
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server. |
| SVR_PORT | NUMBER(38) | NO | The port number of the server. |
| HOLD | NUMBER(38) | NO | The amount of memory used by the tenant. |
| FREE | NUMBER | NO | The amount of memory available to the tenant. |
Sample query
Query the memory usage of the current tenant on all nodes.
obclient [SYS]> SELECT * FROM SYS.GV$OB_TENANT_MEMORY;
The query result is as follows:
+-----------+----------------+----------+------------+------------+
| TENANT_ID | SVR_IP | SVR_PORT | HOLD | FREE |
+-----------+----------------+----------+------------+------------+
| 1004 | 172.xx.xxx.xxx | 2882 | 750387200 | 4618321920 |
| 1004 | 172.xx.xxx.xxx | 2882 | 1158885376 | 4209823744 |
| 1004 | 172.xx.xxx.xxx | 2882 | 809107456 | 4559601664 |
+-----------+----------------+----------+------------+------------+
3 rows in set