Note
This variable is available starting with V2.2.77.
Description
ob_proxy_global_variables_version is used in the internal communication between obproxy and OBServer nodes. It specifies the latest version of global variables that OBServer nodes return to obproxy.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0 |
| Value range | [0, INT64_MAX) |
| Scope | Session |
| Modifiable | No. You can specify this variable when you create a tenant, but you cannot modify it by executing an SQL statement after the tenant is created. |
Usage notes
You cannot query the value of this variable by using the SHOW VARIABLES statement or the SYS.TENANT_VIRTUAL_SESSION_VARIABLE view (Oracle mode) or the information_schema.SESSION_VARIABLES view (MySQL mode). You can query the value of this variable from the SYS.DBA_OB_SYS_VARIABLES view (Oracle mode) or the oceanbase.DBA_OB_SYS_VARIABLES view (MySQL mode).
You can also execute the SELECT statement to query the latest version number of global variables:
obclient> SELECT @@ob_proxy_global_variables_version;
The query result is as follows:
+-------------------------------------+
| @@ob_proxy_global_variables_version |
+-------------------------------------+
| 0 |
+-------------------------------------+
1 row in set