Note
This view is introduced since OceanBase Database V1.4.
Purpose
This view displays information about all global variables (including hidden variables that start with "_").
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| VARIABLE_NAME | varchar(128) | NO | The name of the variable. |
| VARIABLE_VALUE | varchar(65536) | YES | The value of the variable. |
Sample query
Query the value of the global variable ob_trx_timeout.
obclient [oceanbase]> SELECT * FROM information_schema.GLOBAL_VARIABLES WHERE VARIABLE_NAME='ob_trx_timeout';
The query result is as follows:
+----------------+----------------+
| VARIABLE_NAME | VARIABLE_VALUE |
+----------------+----------------+
| ob_trx_timeout | 86400000000 |
+----------------+----------------+
1 row in set