Note
This view is available starting with V4.2.5.
Overview
Displays the SPM plan evolution information for the current tenant.
Columns
Field |
Type |
Is NULL |
Description |
|---|---|---|---|
| OWNER | VARCHAR2(128) | YES | The user who executes the evolution task. |
| RECORD_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The time when the evolution result was recorded. |
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server that executes the evolution task. |
| SVR_PORT | NUMBER(38) | NO | The server port for executing the evolution task. |
| SQL_ID | VARCHAR2(32) | NO | SQL ID for executing the evolution task. |
| TYPE | VARCHAR2(32) | NO | Record type:
|
| START_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | YES | The start time of the evolution task. |
| END_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | YES | The end time of the evolution task. |
| STATUS | VARCHAR2(7) | YES | Evolution task status:
|
| NEW_PLAN_BETTER | NUMBER(38) | YES | Whether the evolution plan is better. |
| EVO_PLAN_EXEC_COUNT | NUMBER(38) | YES | The number of times the evolution plan is executed during the evolution. |
| EVO_PLAN_CPU_TIME | NUMBER(38) | YES | The average CPU cost of the evolution plan during evolution. |
| BASELINE_EXEC_COUNT | NUMBER(38) | YES | Number of times the baseline plan is executed during the evolution period. |
| BASELINE_CPU_TIME | NUMBER(38) | YES | The average CPU overhead of the baseline plan during evolution. |
Sample query
View the SPM plan evolution information of the current tenant.
obclient[SYS]> SELECT * FROM SYS.DBA_OB_SPM_EVO_RESULT;
The query result is as follows:
+-------+------------------------------+----------------+----------+----------------------------------+---------------+------------+----------+--------+-----------------+---------------------+-------------------+---------------------+-------------------+
| OWNER | RECORD_TIME | SVR_IP | SVR_PORT | SQL_ID | TYPE | START_TIME | END_TIME | STATUS | NEW_PLAN_BETTER | EVO_PLAN_EXEC_COUNT | EVO_PLAN_CPU_TIME | BASELINE_EXEC_COUNT | BASELINE_CPU_TIME |
+-------+------------------------------+----------------+----------+----------------------------------+---------------+------------+----------+--------+-----------------+---------------------+-------------------+---------------------+-------------------+
| SYS | 28-APR-25 11.13.20.903304 AM | 172.xx.xxx.xxx | 2882 | 8C941B5BD7CCC34C7863313721B1D9C3 | FirstBaseline | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
| SYS | 28-APR-25 11.10.19.055905 AM | 172.xx.xxx.xxx | 2882 | 11864626B019515747DD829035EF8426 | FirstBaseline | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
| SYS | 28-APR-25 11.09.39.169884 AM | 172.xx.xxx.xxx | 2882 | 2943FEB983545F127755C2B040B7CB84 | FirstBaseline | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
| SYS | 28-APR-25 11.09.22.291492 AM | 172.xx.xxx.xxx | 2882 | 9400CF67EC02C0E2CA1D5A86C46D3D2B | FirstBaseline | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
| SYS | 28-APR-25 11.06.23.377435 AM | 172.xx.xxx.xxx | 2882 | EC1A0D99610183DBBD97846555275708 | FirstBaseline | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
+-------+------------------------------+----------------+----------+----------------------------------+---------------+------------+----------+--------+-----------------+---------------------+-------------------+---------------------+-------------------+
5 rows in set
References
View the configuration parameters in the SPM of the current tenant: DBA_SQL_MANAGEMENT_CONFIG
View the plan baseline of SQL statements in the SPM of the current tenant: DBA_SQL_PLAN_BASELINES
For more information about the SPM evolution mechanism, see Execution plan management.
