Note
- This view is available starting with V4.3.1 for V4.3.x.
- This view is available starting with V4.2.2 for V4.2.x.
Purpose
The DBA_OB_SYS_VARIABLES view displays the configurations of system variables (including hidden variables that start with an underscore "_") of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| CREATE_TIME | timestamp(6) | YES | The creation time. |
| MODIFY_TIME | timestamp(6) | YES | The modification time. |
| NAME | varchar(128) | NO | The name of the system variable. |
| VALUE | varchar(65536) | YES | The current value of the system variable. |
| MIN_VALUE | varchar(65536) | NO | The minimum value. |
| MAX_VALUE | varchar(65536) | NO | The maximum value. |
| SCOPE | varchar(16) | NO | The level of the system variable. |
| INFO | varchar(4096) | NO | The information comment. |
| DEFAULT_VALUE | varchar(65536) | YES | The default value of the system variable. |
| ISDEFAULT | varchar(3) | NO | Indicates whether the value is the default value. |
Sample query
Query the information about the system variable ob_query_timeout of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_SYS_VARIABLES WHERE NAME='ob_query_timeout';
The query result is as follows:
+----------------------------+----------------------------+------------------+----------+-----------+-----------+------------------+----------------------------------+---------------+-----------+
| CREATE_TIME | MODIFY_TIME | NAME | VALUE | MIN_VALUE | MAX_VALUE | SCOPE | INFO | DEFAULT_VALUE | ISDEFAULT |
+----------------------------+----------------------------+------------------+----------+-----------+-----------+------------------+----------------------------------+---------------+-----------+
| 2024-07-23 15:19:59.763474 | 2024-07-23 15:19:59.763474 | ob_query_timeout | 10000000 | | | GLOBAL | SESSION | Query timeout in microsecond(us) | 10000000 | YES |
+----------------------------+----------------------------+------------------+----------+-----------+-----------+------------------+----------------------------------+---------------+-----------+
1 row in set
