| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Intrepretation of 10053 trace
Thanks Christian, here is the full trace file.
Prakash
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
QUERY
explain plan for SELECT * FROM kmk.OUT_CLIENT_LOAD_GRP_ASGN_VIEW
HASH_AREA_SIZE = 81920 HASH_JOIN_ENABLED = TRUE HASH_MULTIBLOCK_IO_COUNT = 0 SORT_AREA_SIZE = 2097152
Column: CUST_STORE Col#: 2 Table: CUSTOMER Alias: CUSTOMER
NDV: 144906 NULLS: 0 DENS: 3.2507e-05
HEIGHT BALANCED HISTOGRAM: #BKT: 75 #VAL: 76
Column: CUST_ID Col#: 1 Table: CUSTOMER Alias: CUSTOMER
NDV: 115732 NULLS: 0 DENS: 2.6984e-04
HEIGHT BALANCED HISTOGRAM: #BKT: 75 #VAL: 75
-- Index stats
Column: STATUS_CD Col#: 1 Table: OUT_ORD_STAT Alias: OUT_ORD_STAT
NDV: 19 NULLS: 0 DENS: 5.2632e-02 LO: 1 HI: 99
NO HISTOGRAM: #BKT: 1 #VAL: 2
Column: STATUS_CD Col#: 4 Table: OUT_ORD_HDR Alias: OUT_ORD_HDR
NDV: 9 NULLS: 0 DENS: 1.7583e-06
FREQUENCY HISTOGRAM: #BKT: 284368 #VAL: 9
Column: CUST_ID Col#: 7 Table: OUT_ORD_HDR Alias: OUT_ORD_HDR
NDV: 16829 NULLS: 353 DENS: 6.9387e-04
HEIGHT BALANCED HISTOGRAM: #BKT: 75 #VAL: 76
Column: CUST_STORE Col#: 8 Table: OUT_ORD_HDR Alias: OUT_ORD_HDR
NDV: 19994 NULLS: 353 DENS: 6.5538e-04
HEIGHT BALANCED HISTOGRAM: #BKT: 75 #VAL: 76
Column: STATUS_CD Col#: 4 Table: OUT_ORD_HDR Alias: OUT_ORD_HDR
NDV: 9 NULLS: 0 DENS: 1.7583e-06
FREQUENCY HISTOGRAM: #BKT: 284368 #VAL: 9
Column: STATUS_CD Col#: 4 Table: OUT_ORD_HDR Alias: OUT_ORD_HDR
NDV: 9 NULLS: 0 DENS: 1.7583e-06
FREQUENCY HISTOGRAM: #BKT: 284368 #VAL: 9
Column: CUST_STORE Col#: 8 Table: OUT_ORD_HDR Alias: OUT_ORD_HDR
NDV: 19994 NULLS: 353 DENS: 6.5538e-04
HEIGHT BALANCED HISTOGRAM: #BKT: 75 #VAL: 76
Column: CUST_ID Col#: 7 Table: OUT_ORD_HDR Alias: OUT_ORD_HDR
NDV: 16829 NULLS: 353 DENS: 6.9387e-04
HEIGHT BALANCED HISTOGRAM: #BKT: 75 #VAL: 76
-- Index stats
INDEX NAME: OUT_ORD_HDR_AK_11 COL#: 20
TOTAL :: LVLS: 2 #LB: 657 #DK: 11 LB/K: 59 DB/K: 3854 CLUF: 42397
INDEX NAME: OUT_ORD_HDR_AK_13 COL#: 56 55
TOTAL :: LVLS: 2 #LB: 859 #DK: 47 LB/K: 18 DB/K: 4195 CLUF: 197193
INDEX NAME: OUT_ORD_HDR_AK_14 COL#: 27
TOTAL :: LVLS: 2 #LB: 591 #DK: 4 LB/K: 147 DB/K: 6532 CLUF: 26131
INDEX NAME: OUT_ORD_HDR_AK_15 COL#: 133
TOTAL :: LVLS: 2 #LB: 701 #DK: 4 LB/K: 175 DB/K: 6418 CLUF: 25675
INDEX NAME: OUT_ORD_HDR_AK_3 COL#: 7 8
TOTAL :: LVLS: 2 #LB: 1345 #DK: 22690 LB/K: 1 DB/K: 11 CLUF: 261074
INDEX NAME: OUT_ORD_HDR_AK_5 COL#: 5
Index: OUT_ORD_HDR_AK_8
TABLE: OUT_ORD_HDR
RSC_CPU: 0 RSC_IO: 211
IX_SEL: 8.4152e-03 TB_SEL: 8.4152e-03
BEST_CST: 211.00 PATH: 4 Degree: 1
Index: OUT_ORD_STAT_PK
TABLE: OUT_ORD_STAT
RSC_CPU: 0 RSC_IO: 2
IX_SEL: 6.0365e-01 TB_SEL: 6.0365e-01
BEST_CST: 2.00 PATH: 4 Degree: 1
Index: OUT_ORD_HDR_AK_8
TABLE: OUT_ORD_HDR
RSC_CPU: 0 RSC_IO: 4131
IX_SEL: 0.0000e+00 TB_SEL: 1.1111e-01
Join (ordered NL): resc: 45443 resp: 45443
Join cardinality: 2287 = outer (11) * inner (2393) * sel (8.3333e-02) [flag=0]
Best NL cost: 33915 resp: 33915
SM Join
Outer table:
resc: 2 cdn: 11 rcz: 11 deg: 1 resp: 2
Inner table: OUT_ORD_HDR
resc: 211 cdn: 2393 rcz: 365 deg: 1 resp: 211
using join:1 distribution:2 #groups:1
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 121 Row size: 412 Rows: 2393
Initial runs: 1 Merge passes: 1 IO Cost / pass: 148
Total IO sort cost: 134
Total CPU sort cost: 0
Total Temp space used: 0
hash_area: 10 (max=10) buildfrag: 11 probefrag: 111 pp
asses: 2
Index: CUSTOMER_PK
TABLE: CUSTOMER
RSC_CPU: 0 RSC_IO: 2
IX_SEL: 6.4128e-06 TB_SEL: 6.4128e-06
Join: resc: 4808 resp: 4808
Access path: index (eq-unique)
Index: CUSTOMER_PK
TABLE: CUSTOMER
RSC_CPU: 0 RSC_IO: 2
IX_SEL: 0.0000e+00 TB_SEL: 0.0000e+00
Join: resc: 4808 resp: 4808
Outer join cardinality: 2327 = max ( outer (2287) , (outer (2287) * inner (1559
39) * sel (6.5236e-06) ) [flag=16]
Using multi-column join key (card = 153290 sel = 2.7328e-09)
Best NL cost: 4808 resp: 4808
SM Join
Outer table:
resc: 234 cdn: 2287 rcz: 376 deg: 1 resp: 234
Inner table: CUSTOMER
resc: 570 cdn: 155939 rcz: 78 deg: 1 resp: 570
using join:1 distribution:2 #groups:1
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 119 Row size: 424 Rows: 2287
Initial runs: 1 Merge passes: 1 IO Cost / pass: 146
Total IO sort cost: 132
Total CPU sort cost: 0
Total Temp space used: 0
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 1833 Row size: 96 Rows: 155939
Initial runs: 11 Merge passes: 1 IO Cost / pass: 2121
Total IO sort cost: 1977
Total CPU sort cost: 0
Total Temp space used: 31564000
hash_area: 10 (max=10) buildfrag: 109 probefrag: 1714
ppasses: 11
Join result: cost: 2914 cdn: 2327 rcz: 454 Best so far: TABLE#: 0 CST: 2 CDN: 11 BYTES: 121 Best so far: TABLE#: 1 CST: 234 CDN: 2287 BYTES: 859912 Best so far: TABLE#: 2 CST: 2914 CDN: 2327 BYTES: 1056458 ***********************
Index: OUT_ORD_STAT_PK
TABLE: OUT_ORD_STAT
RSC_CPU: 0 RSC_IO: 1
IX_SEL: 9.0909e-02 TB_SEL: 9.0909e-02
Join (ordered NL): resc: 2604 resp: 2604
Access path: index (eq-unique)
Index: OUT_ORD_STAT_PK
TABLE: OUT_ORD_STAT
RSC_CPU: 0 RSC_IO: 1
IX_SEL: 0.0000e+00 TB_SEL: 0.0000e+00
Join (ordered NL): resc: 2604 resp: 2604
Join cardinality: 2287 = outer (2393) * inner (11) * sel (8.3333e-02) [flag=0]
Best NL cost: 2604 resp: 2604
SM Join
Outer table:
resc: 211 cdn: 2393 rcz: 365 deg: 1 resp: 211
Inner table: OUT_ORD_STAT
resc: 2 cdn: 11 rcz: 11 deg: 1 resp: 2
using join:1 distribution:2 #groups:1
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 1 Row size: 23 Rows: 11
Initial runs: 1 Merge passes: 1 IO Cost / pass: 10
Total IO sort cost: 6
Total CPU sort cost: 0
Total Temp space used: 0
hash_area: 10 (max=10) buildfrag: 111 probefrag: 1 ppa
sses: 12
hash_area: 10 (max=10) buildfrag: 11 probefrag: 111 pp
asses: 2
Index: CUSTOMER_PK
TABLE: CUSTOMER
RSC_CPU: 0 RSC_IO: 2
IX_SEL: 6.4128e-06 TB_SEL: 6.4128e-06
Join: resc: 4792 resp: 4792
Access path: index (eq-unique)
Index: CUSTOMER_PK
TABLE: CUSTOMER
RSC_CPU: 0 RSC_IO: 2
IX_SEL: 0.0000e+00 TB_SEL: 0.0000e+00
Join: resc: 4792 resp: 4792
Outer join cardinality: 2327 = max ( outer (2287) , (outer (2287) * inner (1559
39) * sel (6.5236e-06) ) [flag=16]
Using multi-column join key (card = 153290 sel = 2.7328e-09)
Best NL cost: 4793 resp: 4792
SM Join
Outer table:
resc: 218 cdn: 2287 rcz: 376 deg: 1 resp: 218
Inner table: CUSTOMER
resc: 570 cdn: 155939 rcz: 78 deg: 1 resp: 570
using join:1 distribution:2 #groups:1
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 119 Row size: 424 Rows: 2287
Initial runs: 1 Merge passes: 1 IO Cost / pass: 146
Total IO sort cost: 132
Total CPU sort cost: 0
Total Temp space used: 0
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 1833 Row size: 96 Rows: 155939
Initial runs: 11 Merge passes: 1 IO Cost / pass: 2121
Total IO sort cost: 1977
Total CPU sort cost: 0
Total Temp space used: 31564000
HA Join
Outer table:
resc: 218 cdn: 2287 rcz: 376 deg: 1 resp: 218
Inner table: CUSTOMER
resc: 570 cdn: 155939 rcz: 78 deg: 1 resp: 570
using join:8 distribution:2 #groups:1
Hash join one ptn Resc: 12334 Deg: 1
hash_area: 10 (max=10) buildfrag: 109 probefrag: 1714
ppasses: 11
Join result: cost: 2898 cdn: 2327 rcz: 454 Best so far: TABLE#: 1 CST: 211 CDN: 2393 BYTES: 873445 Best so far: TABLE#: 0 CST: 219 CDN: 2287 BYTES: 859912 Best so far: TABLE#: 2 CST: 2898 CDN: 2327 BYTES: 1056458 ***********************
Index: CUSTOMER_PK
TABLE: CUSTOMER
RSC_CPU: 0 RSC_IO: 2
IX_SEL: 6.4128e-06 TB_SEL: 6.4128e-06
Join: resc: 4997 resp: 4997
Access path: index (eq-unique)
Index: CUSTOMER_PK
TABLE: CUSTOMER
RSC_CPU: 0 RSC_IO: 2
IX_SEL: 0.0000e+00 TB_SEL: 0.0000e+00
Join: resc: 4997 resp: 4997
Outer join cardinality: 2434 = max ( outer (2393) , (outer (2393) * inner (1559
39) * sel (6.5236e-06) ) [flag=16]
Using multi-column join key (card = 153290 sel = 2.7328e-09)
Best NL cost: 4997 resp: 4997
SM Join
Outer table:
resc: 211 cdn: 2393 rcz: 365 deg: 1 resp: 211
Inner table: CUSTOMER
resc: 570 cdn: 155939 rcz: 78 deg: 1 resp: 570
using join:1 distribution:2 #groups:1
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 121 Row size: 412 Rows: 2393
Initial runs: 1 Merge passes: 1 IO Cost / pass: 148
Total IO sort cost: 134
Total CPU sort cost: 0
Total Temp space used: 0
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 1833 Row size: 96 Rows: 155939
Initial runs: 11 Merge passes: 1 IO Cost / pass: 2121
Total IO sort cost: 1977
Total CPU sort cost: 0
Total Temp space used: 31564000
hash_area: 10 (max=10) buildfrag: 111 probefrag: 1714
ppasses: 12
Outer table: cost: 2893 cdn: 2434 rcz: 443 resp: 2892
Inner table: OUT_ORD_STAT
Access path: tsc Resc: 2
Join: Resc: 7760 Resp: 7760
Access path: index (unique)
Index: OUT_ORD_STAT_PK
TABLE: OUT_ORD_STAT
RSC_CPU: 0 RSC_IO: 1
IX_SEL: 9.0909e-02 TB_SEL: 9.0909e-02
Join: resc: 5326 resp: 5326
Access path: index (eq-unique)
Index: OUT_ORD_STAT_PK
TABLE: OUT_ORD_STAT
RSC_CPU: 0 RSC_IO: 1
IX_SEL: 0.0000e+00 TB_SEL: 0.0000e+00
Join: resc: 5326 resp: 5326
Join cardinality: 2327 = outer (2434) * inner (11) * sel (8.3333e-02) [flag=0]
Best NL cost: 5327 resp: 5326
SM Join
Outer table:
resc: 2892 cdn: 2434 rcz: 443 deg: 1 resp: 2892
Inner table: OUT_ORD_STAT
resc: 2 cdn: 11 rcz: 11 deg: 1 resp: 2
using join:1 distribution:2 #groups:1
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 149 Row size: 498 Rows: 2434
Initial runs: 1 Merge passes: 1 IO Cost / pass: 176
Total IO sort cost: 162
Total CPU sort cost: 0
Total Temp space used: 0
SORT resource Sort statistics
Sort width: 58 Area size: 1425408 Max Area size: 1425408
Degree: 1
Blocks to Sort: 1 Row size: 23 Rows: 11
Initial runs: 1 Merge passes: 1 IO Cost / pass: 10
Total IO sort cost: 6
Total CPU sort cost: 0
Total Temp space used: 0
hash_area: 10 (max=10) buildfrag: 136 probefrag: 1 ppa
sses: 14
hash_area: 10 (max=10) buildfrag: 11 probefrag: 136 pp
asses: 2
SELECT STATEMENT 0 MERGE JOIN OUTER 1 SORT JOIN 2 1 MERGE JOIN 3 2 TABLE ACCESS OUT_ORD_HDR BY INDEX ROWID 4 3 INDEX OUT_ORD_HDR_AK_8RANGE SCAN 5 4 SORT JOIN 6 3 TABLE ACCESS OUT_ORD_STAT BY INDEX ROWID 7 6 INDEX OUT_ORD_STAT_PK8RANGE SCAN 8 7 SORT JOIN 9 1 TABLE ACCESS CUSTOMER FULL 10 9Received on Wed Sep 22 2004 - 18:06:14 CDT
![]() |
![]() |