Note
- For OceanBase Database V4.3.x, this view was introduced in OceanBase Database V4.3.1.
- For OceanBase Database V4.2.x, this view was introduced in OceanBase Database V4.2.2.
Purpose
The DBA_OB_SYS_VARIABLES view displays the system variable settings of the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CREATE_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the system variable was created. |
| MODIFY_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the system variable was modified. |
| NAME | VARCHAR2(128) | YES | The name of the system variable. |
| VALUE | VARCHAR2(65536) | YES | The current value of the system variable. |
| MIN_VALUE | VARCHAR2(65536) | YES | The minimum value of the system variable. |
| MAX_VALUE | VARCHAR2(65536) | YES | The maximum value of the system variable. |
| SCOPE | VARCHAR2(16) | NO | The level of the system variable. |
| INFO | VARCHAR2(4096) | NO | The comments. |
| DEFAULT_VALUE | VARCHAR2(65536) | YES | The default value of the system variable. |
| ISDEFAULT | VARCHAR2(3) | NO | Indicates whether the current value is the default value. |
Sample query
Query the ob_query_timeout system variable of the current tenant.
obclient [SYS]> SELECT * FROM SYS.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 |
+------------------------------+------------------------------+------------------+----------+-----------+-----------+------------------+----------------------------------+---------------+-----------+
| 29-JUL-24 02.59.39.316063 PM | 29-JUL-24 02.59.39.316063 PM | ob_query_timeout | 10000000 | NULL | NULL | GLOBAL | SESSION | Query timeout in microsecond(us) | 10000000 | YES |
+------------------------------+------------------------------+------------------+----------+-----------+-----------+------------------+----------------------------------+---------------+-----------+
1 row in set