oceanbase.DBA_OB_SYS_VARIABLES

2024-12-02 03:48:27  Updated

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) 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 ob_query_timeout system variable of all tenants from the sys tenant.

obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_SYS_VARIABLES WHERE NAME='ob_query_timeout';

The query result is as follows:

+----------------------------+----------------------------+-----------+------------------+----------+-----------+-----------+------------------+----------------------------------+---------------+-----------+
| CREATE_TIME                | MODIFY_TIME                | TENANT_ID | NAME             | VALUE    | MIN_VALUE | MAX_VALUE | SCOPE            | INFO                             | DEFAULT_VALUE | ISDEFAULT |
+----------------------------+----------------------------+-----------+------------------+----------+-----------+-----------+------------------+----------------------------------+---------------+-----------+
| 2024-07-23 15:16:40.982646 | 2024-07-23 15:16:40.982646 |         1 | ob_query_timeout | 10000000 |           |           | GLOBAL | SESSION | Query timeout in microsecond(us) | 10000000      | YES       |
| 2024-07-23 15:19:51.404894 | 2024-07-23 15:19:51.404894 |      1001 | ob_query_timeout | 10000000 |           |           | GLOBAL | SESSION | Query timeout in microsecond(us) | 10000000      | YES       |
| 2024-07-23 15:19:59.763474 | 2024-07-23 15:19:59.763474 |      1002 | ob_query_timeout | 10000000 |           |           | GLOBAL | SESSION | Query timeout in microsecond(us) | 10000000      | YES       |
| 2024-07-23 15:20:30.120028 | 2024-07-23 15:20:30.120028 |      1003 | ob_query_timeout | 10000000 |           |           | GLOBAL | SESSION | Query timeout in microsecond(us) | 10000000      | YES       |
| 2024-07-23 15:20:40.848027 | 2024-07-23 15:20:40.848027 |      1004 | ob_query_timeout | 10000000 |           |           | GLOBAL | SESSION | Query timeout in microsecond(us) | 10000000      | YES       |
+----------------------------+----------------------------+-----------+------------------+----------+-----------+-----------+------------------+----------------------------------+---------------+-----------+
5 rows in set

References

Overview

Contact Us