Overview
Displays the schema information on all OBServer nodes.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | Server IP Address |
| SVR_PORT | bigint(20) | NO | Server Port Number |
| TENANT_ID | bigint(20) | NO | Tenant ID |
| REFRESHED_SCHEMA_VERSION | bigint(20) | NO | Schema Versions Refreshed by Tenant |
| RECEIVED_SCHEMA_VERSION | bigint(20) | NO | Schema versions to be refreshed for the tenant |
| SCHEMA_COUNT | bigint(20) | NO | The total number of schema objects in the corresponding schema version. |
| SCHEMA_SIZE | bigint(20) | NO | The total memory size occupied by each schema object under the corresponding schema version, in bytes. |
| MIN_SSTABLE_SCHEMA_VERSION | bigint(20) | NO | Minimum schema version recorded in the tenant's SSTable |
Sample query
You can query the schema information of the current 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