Note
- For OceanBase Database V4.3.x, this view is introduced in V4.3.5.
- For OceanBase Database V4.2.x, this view is introduced in V4.2.5.
Purpose
The GV$OB_RES_MGR_SYSSTAT view displays the statistics of resource groups in all OBServer nodes of the tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CON_ID | NUMBER | NO | Tenant ID |
| GROUP_ID | NUMBER | NO | Resource group ID |
| SVR_IP | VARCHAR2(46) | NO | Node IP |
| SVR_PORT | NUMBER(38) | NO | Node PORT |
| STATISTIC# | NUMBER | NO | Statistic ID |
| NAME | VARCHAR2(64) | NO | Statistic name |
| CLASS | NUMBER | NO | Statistic category |
| VALUE | NUMBER | NO | Statistic value |
| VALUE_TYPE | VARCHAR2(16) | NO | Value type: cumulative or assignment |
| STAT_ID | NUMBER | NO | Statistic ID |
Sample query
The following example queries the statistics of resource groups in all OBServer nodes of the tenant.
obclient [SYS]> SELECT * FROM SYS.GV$OB_RES_MGR_SYSSTAT WHERE ROWNUM < 10;
The sample result is as follows:
+--------+----------+----------------+----------+------------+-----------------------+-------+----------+------------+---------+
| CON_ID | GROUP_ID | SVR_IP | SVR_PORT | STATISTIC# | NAME | CLASS | VALUE | VALUE_TYPE | STAT_ID |
+--------+----------+----------------+----------+------------+-----------------------+-------+----------+------------+---------+
| 1004 | 0 | xx.xx.xx.xx | 2882 | 0 | rpc packet in | 1 | 179196 | ADD_VALUE | 10000 |
| 1004 | 0 | xx.xx.xx.xx | 2882 | 1 | rpc packet in bytes | 1 | 53782007 | ADD_VALUE | 10001 |
| 1004 | 0 | xx.xx.xx.xx | 2882 | 2 | rpc packet out | 1 | 183497 | ADD_VALUE | 10002 |
| 1004 | 0 | xx.xx.xx.xx | 2882 | 3 | rpc packet out bytes | 1 | 40616185 | ADD_VALUE | 10003 |
| 1004 | 0 | xx.xx.xx.xx | 2882 | 4 | rpc deliver fail | 1 | 0 | ADD_VALUE | 10004 |
| 1004 | 0 | xx.xx.xx.xx | 2882 | 5 | rpc net delay | 1 | 14481973 | ADD_VALUE | 10005 |
| 1004 | 0 | xx.xx.xx.xx | 2882 | 6 | rpc net frame delay | 1 | 146706 | ADD_VALUE | 10006 |
| 1004 | 0 | xx.xx.xx.xx | 2882 | 7 | mysql packet in | 1 | 781 | ADD_VALUE | 10007 |
| 1004 | 0 | xx.xx.xx.xx | 2882 | 8 | mysql packet in bytes | 1 | 25355 | ADD_VALUE | 10008 |
+--------+----------+----------------+----------+------------+-----------------------+-------+----------+------------+---------+
9 rows in set (0.025 sec)