Note
This variable is available starting with V1.4.
Description
ob_last_schema_version specifies the latest schema version used in the current session.
When a Proxy connection is mapped to multiple servers, you must use this system variable to synchronize schemas. Therefore, this variable takes effect only at the session level.
Privilege requirements
Query variables
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the values of session system variables.Modify variables
The
systenant and all user tenants can directly modify the values of session system variables in their own tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0 |
| Value range | [0, 9223372036854775807] |
| Scope | Session |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the latest schema version used in the current session to 1749025079596944.
obclient> SET ob_last_schema_version = 1749025079596944;