Note
This view is introduced since OceanBase Database V4.0.0.
Purpose
The oceanbase.DBA_SQL_MANAGEMENT_CONFIG view displays the configuration parameters in SQL Plan Management (SPM).
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| PARAMETER_NAME | varchar(128) | NO | The name of the parameter. Valid values: |
| PARAMETER_VALUE | text | YES | The value of the parameter. |
| LAST_MODIFIED | timestamp(6) | YES | The time when the parameter value was updated the last time. |
| MODIFIED_BY | varchar(128) | NO | The user that last updated the parameter value. |
Sample query
View the configuration parameters in the SPM of the current tenant.
obclient[oceanbase]> SELECT * FROM oceanbase.DBA_SQL_MANAGEMENT_CONFIG;
The query result is as follows:
+----------------------------------+-----------------+----------------------------+-------------+
| PARAMETER_NAME | PARAMETER_VALUE | LAST_MODIFIED | MODIFIED_BY |
+----------------------------------+-----------------+----------------------------+-------------+
| AUTO_CAPTURE_ACTION | NULL | 2025-04-27 10:30:29.306370 | NULL |
| AUTO_CAPTURE_MODULE | NULL | 2025-04-27 10:30:29.306370 | NULL |
| AUTO_CAPTURE_PARSING_SCHEMA_NAME | NULL | 2025-04-27 10:30:29.306370 | NULL |
| AUTO_CAPTURE_SQL_TEXT | NULL | 2025-04-27 10:30:29.306370 | NULL |
| AUTO_SPM_EVOLVE_TASK | OFF | 2025-04-27 10:30:29.306370 | NULL |
| AUTO_SPM_EVOLVE_TASK_INTERVAL | 3600 | 2025-04-27 10:30:29.306370 | NULL |
| AUTO_SPM_EVOLVE_TASK_MAX_RUNTIME | 1800 | 2025-04-27 10:30:29.306370 | NULL |
| PLAN_RETENTION_WEEKS | 53 | 2025-04-27 10:30:29.306370 | NULL |
| SPACE_BUDGET_PERCENT | 10 | 2025-04-27 10:30:29.306370 | NULL |
+----------------------------------+-----------------+----------------------------+-------------+
9 rows in set
References
To view the SQL plan baselines in the SPM of the current tenant, see DBA_SQL_PLAN_BASELINES.
For more information about the SPM evolution mechanism, see Execution plan management.