Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: cost
A 10053 trace indicates that the NL plan was costed, but was
discarded. Sure sounds like a bug to me.
I'm not using the exact structure as Cary & Karen's, but I used the demobld script to create the table (I added the pk to the create table commands).
Here's the 10053 output (parts discarded for readability) :
>>>> Here the NL cost is calculated as 4. Sounds great, just what Karen has seen.
HA Join
Outer table:
resc: 2 cdn: 1 rcz: 11 deg: 1 resp: 2
Inner table: EMP
resc: 2 cdn: 14 rcz: 7 deg: 1 resp: 2
using join:8 distribution:2 #groups:1
Hash join one ptn Resc: 1 Deg: 1
hash_area: 2048 (max=2048) buildfrag: 2049 probefrag: 1 ppasses: 2Hash join Resc: 5 Resp: 5
>>>> Here the HA join is also costed correctly.
Best so far: TABLE#: 0 CST: 2 CDN: 1 BYTES: 11 Best so far: TABLE#: 1 CST: 5 CDN: 5 BYTES: 90
>>>> What happened to the NL join?
Index: PK_DEPT
TABLE: DEPT
RSC_CPU: 0 RSC_IO: 1
IX_SEL: 1.0000e+00 TB_SEL: 1.0000e+00
Join: resc: 16 resp: 16
Access path: index (eq-unique)
Index: PK_DEPT
TABLE: DEPT
RSC_CPU: 0 RSC_IO: 1
IX_SEL: 0.0000e+00 TB_SEL: 0.0000e+00
Join: resc: 16 resp: 16
Join cardinality: 5 = outer (14) * inner (1) * sel
(3.3333e-01) [flag=0]
Best NL cost: 16 resp: 16
HA Join
Outer table:
resc: 2 cdn: 14 rcz: 7 deg: 1 resp: 2
Inner table: DEPT
resc: 2 cdn: 1 rcz: 11 deg: 1 resp: 2
using join:8 distribution:2 #groups:1
Hash join one ptn Resc: 1 Deg: 1
hash_area: 2048 (max=2048) buildfrag: 2049 probefrag: 1 ppasses: 2Hash join Resc: 5 Resp: 5
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Mon Apr 05 2004 - 13:11:11 CDT
![]() |
![]() |