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 | varchar(46) | NO | The IP address of the server. |
| SVR_PORT | bigint(20) | NO | The port number of the server. |
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| REFRESHED_SCHEMA_VERSION | bigint(20) | NO | The schema version that has been refreshed for the tenant. |
| RECEIVED_SCHEMA_VERSION | bigint(20) | NO | The schema version that needs to be refreshed for the tenant. |
| SCHEMA_COUNT | bigint(20) | NO | The number of schemas for the tenant. |
| SCHEMA_SIZE | bigint(20) | NO | The size of schemas for the tenant. |
| MIN_SSTABLE_SCHEMA_VERSION | bigint(20) | NO | The minimum schema_version recorded in the SSTable of the tenant. |
Sample query
Query the schema information of the current user tenant on all OBServer nodes.
obclient [oceanbase]> SELECT * FROM oceanbase.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 | 1002 | 1735785545009528 | 1735785545009528 | 1774 | 1725881 | -1 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1735785545009528 | 1735785545009528 | 1774 | 1725881 | -1 |
| 172.xx.xxx.xxx | 2882 | 1002 | 1735785545009528 | 1735785545009528 | 1774 | 1725881 | -1 |
+----------------+----------+-----------+--------------------------+-------------------------+--------------+-------------+----------------------------+
3 rows in set