Note
This view is available starting with V4.0.0.
Purpose
This view displays the plan baselines in the SQL plan management (SPM) of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SIGNATURE | bigint(20) unsigned | NO | The unique identifier of the SQL statement generated by the normalized SQL statement. |
| SQL_HANDLE | varchar(32) | NO | The unique SQL text. |
| SQL_TEXT | longtext | NO | The SQL text that is not normalized. |
| PLAN_NAME | varchar(128) | NO | The unique text-based identifier of the plan. |
| CREATOR | varchar(128) | NO | The user who created the plan baseline. |
| ORIGIN | varchar(29) | NO | The method used to create the plan baseline:
|
| PARSING_SCHEMA_NAME | varchar(128) | NO | This column is not supported. The default value of this column is NULL. |
| DESCRIPTION | varchar(500) | YES | The description of the plan baseline. |
| VERSION | varchar(256) | NO | The database version when the plan baseline was created. |
| CREATED | timestamp(6) | YES | The time when the plan baseline was created. |
| LAST_MODIFIED | timestamp(6) | YES | The time when the plan baseline was last modified. |
| LAST_EXECUTED | bigint(20) | NO | The time when the plan baseline was last executed. |
| LAST_VERIFIED | bigint(20) | NO | The time when the plan baseline was last verified. |
| ENABLED | varchar(3) | NO | Indicates whether the plan baseline is enabled:
|
| ACCEPTED | varchar(3) | NO | Indicates whether the plan baseline is accepted:
|
| FIXED | varchar(3) | NO | Indicates whether the plan baseline is fixed:
|
| REPRODUCED | varchar(3) | NO | Indicates whether the plan baseline is reproducible:
|
| AUTOPURGE | varchar(3) | NO | Indicates whether the plan baseline is automatically purged:
|
| ADAPTIVE | varchar(3) | NO | Indicates whether the plan baseline captured by SPM is adaptive:
|
| OPTIMIZER_COST | bigint(20) | NO | The estimated plan cost calculated by the optimizer when the plan baseline was created. |
| MODULE | varchar(64) | NO | This column is not supported. The default value of this column is NULL. |
| ACTION | varchar(64) | NO | This column is not supported. The default value of this column is NULL. |
| EXECUTIONS | bigint(20) | NO | The number of times the plan was executed when the plan baseline was created. |
| ELAPSED_TIME | bigint(20) | NO | The total elapsed time of the plan when the plan baseline was created. |
| CPU_TIME | bigint(20) | NO | The total CPU time of the plan when the plan baseline was created. |
| BUFFER_GETS | bigint(0) | NO | This column is not supported. The default value of this column is NULL. |
| DISK_READS | bigint(0) | NO | This column is not supported. The default value of this column is NULL. |
| DIRECT_WRITES | bigint(0) | NO | This column is not supported. The default value of this column is NULL. |
| ROWS_PROCESSED | bigint(0) | NO | This column is not supported. The default value of this column is NULL. |
| FETCHES | bigint(0) | NO | This column is not supported. The default value of this column is NULL. |
| END_OF_FETCH_COUNT | bigint(0) | NO | This column is not supported. The default value of this column is NULL. |
References
For more information about the evolution mechanism of SPM, see Manage execution plans.
