Note
- In OceanBase Database V4.3.x, this view is introduced since V4.3.1.
- In OceanBase Database V4.2.x, this view is introduced since V4.2.2.
Purpose
The oceanbase.DBA_OB_SYS_VARIABLES view displays the system variable settings of the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CREATE_TIME | timestamp(6) | YES | The time when the system variable was created. |
| MODIFY_TIME | timestamp(6) | YES | The time when the system variable was modified. |
| 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 of the system variable. |
| MAX_VALUE | varchar(65536) | NO | The maximum value of the system variable. |
| SCOPE | varchar(16) | NO | The level of the system variable. |
| INFO | varchar(4096) | NO | The comments. |
| DEFAULT_VALUE | varchar(65536) | YES | The default value of the system variable. |
| ISDEFAULT | varchar(3) | NO | Indicates whether the current value is the default value. |
Sample query
Query the settings of the system variables of the current tenant.
obclient > select * from oceanbase.DBA_OB_SYS_VARIABLES limit 1 \G
The query result is as follows:
*************************** 1. row ***************************
CREATE_TIME: 2024-05-08 14:20:28.885780
MODIFY_TIME: 2024-05-08 14:20:28.885780
NAME: activate_all_roles_on_login
VALUE: 0
MIN_VALUE:
MAX_VALUE:
SCOPE: GLOBAL_ONLY
INFO: whether to enable automatic activation of all granted roles when users log in to the server
DEFAULT_VALUE: 0
ISDEFAULT: YES
1 row in set (0.001 sec)