Note
This view is available starting with V4.0.0.
Purpose
This view displays schema information on all OBServer nodes.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server. |
| SVR_PORT | NUMBER(38) | NO | The port number of the server. |
| TENANT_ID | NUMBER(38) | NO | The tenant ID. |
| REFRESHED_SCHEMA_VERSION | NUMBER(38) | NO | The schema version that has been refreshed for the tenant. |
| RECEIVED_SCHEMA_VERSION | NUMBER(38) | NO | The schema version that needs to be refreshed for the tenant. |
| SCHEMA_COUNT | NUMBER(38) | NO | The total number of schema objects in the corresponding schema version. |
| SCHEMA_SIZE | NUMBER(38) | NO | The total memory size occupied by schema objects in the corresponding schema version, in bytes. |
| MIN_SSTABLE_SCHEMA_VERSION | NUMBER(38) | NO | The minimum schema version recorded on the SSTable of the tenant. |
Sample query
Query schema information of the user tenant on all OBServer nodes.
obclient [SYS]> SELECT * FROM SYS.GV$OB_SERVER_SCHEMA_INFO;
The query result is as follows:
+----------------+----------+-----------+--------------------------+-------------------------+--------------+-------------+----------------------------+
| SVR_IP | SVR_PORT | TENANT_ID | REFRESHED_SCHEMA_VERSION | RECEIVED_SCHEMA_VERSION | SCHEMA_COUNT | SCHEMA_SIZE | MIN_SSTABLE_SCHEMA_VERSION |
+----------------+----------+-----------+--------------------------+-------------------------+--------------+-------------+----------------------------+
| 172.xx.xxx.xxx | 2882 | 1004 | 1735872883840472 | 1735872883840472 | 2360 | 2321104 | -1 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1735872883840472 | 1735872883840472 | 2360 | 2321104 | -1 |
| 172.xx.xxx.xxx | 2882 | 1004 | 1735872883840472 | 1735872883840472 | 2360 | 2321104 | -1 |
+----------------+----------+-----------+--------------------------+-------------------------+--------------+-------------+----------------------------+
3 rows in set
