Note
This view is available starting with V4.0.0.
Purpose
This view displays the SQL 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 text of the SQL statement. |
| SQL_TEXT | longtext | NO | The text of the SQL statement that is not normalized. |
| PLAN_NAME | varchar(128) | NO | The unique text of the plan identifier. |
| CREATOR | varchar(128) | NO | The user who created the SQL plan baseline. |
| ORIGIN | varchar(29) | NO | The method used to create the SQL plan baseline. Valid values: |
| PARSING_SCHEMA_NAME | varchar(128) | NO | This column is not supported and is set to NULL by default. |
| DESCRIPTION | varchar(500) | YES | The description of the SQL plan baseline. |
| VERSION | varchar(256) | NO | The database version when the SQL plan baseline was created. |
| CREATED | timestamp(6) | YES | The time when the SQL plan baseline was created. |
| LAST_MODIFIED | timestamp(6) | YES | The last modified time of the SQL plan baseline. |
| LAST_EXECUTED | bigint(20) | NO | The last execution time of the SQL plan baseline. |
| LAST_VERIFIED | bigint(20) | NO | The last verification time of the SQL plan baseline. |
| ENABLED | varchar(3) | NO | Indicates whether the SQL plan baseline is enabled. Valid values: |
| ACCEPTED | varchar(3) | NO | Indicates whether the SQL plan baseline is accepted. Valid values: |
| FIXED | varchar(3) | NO | Indicates whether the SQL plan baseline is fixed. Valid values: |
| REPRODUCED | varchar(3) | NO | Indicates whether the SQL plan baseline is reproducible. Valid values: |
| AUTOPURGE | varchar(3) | NO | Indicates whether the SQL plan baseline is automatically purged. Valid values: |
| ADAPTIVE | varchar(3) | NO | Indicates whether the SQL plan baseline captured automatically by SPM is adaptive. Valid values: |
| OPTIMIZER_COST | bigint(20) | NO | The estimated plan cost calculated by the optimizer when the SQL plan baseline was created. |
| MODULE | varchar(64) | NO | This column is not supported and is set to NULL by default. |
| ACTION | varchar(64) | NO | This column is not supported and is set to NULL by default. |
| EXECUTIONS | bigint(20) | NO | The number of times the plan was executed when the SQL plan baseline was created. |
| ELAPSED_TIME | bigint(20) | NO | The total time consumed by the plan when the SQL plan baseline was created. |
| CPU_TIME | bigint(20) | NO | The total CPU time consumed by the plan when the SQL plan baseline was created. |
| BUFFER_GETS | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| DISK_READS | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| DIRECT_WRITES | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| ROWS_PROCESSED | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| FETCHES | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| END_OF_FETCH_COUNT | bigint(0) | NO | This column is not supported and is set to NULL by default. |
References
For more information about the evolution mechanism of SPM, see Manage execution plans.