1
|
Plan hash value: 6178145
|
2
|
Plan hash value: 2354817963
|
3
|
Plan hash value: 3990363694
|
dbid
|
snap_id
|
instance_number
|
begin_interval_time
|
end_interval_time
|
19948XXXX2
|
33676
|
1
|
05-8月 -13 09.00.09.903
|
05-8月 -13 09.30.10.113
|
19948XXXX2
|
33676
|
2
|
05-8月 -13 09.00.09.786
|
05-8月 -13 09.30.10.502
|
SQL_ID bj75p9188y410
|
--------------------
|
select * from ( select distinct b.XXXX_id as
|
…… (为了信息脱敏,真实语句在此省略)
|
,'NLS_SORT=SCHINESE_XXXX'),b.XXXX_name ) where rownum <= :1
|
|
Plan hash value: 3990363694
|
---------------------------------------------------------------------------------------------------------------------
|
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
|
---------------------------------------------------------------------------------------------------------------------
|
| 0 | SELECT STATEMENT | | | | 315 (100)| |
|
| 1 | COUNT STOPKEY | | | | | |
|
| 2 | VIEW | | 1 | 180 | 315 (2)| 00:00:29 |
|
| 3 | SORT ORDER BY STOPKEY | | 1 | 151 | 315 (2)| 00:00:29 |
|
| 4 | HASH UNIQUE | | 1 | 151 | 314 (1)| 00:00:29 |
|
| 5 | FILTER | | | | | |
|
| 6 | NESTED LOOPS OUTER | | 1 | 151 | 313 (1)| 00:00:29 |
|
| 7 | NESTED LOOPS | | 1 | 86 | 35 (0)| 00:00:04 |
|
| 8 | TABLE ACCESS BY INDEX ROWID | LB_T_XXXX_PROVIDER | 1 | 61 | 34 (0)| 00:00:04 |
|
| 9 | INDEX RANGE SCAN | IDX_LB_T_XXXX_PROVIDER_003 | 183 | | 3 (0)| 00:00:01 |
|
| 10 | TABLE ACCESS BY INDEX ROWID | LA_XXXX | 1 | 25 | 1 (0)| 00:00:01 |
|
| 11 | INDEX UNIQUE SCAN | PK_LA_XXXX | 1 | | 0 (0)| |
|
| 12 | VIEW PUSHED PREDICATE | LB_T_XXXX | 1 | 65 | 278 (1)| 00:00:26 |
|
| 13 | MERGE JOIN OUTER | | 1 | 64 | 278 (1)| 00:00:26 |
|
| 14 | TABLE ACCESS BY INDEX ROWID| XXXX_SUPPLIER | 1 | 45 | 146 (0)| 00:00:14 |
|
| 15 | INDEX FULL SCAN | PK_XXX_SUPPLIER | 1 | | 145 (0)| 00:00:14 |
|
| 16 | SORT JOIN | | 17998 | 333K| 132 (2)| 00:00:12 |
|
| 17 | VIEW | | 17998 | 333K| 131 (1)| 00:00:12 |
|
| 18 | SORT GROUP BY | | 17998 | 544K| 131 (1)| 00:00:12 |
|
| 19 | TABLE ACCESS FULL | XXXX_SUPPLIER_CONTACT | 30058 | 909K| 130 (0)| 00:00:12 |
|
---------------------------------------------------------------------------------------------------------------------
|
其实还有一种方法:使用awrsqrpi.sql和awrsqrpt.sql可以做到,该方法不在本文论坛之列。
本文作者:黎俊杰(网名:踩点),从事”系统架构、操作系统、存储设备、数据库、中间件、应用程序“六个层面系统性的性能优化工作
欢迎加入系统性能优化专业群,共同探讨性能优化技术。群号:258187244