Execute 1 0.00 0.08 0 0 0 0
Fetch 2 6.18 14.13 60055 79304 28 3
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 8.14 18.20 60055 79319 28 3
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
PGA memory operation 1926 0.00 0.07
acknowledge over PGA limit 536 0.02 6.11
SQL*Net message to client 2 0.00 0.00
Disk file operations I/O 8 0.00 0.01
direct path read 93 0.00 0.25
direct path write temp 128 0.04 1.02
direct path read temp 135 0.01 0.48
SQL*Net message from client 2 10.10 10.11
No significant long elapsed time of all Row Source Operation steps:
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
3 3 3 TABLE ACCESS BY INDEX ROWID <TABLE NAME> (cr=11 pr=0 pw=0 time=3 us cost=3 size=18
card=1)
3 3 3 INDEX UNIQUE SCAN <INDEX NAME> (cr=8 pr=0 pw=0 time=3 us cost=2 size=0 card=1)
(object id 302050)
2 2 2 TABLE ACCESS BY INDEX ROWID <TABLE NAME>(cr=34 pr=0 pw=0 time=3 us cost=1 size=7
card=1)
2 2 2 INDEX UNIQUE SCAN <INDEX NAME> (cr=32 pr=0 pw=0 time=3 us cost=0 size=0 card=1)
(object id 301973)
3 3 3 SORT AGGREGATE (cr=30 pr=0 pw=0 time=3 us)
2 2 2 NESTED LOOPS (cr=30 pr=0 pw=0 time=3 us cost=14 size=34 card=1)
2 2 2 NESTED LOOPS (cr=28 pr=0 pw=0 time=3 us cost=14 size=34 card=1)
... ...
47 47 47 VIEW <VIEW_NAME> (cr=60280 pr=60055 pw=7090 time=1 us cost=29080
size=15826944 card=989184)
47 47 47 HASH GROUP BY (cr=60280 pr=60055 pw=7090 time=1 us cost=29080 size=39567360
card=989184)
47 47 47 JOIN FILTER USE :BF0005 (cr=60280 pr=60055 pw=7090 time=1 us cost=29080
size=39763600 card=994090)
994091 994091 994091 MERGE JOIN (cr=60280 pr=60055 pw=7090 time=1 us cost=29080
size=39763600 card=994090)
994091 994091 994091 SORT JOIN (cr=7311 pr=0 pw=0 time=1 us cost=7901 size=18887729
card=994091)
994091 994091 994091 TABLE ACCESS FULL <TABLE NAME> (cr=7311 pr=0 pw=0 time=1 us
cost=2017 size=18887729 card=994091)
994091 994091 994091 SORT JOIN (cr=52969 pr=60055 pw=7090 time=994091 us cost=21179
size=21506835 card=1024135)
1024227 1024227 1024227 TABLE ACCESS FULL <TABLE NAME> (cr=52969 pr=52965 pw=0 time=1
us cost=14538 size=21506835 card=1024135)
SQL performance has not been improved, after alter parameter pga_aggregate_limit to 0, which made waiting events
"acknowledge over PGA limit" disappear. From the following 10046 events trace file, almost all time is spent on CPU
during Fetch phase. Wait events "PGA memory operation" still happens frequently although it seems not to take time.
And, there is still no significant long elapsed time of all Row Source Operation steps.
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
3 3 3 TABLE ACCESS BY INDEX ROWID <TABLE NAME> (cr=11 pr=0 pw=0 time=3 us cost=3 size=18
card=1)
3 3 3 INDEX UNIQUE SCAN <INDEX NAME> (cr=8 pr=0 pw=0 time=3 us cost=2 size=0 card=1)
评论