Note
This view is available starting with V4.2.5.
Purpose
This view displays the SPM plan evolution information of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| OWNER | VARCHAR2(128) | YES | The user who executed 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 where the evolution task was executed. |
| SVR_PORT | NUMBER(38) | NO | The port number of the server where the evolution task was executed. |
| SQL_ID | VARCHAR2(32) | NO | The SQL ID of the evolution task. |
| TYPE | VARCHAR2(32) | NO | The type of the record.
|
| 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 | The status of the evolution task.
|
| NEW_PLAN_BETTER | NUMBER(38) | YES | Indicates whether the new plan is better. |
| EVO_PLAN_EXEC_COUNT | NUMBER(38) | YES | The number of times the new plan was executed during the evolution. |
| EVO_PLAN_CPU_TIME | NUMBER(38) | YES | The average CPU overhead of the new plan during the evolution. |
| BASELINE_EXEC_COUNT | NUMBER(38) | YES | The number of times the baseline plan was executed during the evolution. |
| BASELINE_CPU_TIME | NUMBER(38) | YES | The average CPU overhead of the baseline plan during the evolution. |
Sample query
Query 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
- For more information about the SPM evolution mechanism, see Manage execution plans.