Note
This view is available starting with V4.0.0.
Purpose
This view displays the PX thread usage on the current OBServer node for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | The IP address of the local server. |
| SVR_PORT | NUMBER(38) | NO | The port number of the local server. |
| TENANT_ID | NUMBER(38) | NO | The tenant ID. |
| IS_LEADER | CHAR(1) | NO | Indicates whether the server is the leader of the dummy table. |
| VERSION | NUMBER(38) | NO | The number of times statistics collection has been restarted. |
| PEER_IP | VARCHAR2(46) | NO | The IP address of the peer server. |
| PEER_PORT | NUMBER(38) | NO | The port number of the peer server. |
| PEER_TARGET | NUMBER(38) | NO | The total number of PX threads on the peer server. |
| PEER_TARGET_USED | NUMBER(38) | NO | The number of PX threads used on the peer server. |
| LOCAL_TARGET_USED | NUMBER(38) | NO | The number of PX threads used on the local server. |
| LOCAL_PARALLEL_SESSION_COUNT | NUMBER(38) | NO | The number of sessions that are being executed in parallel on the local server. |
Sample query
Query the PX thread usage on the current OBServer node for the current user tenant.
obclient [SYS]> SELECT * FROM SYS.V$OB_PX_TARGET_MONITOR;
The query result is as follows:
+----------------+----------+-----------+-----------+-----------------+----------------+-----------+-------------+------------------+-------------------+------------------------------+
| SVR_IP | SVR_PORT | TENANT_ID | IS_LEADER | VERSION | PEER_IP | PEER_PORT | PEER_TARGET | PEER_TARGET_USED | LOCAL_TARGET_USED | LOCAL_PARALLEL_SESSION_COUNT |
+----------------+----------+-----------+-----------+-----------------+----------------+-----------+-------------+------------------+-------------------+------------------------------+
| 11.xxx.xxx.xxx | 28825 | 1004 | Y | 334988734352026 | 11.xxx.xxx.xxx | 28825 | 10 | 0 | 0 | 0 |
+----------------+----------+-----------+-----------+-----------------+----------------+-----------+-------------+------------------+-------------------+------------------------------+
1 row in set
