Note
This view is introduced since OceanBase Database V4.2.2.
Purpose
The DBA_OB_SYS_VARIABLES view displays the settings of system variables 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 description about the system variable. |
| DEFAULT_VALUE | VARCHAR2(65536) | Yes | The default value of the system variable. |
| ISDEFAULT | VARCHAR2(3) | No | Indicates whether the default value is used. |
Example
obclient > SELECT * FROM SYS.DBA_OB_SYS_VARIABLES WHERE ROWNUM <= 2;
The query result is as follows:
+------------------------------+------------------------------+--------------------------+-------+-----------+-----------+------------------+------+---------------+-----------+
| CREATE_TIME | MODIFY_TIME | NAME | VALUE | MIN_VALUE | MAX_VALUE | SCOPE | INFO | DEFAULT_VALUE | ISDEFAULT |
+------------------------------+------------------------------+--------------------------+-------+-----------+-----------+------------------+------+---------------+-----------+
| 13-DEC-23 01.53.55.603554 PM | 13-DEC-23 01.53.55.603554 PM | auto_increment_increment | 1 | 1 | 65535 | GLOBAL | SESSION | NULL | 1 | YES |
| 13-DEC-23 01.53.55.603554 PM | 13-DEC-23 01.53.55.603554 PM | auto_increment_offset | 1 | 1 | 65535 | GLOBAL | SESSION | NULL | 1 | YES |
+------------------------------+------------------------------+--------------------------+-------+-----------+-----------+------------------+------+---------------+-----------+
2 rows in set (0.006 sec)