Go Back   Rhinocerus > Newsgroup > Newsgroup comp.databases.oracle.server

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-03-2009, 02:29 PM
lsllcm
Guest
 
Posts: n/a
Default performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

Hi All,

I have one performance issue after upgrade to oracle 11.2.0.1 linux 32
bit.

The optimizer always choose index of "order by column", not use index
of "where clause columns". Any comments are appreciated.

Below are three test cases:

Case 1: TEST on 11.2.0.1 DBs with ORDER BY ORDER BY gf_fee_apply_date
Result: Choose incorrect execution plan.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

SQL> set autotrace trace
SQL> set timing on
SQL>
SQL> variable spc varchar2(15);
SQL> variable bfd varchar2(40);
SQL> variable efd varchar2(40);
SQL> variable p1 varchar2(60);
SQL> exec :spc:='SACRAMENTO';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> exec :bfd:='2005-12-05';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.01
SQL> exec :efd:='2008-12-04 23:59:59';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> exec 1:='SET07%'

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL>
SQL> SELECT xfi.serv_prov_code,
2 xfi.b1_per_id1,
3 xfi.b1_per_id2,
4 xfi.b1_per_id3,
5 xfi.feeitem_seq_nbr,
6 xfi.invoice_nbr,
7 xfi.gf_fee_period,
8 xfi.gf_fee,
9 xfi.gf_des,
10 xfi.gf_unit,
11 xfi.gf_udes,
12 finv.invoice_date AS gf_fee_apply_date,
13 xfi.feeitem_invoice_status,
14 xfi.gf_l1,
15 xfi.gf_l2,
16 xfi.gf_l3,
17 xfi.x4feeitem_invoice_udf1,
18 xfi.x4feeitem_invoice_udf2,
19 xfi.x4feeitem_invoice_udf3,
20 xfi.x4feeitem_invoice_udf4,
21 xfi.gf_fee_schedule,
22 xfi.fee_schedule_version,
23 xfi.rec_date,
24 xfi.rec_ful_nam,
25 xfi.rec_status,
26 f4.GF_COD,
27 f4.GF_PRIORITY
28 FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
F4FEEITEM f4
29 WHERE sd.serv_prov_code = xfi.serv_prov_code
30 AND sd.b1_per_id1 = xfi.b1_per_id1
31 AND sd.b1_per_id2 = xfi.b1_per_id2
32 AND sd.b1_per_id3 = xfi.b1_per_id3
33 AND xfi.serv_prov_code = f4.serv_prov_code
34 AND xfi.b1_per_id1 = f4.b1_per_id1
35 AND xfi.b1_per_id2 = f4.b1_per_id2
36 AND xfi.b1_per_id3 = f4.b1_per_id3
37 And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
38 AND finv.serv_prov_code = xfi.serv_prov_code
39 AND finv.invoice_nbr = xfi.invoice_nbr
40 AND sd.serv_prov_code = :spc
41 AND upper(sd.set_id) = 1
42 AND xfi.rec_status = 'A'
43 AND xfi.feeitem_invoice_status = 'INVOICED'
44 ORDER BY gf_fee_apply_date
45 /

no rows selected

Elapsed: 00:02:15.28

Execution Plan
----------------------------------------------------------
Plan hash value: 3748720781

--------------------------------------------------------------------------------
----------------------------

| Id | Operation | Name |
Rows | Byt
es | Cost (%CPU)| Time |

--------------------------------------------------------------------------------
----------------------------

| 0 | SELECT STATEMENT | |
103 | 242
05 | 9 (0)| 00:00:01 |

| 1 | NESTED LOOPS |
| |
| | |

| 2 | NESTED LOOPS | |
103 | 242
05 | 9 (0)| 00:00:01 |

| 3 | NESTED LOOPS |
| 3 | 5
79 | 8 (0)| 00:00:01 |

| 4 | NESTED LOOPS |
| 39 | 60
45 | 4 (0)| 00:00:01 |

| 5 | TABLE ACCESS BY INDEX ROWID| F4INVOICE |
60771 | 14
24K| 1 (0)| 00:00:01 |

|* 6 | INDEX RANGE SCAN | F4INVOICE_DATE_IX
| 27 |
| 1 (0)| 00:00:01 |

|* 7 | TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE
| 1 | 1
31 | 1 (0)| 00:00:01 |

|* 8 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_NBR_IX
| 1 |
| 1 (0)| 00:00:01 |

|* 9 | TABLE ACCESS BY INDEX ROWID | SETDETAILS
| 1 |
38 | 1 (0)| 00:00:01 |

|* 10 | INDEX RANGE SCAN | SETDETAILS_PID_IX
| 1 |
| 1 (0)| 00:00:01 |

|* 11 | INDEX UNIQUE SCAN | F4FEEITEM_PK
| 1 |
| 1 (0)| 00:00:01 |

| 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM
| 34 | 14
28 | 1 (0)| 00:00:01 |

--------------------------------------------------------------------------------
----------------------------


Predicate Information (identified by operation id):
---------------------------------------------------

6 - access("FINV"."SERV_PROV_CODE"=:SPC)
7 - filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
"XFI"."REC_STATUS"='
A')

8 - access("XFI"."SERV_PROV_CODE"=:SPC AND
"FINV"."INVOICE_NBR"="XFI"."INVOIC
E_NBR")

9 - filter(UPPER("SET_ID")=:P1)
10 - access("SD"."SERV_PROV_CODE"=:SPC AND
"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1
" AND

"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
"SD"."B1_PER_ID3"="XFI"."
B1_PER_ID3")

11 - access("F4"."SERV_PROV_CODE"=:SPC AND
"XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
" AND

"XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
"XFI"."B1_PER_ID3"="F4"."
B1_PER_ID3" AND

"XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )


Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
2891740 consistent gets
25708 physical reads
0 redo size
1763 bytes sent via SQL*Net to client
380 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
0 rows processed
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release
11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

2. Case 2: test on 11.2.0.1 without ORDER BY ORDER BY
gf_fee_apply_date
Result: Choose correct execution plan.

C:\>sqlplus accela/dbs@dbs26 @e:\tools\sql\test.sql

SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 31 13:40:08 2009

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

SQL> set autotrace trace
SQL> set timing on
SQL>
SQL> variable spc varchar2(15);
SQL> variable bfd varchar2(40);
SQL> variable efd varchar2(40);
SQL> variable p1 varchar2(60);
SQL> exec :spc:='SACRAMENTO';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> exec :bfd:='2005-12-05';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> exec :efd:='2008-12-04 23:59:59';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> exec 1:='SET07%'

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL>
SQL> SELECT xfi.serv_prov_code,
2 xfi.b1_per_id1,
3 xfi.b1_per_id2,
4 xfi.b1_per_id3,
5 xfi.feeitem_seq_nbr,
6 xfi.invoice_nbr,
7 xfi.gf_fee_period,
8 xfi.gf_fee,
9 xfi.gf_des,
10 xfi.gf_unit,
11 xfi.gf_udes,
12 finv.invoice_date AS gf_fee_apply_date,
13 xfi.feeitem_invoice_status,
14 xfi.gf_l1,
15 xfi.gf_l2,
16 xfi.gf_l3,
17 xfi.x4feeitem_invoice_udf1,
18 xfi.x4feeitem_invoice_udf2,
19 xfi.x4feeitem_invoice_udf3,
20 xfi.x4feeitem_invoice_udf4,
21 xfi.gf_fee_schedule,
22 xfi.fee_schedule_version,
23 xfi.rec_date,
24 xfi.rec_ful_nam,
25 xfi.rec_status,
26 f4.GF_COD,
27 f4.GF_PRIORITY
28 FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
F4FEEITEM f4
29 WHERE sd.serv_prov_code = xfi.serv_prov_code
30 AND sd.b1_per_id1 = xfi.b1_per_id1
31 AND sd.b1_per_id2 = xfi.b1_per_id2
32 AND sd.b1_per_id3 = xfi.b1_per_id3
33 AND xfi.serv_prov_code = f4.serv_prov_code
34 AND xfi.b1_per_id1 = f4.b1_per_id1
35 AND xfi.b1_per_id2 = f4.b1_per_id2
36 AND xfi.b1_per_id3 = f4.b1_per_id3
37 And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
38 AND finv.serv_prov_code = xfi.serv_prov_code
39 AND finv.invoice_nbr = xfi.invoice_nbr
40 AND sd.serv_prov_code = :spc
41 AND upper(sd.set_id) = 1
42 AND xfi.rec_status = 'A'
43 AND xfi.feeitem_invoice_status = 'INVOICED'
44 -- ORDER BY gf_fee_apply_date
45 /

no rows selected

Elapsed: 00:00:00.06

Execution Plan
----------------------------------------------------------
Plan hash value: 1421766072

--------------------------------------------------------------------------------
----------------------------

| Id | Operation | Name |
Rows | Byt
es | Cost (%CPU)| Time |

--------------------------------------------------------------------------------
----------------------------

| 0 | SELECT STATEMENT | |
101 | 369
66 | 5 (20)| 00:00:01 |

| 1 | NESTED LOOPS |
| |
| | |

| 2 | NESTED LOOPS | |
101 | 369
66 | 5 (20)| 00:00:01 |

| 3 | NESTED LOOPS |
| 3 | 9
72 | 4 (25)| 00:00:01 |

|* 4 | HASH JOIN |
| 3 | 9
00 | 3 (34)| 00:00:01 |

| 5 | TABLE ACCESS BY INDEX ROWID| SETDETAILS |
107 | 40
66 | 1 (0)| 00:00:01 |

|* 6 | INDEX RANGE SCAN | SETDETAILS_SETID_IX |
107 |
| 1 (0)| 00:00:01 |

|* 7 | TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE |
2680 | 3
42K| 1 (0)| 00:00:01 |

|* 8 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_NBR_IX |
255K|
| 1 (0)| 00:00:01 |

| 9 | TABLE ACCESS BY INDEX ROWID | F4INVOICE
| 1 |
24 | 1 (0)| 00:00:01 |

|* 10 | INDEX UNIQUE SCAN | F4INVOICE_PK
| 1 |
| 1 (0)| 00:00:01 |

|* 11 | INDEX UNIQUE SCAN | F4FEEITEM_PK
| 1 |
| 1 (0)| 00:00:01 |

| 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM
| 34 | 14
28 | 1 (0)| 00:00:01 |

--------------------------------------------------------------------------------
----------------------------


Predicate Information (identified by operation id):
---------------------------------------------------

4 - access("SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE " AND
"SD"."B1_PER_ID1"
="XFI"."B1_PER_ID1"

AND "SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
"SD"."B1_PER_ID3"="XF
I"."B1_PER_ID3")

6 - access("SD"."SERV_PROV_CODE"=:SPC AND UPPER("SET_ID")=:P1)
7 - filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
"XFI"."REC_STATUS"='
A')

8 - access("XFI"."SERV_PROV_CODE"=:SPC)
10 - access("FINV"."SERV_PROV_CODE"=:SPC AND
"FINV"."INVOICE_NBR"="XFI"."INVOI
CE_NBR")

11 - access("F4"."SERV_PROV_CODE"=:SPC AND
"XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
" AND

"XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
"XFI"."B1_PER_ID3"="F4"."
B1_PER_ID3" AND

"XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )


Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
3 consistent gets
3 physical reads
0 redo size
1763 bytes sent via SQL*Net to client
380 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
0 rows processed

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release
11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

C:\>


3. Case 3: TEST on 11.1.0.6/10.2.0.4 DBs
Result: Choose correct execution plan.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

SQL> set autotrace trace
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is
enabled
SP2-0611: Error enabling STATISTICS report
SQL> set timing on
SQL>
SQL> variable spc varchar2(15);
SQL> variable bfd varchar2(40);
SQL> variable efd varchar2(40);
SQL> variable p1 varchar2(60);
SQL> exec :spc:='SACRAMENTO';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.01
SQL> exec :bfd:='2005-12-05';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> exec :efd:='2008-12-04 23:59:59';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.01
SQL> exec 1:='SET07%'

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL>
SQL> SELECT xfi.serv_prov_code,
2 xfi.b1_per_id1,
3 xfi.b1_per_id2,
4 xfi.b1_per_id3,
5 xfi.feeitem_seq_nbr,
6 xfi.invoice_nbr,
7 xfi.gf_fee_period,
8 xfi.gf_fee,
9 xfi.gf_des,
10 xfi.gf_unit,
11 xfi.gf_udes,
12 finv.invoice_date AS gf_fee_apply_date,
13 xfi.feeitem_invoice_status,
14 xfi.gf_l1,
15 xfi.gf_l2,
16 xfi.gf_l3,
17 xfi.x4feeitem_invoice_udf1,
18 xfi.x4feeitem_invoice_udf2,
19 xfi.x4feeitem_invoice_udf3,
20 xfi.x4feeitem_invoice_udf4,
21 xfi.gf_fee_schedule,
22 xfi.fee_schedule_version,
23 xfi.rec_date,
24 xfi.rec_ful_nam,
25 xfi.rec_status,
26 f4.GF_COD,
27 f4.GF_PRIORITY
28 FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
F4FEEITEM f4
29 WHERE sd.serv_prov_code = xfi.serv_prov_code
30 AND sd.b1_per_id1 = xfi.b1_per_id1
31 AND sd.b1_per_id2 = xfi.b1_per_id2
32 AND sd.b1_per_id3 = xfi.b1_per_id3
33 AND xfi.serv_prov_code = f4.serv_prov_code
34 AND xfi.b1_per_id1 = f4.b1_per_id1
35 AND xfi.b1_per_id2 = f4.b1_per_id2
36 AND xfi.b1_per_id3 = f4.b1_per_id3
37 And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
38 AND finv.serv_prov_code = xfi.serv_prov_code
39 AND finv.invoice_nbr = xfi.invoice_nbr
40 AND sd.serv_prov_code = :spc
41 AND upper(sd.set_id) = 1
42 AND xfi.rec_status = 'A'
43 AND xfi.feeitem_invoice_status = 'INVOICED'
44 ORDER BY gf_fee_apply_date
45 /
Elapsed: 00:00:00.51

Execution Plan
----------------------------------------------------------
Plan hash value: 2996231674

--------------------------------------------------------------------------------
-------------------------

| Id | Operation | Name |
Rows | Bytes
| Cost (%CPU)| Time |

--------------------------------------------------------------------------------
-------------------------

| 0 | SELECT STATEMENT | |
417 | 90072
| 16 (13)| 00:00:01 |

| 1 | SORT ORDER BY | |
417 | 90072
| 16 (13)| 00:00:01 |

|* 2 | HASH JOIN | |
417 | 90072
| 15 (7)| 00:00:01 |

| 3 | NESTED LOOPS |
| |
| | |

| 4 | NESTED LOOPS | |
29 | 5626
| 11 (0)| 00:00:01 |

| 5 | NESTED LOOPS | |
3 | 441
| 8 (0)| 00:00:01 |

| 6 | TABLE ACCESS BY INDEX ROWID| SETDETAILS |
3 | 105
| 2 (0)| 00:00:01 |

|* 7 | INDEX RANGE SCAN | SETDETAILS_SETID_IX |
3 |
| 1 (0)| 00:00:01 |

|* 8 | TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE |
1 | 112
| 2 (0)| 00:00:01 |

|* 9 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_PK |
1 |
| 1 (0)| 00:00:01 |

|* 10 | INDEX UNIQUE SCAN | F4FEEITEM_PK |
1 |
| 0 (0)| 00:00:01 |

| 11 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM |
10 | 470
| 1 (0)| 00:00:01 |

| 12 | TABLE ACCESS BY INDEX ROWID | F4INVOICE |
9453 | 203K
| 3 (0)| 00:00:01 |

|* 13 | INDEX RANGE SCAN | F4INVOICE_DATE_IX |
9453 |
| 2 (0)| 00:00:01 |

--------------------------------------------------------------------------------
-------------------------


Predicate Information (identified by operation id):
---------------------------------------------------

2 - access("FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE" AND
"FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR")
7 - access("SD"."SERV_PROV_CODE"=:SPC AND UPPER("SET_ID")=:P1)
8 - filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
"XFI"."REC_STATUS"='
A')

9 - access("XFI"."SERV_PROV_CODE"=:SPC AND
"SD"."B1_PER_ID1"="XFI"."B1_PER_ID
1" AND

"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
"SD"."B1_PER_ID3"="XFI"."
B1_PER_ID3")

10 - access("F4"."SERV_PROV_CODE"=:SPC AND
"XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
" AND

"XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
"XFI"."B1_PER_ID3"="F4"."
B1_PER_ID3" AND

"XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )
13 - access("FINV"."SERV_PROV_CODE"=:SPC)

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release
11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 11-03-2009, 02:58 PM
ddf
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

On Nov 3, 9:29*am, lsllcm <lsl...@gmail.com> wrote:
> Hi All,
>
> I have one performance issue after upgrade to oracle 11.2.0.1 linux 32
> bit.
>
> The optimizer always choose index of "order by column", not use index
> of "where clause columns". Any comments are appreciated.
>
> Below are three test cases:
>
> Case 1: TEST on 11.2.0.1 DBs with ORDER BY ORDER BY gf_fee_apply_date
> Result: Choose incorrect execution plan.
>
> Connected to:
> Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> SQL> set autotrace trace
> SQL> set timing on
> SQL>
> SQL> variable spc varchar2(15);
> SQL> variable bfd varchar2(40);
> SQL> variable efd varchar2(40);
> SQL> variable p1 varchar2(60);
> SQL> exec :spc:='SACRAMENTO';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :bfd:='2005-12-05';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.01
> SQL> exec :efd:='2008-12-04 23:59:59';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec 1:='SET07%'
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL>
> SQL> SELECT xfi.serv_prov_code,
> * 2 * * * * xfi.b1_per_id1,
> * 3 * * * * xfi.b1_per_id2,
> * 4 * * * * xfi.b1_per_id3,
> * 5 * * * * xfi.feeitem_seq_nbr,
> * 6 * * * * xfi.invoice_nbr,
> * 7 * * * * xfi.gf_fee_period,
> * 8 * * * * xfi.gf_fee,
> * 9 * * * * xfi.gf_des,
> *10 * * * * xfi.gf_unit,
> *11 * * * * xfi.gf_udes,
> *12 * * * * finv.invoice_date AS gf_fee_apply_date,
> *13 * * * * xfi.feeitem_invoice_status,
> *14 * * * * xfi.gf_l1,
> *15 * * * * xfi.gf_l2,
> *16 * * * * xfi.gf_l3,
> *17 * * * * xfi.x4feeitem_invoice_udf1,
> *18 * * * * xfi.x4feeitem_invoice_udf2,
> *19 * * * * xfi.x4feeitem_invoice_udf3,
> *20 * * * * xfi.x4feeitem_invoice_udf4,
> *21 * * * * xfi.gf_fee_schedule,
> *22 * * * * xfi.fee_schedule_version,
> *23 * * * * xfi.rec_date,
> *24 * * * * xfi.rec_ful_nam,
> *25 * * * * xfi.rec_status,
> *26 * * * * f4.GF_COD,
> *27 * * * * f4.GF_PRIORITY
> *28 * *FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
> F4FEEITEM f4
> *29 * WHERE sd.serv_prov_code = xfi.serv_prov_code
> *30 * * AND sd.b1_per_id1 = xfi.b1_per_id1
> *31 * * AND sd.b1_per_id2 = xfi.b1_per_id2
> *32 * * AND sd.b1_per_id3 = xfi.b1_per_id3
> *33 * * AND xfi.serv_prov_code = f4.serv_prov_code
> *34 * * AND xfi.b1_per_id1 = f4.b1_per_id1
> *35 * * AND xfi.b1_per_id2 = f4.b1_per_id2
> *36 * * AND xfi.b1_per_id3 = f4.b1_per_id3
> *37 * * And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
> *38 * * AND finv.serv_prov_code = xfi.serv_prov_code
> *39 * * AND finv.invoice_nbr = xfi.invoice_nbr
> *40 * * AND sd.serv_prov_code = :spc
> *41 * * AND upper(sd.set_id) = 1
> *42 * * AND xfi.rec_status = 'A'
> *43 * * AND xfi.feeitem_invoice_status = 'INVOICED'
> *44 * ORDER BY gf_fee_apply_date
> *45 */
>
> no rows selected
>
> Elapsed: 00:02:15.28
>
> Execution Plan
> ----------------------------------------------------------
> Plan hash value: 3748720781
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> | Id *| Operation * * * * * * * * * * * | Name * * * * * * * * * * |
> Rows *| Byt
> es | Cost (%CPU)| Time * * |
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> | * 0 | SELECT STATEMENT * * * * * * * *| * * * * * * * * * * * * *|
> 103 | 242
> 05 | * * 9 * (0)| 00:00:01 |
>
> | * 1 | *NESTED LOOPS * * * * * * * * * |
> | * * * |
> * *| * * * * * *| * * * * *|
>
> | * 2 | * NESTED LOOPS * * * * * * * * *| * * * * * * * * * * * * *|
> 103 | 242
> 05 | * * 9 * (0)| 00:00:01 |
>
> | * 3 | * *NESTED LOOPS * * * * * * * * |
> | * * 3 | * 5
> 79 | * * 8 * (0)| 00:00:01 |
>
> | * 4 | * * NESTED LOOPS * * * * * * * *|
> | * *39 | *60
> 45 | * * 4 * (0)| 00:00:01 |
>
> | * 5 | * * *TABLE ACCESS BY INDEX ROWID| F4INVOICE * * * * * * * *|
> 60771 | *14
> 24K| * * 1 * (0)| 00:00:01 |
>
> |* *6 | * * * INDEX RANGE SCAN * * * * *| F4INVOICE_DATE_IX
> | * *27 |
> * *| * * 1 * (0)| 00:00:01 |
>
> |* *7 | * * *TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE
> | * * 1 | * 1
> 31 | * * 1 * (0)| 00:00:01 |
>
> |* *8 | * * * INDEX RANGE SCAN * * * * *| X4FEEITEM_INVOICE_NBR_IX
> | * * 1 |
> * *| * * 1 * (0)| 00:00:01 |
>
> |* *9 | * * TABLE ACCESS BY INDEX ROWID | SETDETAILS
> | * * 1 |
> 38 | * * 1 * (0)| 00:00:01 |
>
> |* 10 | * * *INDEX RANGE SCAN * * * * * | SETDETAILS_PID_IX
> | * * 1 |
> * *| * * 1 * (0)| 00:00:01 |
>
> |* 11 | * *INDEX UNIQUE SCAN * * * * * *| F4FEEITEM_PK
> | * * 1 |
> * *| * * 1 * (0)| 00:00:01 |
>
> | *12 | * TABLE ACCESS BY INDEX ROWID * | F4FEEITEM
> | * *34 | *14
> 28 | * * 1 * (0)| 00:00:01 |
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> Predicate Information (identified by operation id):
> ---------------------------------------------------
>
> * *6 - access("FINV"."SERV_PROV_CODE"=:SPC)
> * *7 - filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
> "XFI"."REC_STATUS"='
> A')
>
> * *8 - access("XFI"."SERV_PROV_CODE"=:SPC AND
> "FINV"."INVOICE_NBR"="XFI"."INVOIC
> E_NBR")
>
> * *9 - filter(UPPER("SET_ID")=:P1)
> * 10 - access("SD"."SERV_PROV_CODE"=:SPC AND
> "SD"."B1_PER_ID1"="XFI"."B1_PER_ID1
> " AND
>
> * * * * * * * "SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
> "SD"."B1_PER_ID3"="XFI"."
> B1_PER_ID3")
>
> * 11 - access("F4"."SERV_PROV_CODE"=:SPC AND
> "XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
> " AND
>
> * * * * * * * "XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
> "XFI"."B1_PER_ID3"="F4"."
> B1_PER_ID3" AND
>
> * * * * * * * "XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )
>
> Statistics
> ----------------------------------------------------------
> * * * * * 0 *recursive calls
> * * * * * 0 *db block gets
> * * 2891740 *consistent gets
> * * * 25708 *physical reads
> * * * * * 0 *redo size
> * * * *1763 *bytes sent via SQL*Net to client
> * * * * 380 *bytes received via SQL*Net from client
> * * * * * 1 *SQL*Net roundtrips to/from client
> * * * * * 0 *sorts (memory)
> * * * * * 0 *sorts (disk)
> 0 * * * rows processed
> SQL> exit
> Disconnected from Oracle Database 11g Enterprise Edition Release
> 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> 2. * * *Case 2: test on 11.2.0.1 without ORDER BY ORDER BY
> gf_fee_apply_date
> Result: Choose correct execution plan.
>
> C:\>sqlplus accela/dbs@dbs26 @e:\tools\sql\test.sql
>
> SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 31 13:40:08 2009
>
> Copyright (c) 1982, 2007, Oracle. *All Rights Reserved.
>
> Connected to:
> Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> SQL> set autotrace trace
> SQL> set timing on
> SQL>
> SQL> variable spc varchar2(15);
> SQL> variable bfd varchar2(40);
> SQL> variable efd varchar2(40);
> SQL> variable p1 varchar2(60);
> SQL> exec :spc:='SACRAMENTO';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :bfd:='2005-12-05';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :efd:='2008-12-04 23:59:59';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec 1:='SET07%'
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL>
> SQL> SELECT xfi.serv_prov_code,
> * 2 * * * * xfi.b1_per_id1,
> * 3 * * * * xfi.b1_per_id2,
> * 4 * * * * xfi.b1_per_id3,
> * 5 * * * * xfi.feeitem_seq_nbr,
> * 6 * * * * xfi.invoice_nbr,
> * 7 * * * * xfi.gf_fee_period,
> * 8 * * * * xfi.gf_fee,
> * 9 * * * * xfi.gf_des,
> *10 * * * * xfi.gf_unit,
> *11 * * * * xfi.gf_udes,
> *12 * * * * finv.invoice_date AS gf_fee_apply_date,
> *13 * * * * xfi.feeitem_invoice_status,
> *14 * * * * xfi.gf_l1,
> *15 * * * * xfi.gf_l2,
> *16 * * * * xfi.gf_l3,
> *17 * * * * xfi.x4feeitem_invoice_udf1,
> *18 * * * * xfi.x4feeitem_invoice_udf2,
> *19 * * * * xfi.x4feeitem_invoice_udf3,
> *20 * * * * xfi.x4feeitem_invoice_udf4,
> *21 * * * * xfi.gf_fee_schedule,
> *22 * * * * xfi.fee_schedule_version,
> *23 * * * * xfi.rec_date,
> *24 * * * * xfi.rec_ful_nam,
> *25 * * * * xfi.rec_status,
> *26 * * * * f4.GF_COD,
> *27 * * * * f4.GF_PRIORITY
> *28 * *FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
> F4FEEITEM f4
> *29 * WHERE sd.serv_prov_code = xfi.serv_prov_code
> *30 * * AND sd.b1_per_id1 = xfi.b1_per_id1
> *31 * * AND sd.b1_per_id2 = xfi.b1_per_id2
> *32 * * AND sd.b1_per_id3 = xfi.b1_per_id3
> *33 * * AND xfi.serv_prov_code = f4.serv_prov_code
> *34 * * AND xfi.b1_per_id1 = f4.b1_per_id1
> *35 * * AND xfi.b1_per_id2 = f4.b1_per_id2
> *36 * * AND xfi.b1_per_id3 = f4.b1_per_id3
> *37 * * And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
> *38 * * AND finv.serv_prov_code = xfi.serv_prov_code
> *39 * * AND finv.invoice_nbr = xfi.invoice_nbr
> *40 * * AND sd.serv_prov_code = :spc
> *41 * * AND upper(sd.set_id) = 1
> *42 * * AND xfi.rec_status = 'A'
> *43 * * AND xfi.feeitem_invoice_status = 'INVOICED'
> *44 *-- ORDER BY gf_fee_apply_date
> *45 */
>
> no rows selected
>
> Elapsed: 00:00:00.06
>
> Execution Plan
> ----------------------------------------------------------
> Plan hash value: 1421766072
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> | Id *| Operation * * * * * * * * * * * | Name * * * * * * * * * * |
> Rows *| Byt
> es | Cost (%CPU)| Time * * |
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> | * 0 | SELECT STATEMENT * * * * * * * *| * * * * * * * * * * * * *|
> 101 | 369
> 66 | * * 5 *(20)| 00:00:01 |
>
> | * 1 | *NESTED LOOPS * * * * * * * * * |
> | * * * |
> * *| * * * * * *| * * * * *|
>
> | * 2 | * NESTED LOOPS * * * * * * * * *| * * * * * * * * * * * * *|
> 101 | 369
> 66 | * * 5 *(20)| 00:00:01 |
>
> | * 3 | * *NESTED LOOPS * * * * * * * * |
> | * * 3 | * 9
> 72 | * * 4 *(25)| 00:00:01 |
>
> |* *4 | * * HASH JOIN * * * * * * * * * |
> | * * 3 | * 9
> 00 | * * 3 *(34)| 00:00:01 |
>
> | * 5 | * * *TABLE ACCESS BY INDEX ROWID| SETDETAILS * * * * * * * |
> 107 | *40
> 66 | * * 1 * (0)| 00:00:01 |
>
> |* *6 | * * * INDEX RANGE SCAN * * * * *| SETDETAILS_SETID_IX * * *|
> 107 |
> * *| * * 1 * (0)| 00:00:01 |
>
> |* *7 | * * *TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE * * * *|
> 2680 | * 3
> 42K| * * 1 * (0)| 00:00:01 |
>
> |* *8 | * * * INDEX RANGE SCAN * * * * *| X4FEEITEM_INVOICE_NBR_IX |
> 255K|
> * *| * * 1 * (0)| 00:00:01 |
>
> | * 9 | * * TABLE ACCESS BY INDEX ROWID | F4INVOICE
> | * * 1 |
> 24 | * * 1 * (0)| 00:00:01 |
>
> |* 10 | * * *INDEX UNIQUE SCAN * * * * *| F4INVOICE_PK
> | * * 1 |
> * *| * * 1 * (0)| 00:00:01 |
>
> |* 11 | * *INDEX UNIQUE SCAN * * * * * *| F4FEEITEM_PK
> | * * 1 |
> * *| * * 1 * (0)| 00:00:01 |
>
> | *12 | * TABLE ACCESS BY INDEX ROWID * | F4FEEITEM
> | * *34 | *14
> 28 | * * 1 * (0)| 00:00:01 |
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> Predicate Information (identified by operation id):
> ---------------------------------------------------
>
> * *4 - access("SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE " AND
> "SD"."B1_PER_ID1"
> ="XFI"."B1_PER_ID1"
>
> * * * * * * * AND "SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
> "SD"."B1_PER_ID3"="XF
> I"."B1_PER_ID3")
>
> * *6 - access("SD"."SERV_PROV_CODE"=:SPC AND UPPER("SET_ID")=:P1)
> * *7 - filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
> "XFI"."REC_STATUS"='
> A')
>
> * *8 - access("XFI"."SERV_PROV_CODE"=:SPC)
> * 10 - access("FINV"."SERV_PROV_CODE"=:SPC AND
> "FINV"."INVOICE_NBR"="XFI"."INVOI
> CE_NBR")
>
> * 11 - access("F4"."SERV_PROV_CODE"=:SPC AND
> "XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
> " AND
>
> * * * * * * * "XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
> "XFI"."B1_PER_ID3"="F4"."
> B1_PER_ID3" AND
>
> * * * * * * * "XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )
>
> Statistics
> ----------------------------------------------------------
> * * * * * 0 *recursive calls
> * * * * * 0 *db block gets
> * * * * * 3 *consistent gets
> * * * * * 3 *physical reads
> * * * * * 0 *redo size
> * * * *1763 *bytes sent via SQL*Net to client
> * * * * 380 *bytes received via SQL*Net from client
> * * * * * 1 *SQL*Net roundtrips to/from client
> * * * * * 0 *sorts (memory)
> * * * * * 0 *sorts (disk)
> * * * * * 0 *rows processed
>
> SQL> exit
> Disconnected from Oracle Database 11g Enterprise Edition Release
> 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> C:\>
>
> 3. * * *Case 3: TEST on 11.1.0.6/10.2.0.4 DBs
> Result: Choose correct execution plan.
>
> Connected to:
> Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> SQL> set autotrace trace
> SP2-0618: Cannot find the Session Identifier. *Check PLUSTRACE role is
> enabled
> SP2-0611: Error enabling STATISTICS report
> SQL> set timing on
> SQL>
> SQL> variable spc varchar2(15);
> SQL> variable bfd varchar2(40);
> SQL> variable efd varchar2(40);
> SQL> variable p1 varchar2(60);
> SQL> exec :spc:='SACRAMENTO';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.01
> SQL> exec :bfd:='2005-12-05';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :efd:='2008-12-04 23:59:59';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.01
> SQL> exec 1:='SET07%'
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL>
> SQL> SELECT xfi.serv_prov_code,
> * 2 * * * * xfi.b1_per_id1,
> * 3 * * * * xfi.b1_per_id2,
> * 4 * * * * xfi.b1_per_id3,
> * 5 * * * * xfi.feeitem_seq_nbr,
> * 6 * * * * xfi.invoice_nbr,
> * 7 * * * * xfi.gf_fee_period,
> * 8 * * * * xfi.gf_fee,
> * 9 * * * * xfi.gf_des,
> *10 * * * * xfi.gf_unit,
> *11 * * * * xfi.gf_udes,
> *12 * * * * finv.invoice_date AS gf_fee_apply_date,
> *13 * * * * xfi.feeitem_invoice_status,
> *14 * * * * xfi.gf_l1,
> *15 * * * * xfi.gf_l2,
> *16 * * * * xfi.gf_l3,
> *17 * * * * xfi.x4feeitem_invoice_udf1,
> *18 * * * * xfi.x4feeitem_invoice_udf2,
> *19 * * * * xfi.x4feeitem_invoice_udf3,
> *20 * * * * xfi.x4feeitem_invoice_udf4,
> *21 * * * * xfi.gf_fee_schedule,
> *22 * * * * xfi.fee_schedule_version,
> *23 * * * * xfi.rec_date,
> *24 * * * * xfi.rec_ful_nam,
> *25 * * * * xfi.rec_status,
> *26 * * * * f4.GF_COD,
> *27 * * * * f4.GF_PRIORITY
> *28 * *FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
> F4FEEITEM f4
> *29 * WHERE sd.serv_prov_code = xfi.serv_prov_code
> *30 * * AND sd.b1_per_id1 = xfi.b1_per_id1
> *31 * * AND sd.b1_per_id2 = xfi.b1_per_id2
> *32 * * AND sd.b1_per_id3 = xfi.b1_per_id3
> *33 * * AND xfi.serv_prov_code = f4.serv_prov_code
> *34 * * AND xfi.b1_per_id1 = f4.b1_per_id1
> *35 * * AND xfi.b1_per_id2 = f4.b1_per_id2
> *36 * * AND xfi.b1_per_id3 = f4.b1_per_id3
> *37 * * And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
> *38 * * AND finv.serv_prov_code = xfi.serv_prov_code
> *39 * * AND finv.invoice_nbr = xfi.invoice_nbr
> *40 * * AND sd.serv_prov_code = :spc
> *41 * * AND upper(sd.set_id) = 1
> *42 * * AND xfi.rec_status = 'A'
> *43 * * AND xfi.feeitem_invoice_status = 'INVOICED'
> *44 * ORDER BY gf_fee_apply_date
> *45 */
> Elapsed: 00:00:00.51
>
> Execution Plan
> ----------------------------------------------------------
> Plan hash value: 2996231674
>
> ---------------------------------------------------------------------------*-----
> -------------------------
>
> | Id *| Operation * * * * * * * * * * * *| Name* * * * * * * * |
> Rows *| Bytes
> | Cost (%CPU)| Time * * |
>
> ---------------------------------------------------------------------------*-----
> -------------------------
>
> | * 0 | SELECT STATEMENT * * * * * * * * | * * * * * * * * * * *|
> 417 | 90072
> | * *16 *(13)| 00:00:01 |
>
> | * 1 | *SORT ORDER BY * * * * * * * * * | * * * * * * * * * * *|
> 417 | 90072
> | * *16 *(13)| 00:00:01 |
>
> |* *2 | * HASH JOIN * * * * * * * * * * *| * * * * * * * * * * *|
> 417 | 90072
> | * *15 * (7)| 00:00:01 |
>
> | * 3 | * *NESTED LOOPS * * * * * * * * *|
> | * * * |
> | * * * * * *| * * * * *|
>
> | * 4 | * * NESTED LOOPS * * * * * * * * | * * * * * * * * * * *|
> 29 | *5626
> | * *11 * (0)| 00:00:01 |
>
> | * 5 | * * *NESTED LOOPS * * * * * * * *| * * * * * * * * * * *|
> 3 | * 441
> | * * 8 * (0)| 00:00:01 |
>
> | * 6 | * * * TABLE ACCESS BY INDEX ROWID| SETDETAILS * * ** * |
> 3 | * 105
> | * * 2 * (0)| 00:00:01 |
>
> |* *7 | * * * *INDEX RANGE SCAN * * * * *| SETDETAILS_SETID_IX *|
> 3 |
> | * * 1 * (0)| 00:00:01 |
>
> |* *8 | * * * TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE * *|
> 1 | * 112
> | * * 2 * (0)| 00:00:01 |
>
> |* *9 | * * * *INDEX RANGE SCAN * * * * *| X4FEEITEM_INVOICE_PK |
> 1 |
> | * * 1 * (0)| 00:00:01 |
>
> |* 10 | * * *INDEX UNIQUE SCAN * * * * * | F4FEEITEM_PK * * * * |
> 1 |
> | * * 0 * (0)| 00:00:01 |
>
> | *11 | * * TABLE ACCESS BY INDEX ROWID *| F4FEEITEM * * * * * *|
> 10 | * 470
> | * * 1 * (0)| 00:00:01 |
>
> | *12 | * *TABLE ACCESS BY INDEX ROWID * | F4INVOICE * * * * * *|
> 9453 | * 203K
> | * * 3 * (0)| 00:00:01 |
>
> |* 13 | * * INDEX RANGE SCAN * * * * * * | F4INVOICE_DATE_IX * *|
> 9453 |
> | * * 2 * (0)| 00:00:01 |
>
> ---------------------------------------------------------------------------*-----
> -------------------------
>
> Predicate Information (identified by operation id):
> ---------------------------------------------------
>
> * *2 - access("FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE" AND
> * * * * * * * "FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR")
> * *7 - access("SD"."SERV_PROV_CODE"=:SPC AND UPPER("SET_ID")=:P1)
> * *8 - filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
> "XFI"."REC_STATUS"='
> A')
>
> * *9 - access("XFI"."SERV_PROV_CODE"=:SPC AND
> "SD"."B1_PER_ID1"="XFI"."B1_PER_ID
> 1" AND
>
> * * * * * * * "SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
> "SD"."B1_PER_ID3"="XFI"."
> B1_PER_ID3")
>
> * 10 - access("F4"."SERV_PROV_CODE"=:SPC AND
> "XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
> " AND
>
> * * * * * * * "XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
> "XFI"."B1_PER_ID3"="F4"."
> B1_PER_ID3" AND
>
> * * * * * * * "XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )
> * 13 - access("FINV"."SERV_PROV_CODE"=:SPC)
>
> SQL> exit
> Disconnected from Oracle Database 11g Enterprise Edition Release
> 11.1.0.6.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options


Have you run an event 10053 trace to see what information the
optimizer is using to arrive at that decision?


David Fitzjarrell
Reply With Quote
  #3 (permalink)  
Old 11-03-2009, 03:07 PM
Robert Klemme
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

On 11/03/2009 04:58 PM, ddf wrote:

> Have you run an event 10053 trace to see what information the
> optimizer is using to arrive at that decision?


And: are statistics (table, index and system) current?

Kind regards

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
Reply With Quote
  #4 (permalink)  
Old 11-03-2009, 03:22 PM
Charles Hooper
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

On Nov 3, 10:29*am, lsllcm <lsl...@gmail.com> wrote:
> Hi All,
>
> I have one performance issue after upgrade to oracle 11.2.0.1 linux 32
> bit.
>
> The optimizer always choose index of "order by column", not use index
> of "where clause columns". Any comments are appreciated.
>
> Below are three test cases:
>
> Case 1: TEST on 11.2.0.1 DBs with ORDER BY ORDER BY gf_fee_apply_date
> Result: Choose incorrect execution plan.
>
> Connected to:
> Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> SQL> set autotrace trace
> SQL> set timing on
> SQL>
> SQL> variable spc varchar2(15);
> SQL> variable bfd varchar2(40);
> SQL> variable efd varchar2(40);
> SQL> variable p1 varchar2(60);
> SQL> exec :spc:='SACRAMENTO';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :bfd:='2005-12-05';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.01
> SQL> exec :efd:='2008-12-04 23:59:59';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec 1:='SET07%'
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL>
> SQL> SELECT xfi.serv_prov_code,
> * 2 * * * * xfi.b1_per_id1,
> * 3 * * * * xfi.b1_per_id2,
> * 4 * * * * xfi.b1_per_id3,
> * 5 * * * * xfi.feeitem_seq_nbr,
> * 6 * * * * xfi.invoice_nbr,
> * 7 * * * * xfi.gf_fee_period,
> * 8 * * * * xfi.gf_fee,
> * 9 * * * * xfi.gf_des,
> *10 * * * * xfi.gf_unit,
> *11 * * * * xfi.gf_udes,
> *12 * * * * finv.invoice_date AS gf_fee_apply_date,
> *13 * * * * xfi.feeitem_invoice_status,
> *14 * * * * xfi.gf_l1,
> *15 * * * * xfi.gf_l2,
> *16 * * * * xfi.gf_l3,
> *17 * * * * xfi.x4feeitem_invoice_udf1,
> *18 * * * * xfi.x4feeitem_invoice_udf2,
> *19 * * * * xfi.x4feeitem_invoice_udf3,
> *20 * * * * xfi.x4feeitem_invoice_udf4,
> *21 * * * * xfi.gf_fee_schedule,
> *22 * * * * xfi.fee_schedule_version,
> *23 * * * * xfi.rec_date,
> *24 * * * * xfi.rec_ful_nam,
> *25 * * * * xfi.rec_status,
> *26 * * * * f4.GF_COD,
> *27 * * * * f4.GF_PRIORITY
> *28 * *FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
> F4FEEITEM f4
> *29 * WHERE sd.serv_prov_code = xfi.serv_prov_code
> *30 * * AND sd.b1_per_id1 = xfi.b1_per_id1
> *31 * * AND sd.b1_per_id2 = xfi.b1_per_id2
> *32 * * AND sd.b1_per_id3 = xfi.b1_per_id3
> *33 * * AND xfi.serv_prov_code = f4.serv_prov_code
> *34 * * AND xfi.b1_per_id1 = f4.b1_per_id1
> *35 * * AND xfi.b1_per_id2 = f4.b1_per_id2
> *36 * * AND xfi.b1_per_id3 = f4.b1_per_id3
> *37 * * And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
> *38 * * AND finv.serv_prov_code = xfi.serv_prov_code
> *39 * * AND finv.invoice_nbr = xfi.invoice_nbr
> *40 * * AND sd.serv_prov_code = :spc
> *41 * * AND upper(sd.set_id) = 1
> *42 * * AND xfi.rec_status = 'A'
> *43 * * AND xfi.feeitem_invoice_status = 'INVOICED'
> *44 * ORDER BY gf_fee_apply_date
> *45 */
>
> no rows selected
>
> Elapsed: 00:02:15.28
>
> Execution Plan
> ----------------------------------------------------------
> Plan hash value: 3748720781
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> | Id *| Operation * * * * * * * * * * * | Name * * * * * * * * * * |
> Rows *| Byt
> es | Cost (%CPU)| Time * * |
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> | * 0 | SELECT STATEMENT * * * * * * * *| * * * * * * * * * * * * *|
> 103 | 242
> 05 | * * 9 * (0)| 00:00:01 |
>
> | * 1 | *NESTED LOOPS * * * * * * * * * |
> | * * * |
> * *| * * * * * *| * * * * *|
>
> | * 2 | * NESTED LOOPS * * * * * * * * *| * * * * * * * * * * * * *|
> 103 | 242
> 05 | * * 9 * (0)| 00:00:01 |
>
> | * 3 | * *NESTED LOOPS * * * * * * * * |
> | * * 3 | * 5
> 79 | * * 8 * (0)| 00:00:01 |
>
> | * 4 | * * NESTED LOOPS * * * * * * * *|
> | * *39 | *60
> 45 | * * 4 * (0)| 00:00:01 |
>
> | * 5 | * * *TABLE ACCESS BY INDEX ROWID| F4INVOICE * * * * * * * *|
> 60771 | *14
> 24K| * * 1 * (0)| 00:00:01 |
>
> |* *6 | * * * INDEX RANGE SCAN * * * * *| F4INVOICE_DATE_IX
> | * *27 |
> * *| * * 1 * (0)| 00:00:01 |
>
> |* *7 | * * *TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE
> | * * 1 | * 1
> 31 | * * 1 * (0)| 00:00:01 |
>
> |* *8 | * * * INDEX RANGE SCAN * * * * *| X4FEEITEM_INVOICE_NBR_IX
> | * * 1 |
> * *| * * 1 * (0)| 00:00:01 |
>
> |* *9 | * * TABLE ACCESS BY INDEX ROWID | SETDETAILS
> | * * 1 |
> 38 | * * 1 * (0)| 00:00:01 |
>
> |* 10 | * * *INDEX RANGE SCAN * * * * * | SETDETAILS_PID_IX
> | * * 1 |
> * *| * * 1 * (0)| 00:00:01 |
>
> |* 11 | * *INDEX UNIQUE SCAN * * * * * *| F4FEEITEM_PK
> | * * 1 |
> * *| * * 1 * (0)| 00:00:01 |
>
> | *12 | * TABLE ACCESS BY INDEX ROWID * | F4FEEITEM
> | * *34 | *14
> 28 | * * 1 * (0)| 00:00:01 |
>
> ---------------------------------------------------------------------------*-----
> ----------------------------
>
> Predicate Information (identified by operation id):
> ---------------------------------------------------
>
> * *6 - access("FINV"."SERV_PROV_CODE"=:SPC)
> * *7 - filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
> "XFI"."REC_STATUS"='
> A')
>
> * *8 - access("XFI"."SERV_PROV_CODE"=:SPC AND
> "FINV"."INVOICE_NBR"="XFI"."INVOIC
> E_NBR")
>
> * *9 - filter(UPPER("SET_ID")=:P1)
> * 10 - access("SD"."SERV_PROV_CODE"=:SPC AND
> "SD"."B1_PER_ID1"="XFI"."B1_PER_ID1
> " AND
>
> * * * * * * * "SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
> "SD"."B1_PER_ID3"="XFI"."
> B1_PER_ID3")
>
> * 11 - access("F4"."SERV_PROV_CODE"=:SPC AND
> "XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
> " AND
>
> * * * * * * * "XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
> "XFI"."B1_PER_ID3"="F4"."
> B1_PER_ID3" AND
>
> * * * * * * * "XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )
>
> Statistics
> ----------------------------------------------------------
> * * * * * 0 *recursive calls
> * * * * * 0 *db block gets
> * * 2891740 *consistent gets
> * * * 25708 *physical reads
> * * * * * 0 *redo size
> * * * *1763 *bytes sent via SQL*Net to client
> * * * * 380 *bytes received via SQL*Net from client
> * * * * * 1 *SQL*Net roundtrips to/from client
> * * * * * 0 *sorts (memory)
> * * * * * 0 *sorts (disk)
> 0 * * * rows processed
> SQL> exit

(snip)

Autotrace may lie - it does not necessarily show the actual execution
plan. This is especially a problem when bind variables are used as
bind variable peeking does not happen, and all bind variables are
treated as VARCHAR2 type columns. To see the actual execution plan,
disable autotrace and include the hint /*+ GATHER_PLAN_STATISTICS
*/ immediately after the SELECT keyword. Then use the following to
display the actual execution plan with estimated and actual rows:
SELECT
*
FROM
TABLE (DBMS_XPLAN.DISPLAY_CURSOR(NULL,NULL,'ALLSTATS LAST'));

(If you do not use the hint, it is possible to specify NULL for the
last parameter to return the actual execution plan with just the
estimated cardinality and costs.)

Note the 2,891,740 consistent gets for the slow execution compared to
the 3 consistent gets with the "fast" execution without the ORDER BY
clause. It *could* very well be the case in the slow execution that a
previous execution used different bind variable values which were
"peeked" at, creating an appropriate execution plan for a query with a
large number of rows to be processed. By removing the ORDER BY
clause, you forced a hard parse of the SQL statement, which caused the
optimizer again to peek at the bind variables to determine a good
execution plan.

You will probably find on Oracle 11.1.0.6 and above that the optimizer
will eventually re-hard parse the SQL statement when it recognizes
that the execution plan should be bind variable sensitive - it might
take a couple executions of the SQL statement before the optimizer
switches to bind aware versions of the execution plans.

Note also that it is possible that the object statistics and optimizer
parameters (FIRST_ROWS_n, for example) differ between the Oracle
versions.

David's suggestion of a 10053 trace is a good one - just keep in mind
that such traces only appear during a hard parse.

Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.
Reply With Quote
  #5 (permalink)  
Old 11-03-2009, 04:44 PM
joel garry
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

On Nov 3, 8:22*am, Charles Hooper <hooperc2...@yahoo.com> wrote:
> On Nov 3, 10:29*am, lsllcm <lsl...@gmail.com> wrote:


>
> Note also that it is possible that the object statistics and optimizer
> parameters (FIRST_ROWS_n, for example) differ between the Oracle
> versions.
>
> David's suggestion of a 10053 trace is a good one - just keep in mind
> that such traces only appear during a hard parse.


A bit of a stretch, but consider this: rownum is assigned after the
predicate is processed, but before sorting is done. "Bug 6438892 :
Suboptimal plan with ROWNUM predicate and NESTED LOOPS." is in the
11.1.0.6 patch set, bug not published. So maybe there is some
mysterious optimizer bug here, set off by the order by even though
rownum is not originally a predicate. Try patching beyond the base
release and see if the problem is still there.

jg
--
@home.com is bogus.
Do not fart next to a cellphone. http://www.signonsandiego.com/news/2...onomycom48394/

Reply With Quote
  #6 (permalink)  
Old 11-03-2009, 05:11 PM
Charles Hooper
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

On Nov 3, 12:44*pm, joel garry <joel-ga...@home.com> wrote:
> On Nov 3, 8:22*am, Charles Hooper <hooperc2...@yahoo.com> wrote:
>
> > On Nov 3, 10:29*am, lsllcm <lsl...@gmail.com> wrote:

>
> > Note also that it is possible that the object statistics and optimizer
> > parameters (FIRST_ROWS_n, for example) differ between the Oracle
> > versions.

>
> > David's suggestion of a 10053 trace is a good one - just keep in mind
> > that such traces only appear during a hard parse.

>
> A bit of a stretch, but consider this: *rownum is assigned after the
> predicate is processed, but before sorting is done. *"Bug 6438892 :
> Suboptimal plan with ROWNUM predicate and NESTED LOOPS." is in the
> 11.1.0.6 patch set, bug not published. *So maybe there is some
> mysterious optimizer bug here, set off by the order by even though
> rownum is not originally a predicate. *Try patching beyond the base
> release and see if the problem is still there.
>
> jg
> --


The OP is experiencing problems in 11.2.0.1, which does not exhibit
the ROWNUM bug that you mentioned, based on my testing. You might be
suggesting - what if the fix of that bug caused another bug?
Interesting, quite possible.

I noticed the large number of NESTED LOOPS in his posted plan also,
which is one of the reasons why I mentioned FIRST_ROWS_n
(OPTIMIZER_MODE). It might even be the case that the OPTIMIZER_MODE
is set to FIRST_ROWS (or maybe even CHOOSE), rather than FIRST_ROWS_1,
FIRST_ROWS_10, FIRST_ROWS_100, ALL_ROWS, etc.

lsllcm, please try setting OPTIMIZER_FEATURES_ENABLE to 11.1.0.6 in
Oracle 11.2.0.1 and re-execute the SQL statement - note that this will
force a hard parse. How does the performance compare? If the
performance is better, set OPTIMIZER_FEATURES_ENABLE to 11.2.0.1, add
a couple extra spaces in the SQL statement, and try your test again.
Is the performance the same as it was on 11.1.0.6 and 10.2.0.4?

Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.
Reply With Quote
  #7 (permalink)  
Old 11-03-2009, 10:19 PM
Mladen Gogala
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32bit.

On Tue, 03 Nov 2009 07:29:46 -0800, lsllcm wrote:

> Hi All,
>
> I have one performance issue after upgrade to oracle 11.2.0.1 linux 32
> bit.
>
> The optimizer always choose index of "order by column", not use index of
> "where clause columns". Any comments are appreciated.
>
> Below are three test cases:
>
> Case 1: TEST on 11.2.0.1 DBs with ORDER BY ORDER BY gf_fee_apply_date
> Result: Choose incorrect execution plan.
>
> Connected to:
> Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> SQL> set autotrace trace
> SQL> set timing on
> SQL>
> SQL> variable spc varchar2(15);
> SQL> variable bfd varchar2(40);
> SQL> variable efd varchar2(40);
> SQL> variable p1 varchar2(60);
> SQL> exec :spc:='SACRAMENTO';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :bfd:='2005-12-05';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.01
> SQL> exec :efd:='2008-12-04 23:59:59';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec 1:='SET07%'
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL>
> SQL> SELECT xfi.serv_prov_code,
> 2 xfi.b1_per_id1,
> 3 xfi.b1_per_id2,
> 4 xfi.b1_per_id3,
> 5 xfi.feeitem_seq_nbr,
> 6 xfi.invoice_nbr,
> 7 xfi.gf_fee_period,
> 8 xfi.gf_fee,
> 9 xfi.gf_des,
> 10 xfi.gf_unit,
> 11 xfi.gf_udes,
> 12 finv.invoice_date AS gf_fee_apply_date, 13
> xfi.feeitem_invoice_status, 14 xfi.gf_l1,
> 15 xfi.gf_l2,
> 16 xfi.gf_l3,
> 17 xfi.x4feeitem_invoice_udf1, 18
> xfi.x4feeitem_invoice_udf2, 19 xfi.x4feeitem_invoice_udf3, 20
> xfi.x4feeitem_invoice_udf4, 21 xfi.gf_fee_schedule,
> 22 xfi.fee_schedule_version,
> 23 xfi.rec_date,
> 24 xfi.rec_ful_nam,
> 25 xfi.rec_status,
> 26 f4.GF_COD,
> 27 f4.GF_PRIORITY
> 28 FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
> F4FEEITEM f4
> 29 WHERE sd.serv_prov_code = xfi.serv_prov_code 30 AND
> sd.b1_per_id1 = xfi.b1_per_id1 31 AND sd.b1_per_id2 =
> xfi.b1_per_id2 32 AND sd.b1_per_id3 = xfi.b1_per_id3 33 AND
> xfi.serv_prov_code = f4.serv_prov_code 34 AND xfi.b1_per_id1 =
> f4.b1_per_id1 35 AND xfi.b1_per_id2 = f4.b1_per_id2 36 AND
> xfi.b1_per_id3 = f4.b1_per_id3 37 And xfi.feeitem_seq_nbr =
> f4.feeitem_seq_nbr 38 AND finv.serv_prov_code = xfi.serv_prov_code
> 39 AND finv.invoice_nbr = xfi.invoice_nbr 40 AND
> sd.serv_prov_code = :spc
> 41 AND upper(sd.set_id) = 1
> 42 AND xfi.rec_status = 'A'
> 43 AND xfi.feeitem_invoice_status = 'INVOICED' 44 ORDER BY
> gf_fee_apply_date
> 45 /
>
> no rows selected
>
> Elapsed: 00:02:15.28
>
> Execution Plan
> ---------------------------------------------------------- Plan hash
> value: 3748720781
>
>

--------------------------------------------------------------------------------
> ----------------------------
>
> | Id | Operation | Name |
> Rows | Byt
> es | Cost (%CPU)| Time |
>
>

--------------------------------------------------------------------------------
> ----------------------------
>
> | 0 | SELECT STATEMENT | | 103
> | 242
> 05 | 9 (0)| 00:00:01 |
>
> | 1 | NESTED LOOPS | | |
> | | |
>
> | 2 | NESTED LOOPS | | 103
> | 242
> 05 | 9 (0)| 00:00:01 |
>
> | 3 | NESTED LOOPS | | 3 | 5
> 79 | 8 (0)| 00:00:01 |
>
> | 4 | NESTED LOOPS | | 39 | 60
> 45 | 4 (0)| 00:00:01 |
>
> | 5 | TABLE ACCESS BY INDEX ROWID| F4INVOICE |
> 60771 | 14
> 24K| 1 (0)| 00:00:01 |
>
> |* 6 | INDEX RANGE SCAN | F4INVOICE_DATE_IX | 27 |
> | 1 (0)| 00:00:01 |
>
> |* 7 | TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE | 1 |
> 1
> 31 | 1 (0)| 00:00:01 |
>
> |* 8 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_NBR_IX |
> 1 |
> | 1 (0)| 00:00:01 |
>
> |* 9 | TABLE ACCESS BY INDEX ROWID | SETDETAILS | 1 |
> 38 | 1 (0)| 00:00:01 |
>
> |* 10 | INDEX RANGE SCAN | SETDETAILS_PID_IX | 1 |
> | 1 (0)| 00:00:01 |
>
> |* 11 | INDEX UNIQUE SCAN | F4FEEITEM_PK | 1 |
> | 1 (0)| 00:00:01 |
>
> | 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM | 34 | 14
> 28 | 1 (0)| 00:00:01 |
>
>

--------------------------------------------------------------------------------
> ----------------------------
>
>
> Predicate Information (identified by operation id):
> ---------------------------------------------------
>
> 6 - access("FINV"."SERV_PROV_CODE"=:SPC) 7 -
> filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
> "XFI"."REC_STATUS"='
> A')
>
> 8 - access("XFI"."SERV_PROV_CODE"=:SPC AND
> "FINV"."INVOICE_NBR"="XFI"."INVOIC
> E_NBR")
>
> 9 - filter(UPPER("SET_ID")=:P1)
> 10 - access("SD"."SERV_PROV_CODE"=:SPC AND
> "SD"."B1_PER_ID1"="XFI"."B1_PER_ID1
> " AND
>
> "SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
> "SD"."B1_PER_ID3"="XFI"."
> B1_PER_ID3")
>
> 11 - access("F4"."SERV_PROV_CODE"=:SPC AND
> "XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
> " AND
>
> "XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
> "XFI"."B1_PER_ID3"="F4"."
> B1_PER_ID3" AND
>
> "XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )
>
>
> Statistics
> ----------------------------------------------------------
> 0 recursive calls
> 0 db block gets
> 2891740 consistent gets
> 25708 physical reads
> 0 redo size
> 1763 bytes sent via SQL*Net to client
> 380 bytes received via SQL*Net from client
> 1 SQL*Net roundtrips to/from client
> 0 sorts (memory)
> 0 sorts (disk)
> 0 rows processed
> SQL> exit
> Disconnected from Oracle Database 11g Enterprise Edition Release
> 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> 2. Case 2: test on 11.2.0.1 without ORDER BY ORDER BY

gf_fee_apply_date
> Result: Choose correct execution plan.
>
> C:\>sqlplus accela/dbs@dbs26 @e:\tools\sql\test.sql
>
> SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 31 13:40:08 2009
>
> Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
>
>
> Connected to:
> Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> SQL> set autotrace trace
> SQL> set timing on
> SQL>
> SQL> variable spc varchar2(15);
> SQL> variable bfd varchar2(40);
> SQL> variable efd varchar2(40);
> SQL> variable p1 varchar2(60);
> SQL> exec :spc:='SACRAMENTO';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :bfd:='2005-12-05';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :efd:='2008-12-04 23:59:59';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec 1:='SET07%'
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL>
> SQL> SELECT xfi.serv_prov_code,
> 2 xfi.b1_per_id1,
> 3 xfi.b1_per_id2,
> 4 xfi.b1_per_id3,
> 5 xfi.feeitem_seq_nbr,
> 6 xfi.invoice_nbr,
> 7 xfi.gf_fee_period,
> 8 xfi.gf_fee,
> 9 xfi.gf_des,
> 10 xfi.gf_unit,
> 11 xfi.gf_udes,
> 12 finv.invoice_date AS gf_fee_apply_date, 13
> xfi.feeitem_invoice_status, 14 xfi.gf_l1,
> 15 xfi.gf_l2,
> 16 xfi.gf_l3,
> 17 xfi.x4feeitem_invoice_udf1, 18
> xfi.x4feeitem_invoice_udf2, 19 xfi.x4feeitem_invoice_udf3, 20
> xfi.x4feeitem_invoice_udf4, 21 xfi.gf_fee_schedule,
> 22 xfi.fee_schedule_version,
> 23 xfi.rec_date,
> 24 xfi.rec_ful_nam,
> 25 xfi.rec_status,
> 26 f4.GF_COD,
> 27 f4.GF_PRIORITY
> 28 FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
> F4FEEITEM f4
> 29 WHERE sd.serv_prov_code = xfi.serv_prov_code 30 AND
> sd.b1_per_id1 = xfi.b1_per_id1 31 AND sd.b1_per_id2 =
> xfi.b1_per_id2 32 AND sd.b1_per_id3 = xfi.b1_per_id3 33 AND
> xfi.serv_prov_code = f4.serv_prov_code 34 AND xfi.b1_per_id1 =
> f4.b1_per_id1 35 AND xfi.b1_per_id2 = f4.b1_per_id2 36 AND
> xfi.b1_per_id3 = f4.b1_per_id3 37 And xfi.feeitem_seq_nbr =
> f4.feeitem_seq_nbr 38 AND finv.serv_prov_code = xfi.serv_prov_code
> 39 AND finv.invoice_nbr = xfi.invoice_nbr 40 AND
> sd.serv_prov_code = :spc
> 41 AND upper(sd.set_id) = 1
> 42 AND xfi.rec_status = 'A'
> 43 AND xfi.feeitem_invoice_status = 'INVOICED' 44 -- ORDER BY
> gf_fee_apply_date
> 45 /
>
> no rows selected
>
> Elapsed: 00:00:00.06
>
> Execution Plan
> ---------------------------------------------------------- Plan hash
> value: 1421766072
>
>

--------------------------------------------------------------------------------
> ----------------------------
>
> | Id | Operation | Name |
> Rows | Byt
> es | Cost (%CPU)| Time |
>
>

--------------------------------------------------------------------------------
> ----------------------------
>
> | 0 | SELECT STATEMENT | | 101
> | 369
> 66 | 5 (20)| 00:00:01 |
>
> | 1 | NESTED LOOPS | | |
> | | |
>
> | 2 | NESTED LOOPS | | 101
> | 369
> 66 | 5 (20)| 00:00:01 |
>
> | 3 | NESTED LOOPS | | 3 | 9
> 72 | 4 (25)| 00:00:01 |
>
> |* 4 | HASH JOIN | | 3 | 9
> 00 | 3 (34)| 00:00:01 |
>
> | 5 | TABLE ACCESS BY INDEX ROWID| SETDETAILS | 107
> | 40
> 66 | 1 (0)| 00:00:01 |
>
> |* 6 | INDEX RANGE SCAN | SETDETAILS_SETID_IX | 107
> |
> | 1 (0)| 00:00:01 |
>
> |* 7 | TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE |
> 2680 | 3
> 42K| 1 (0)| 00:00:01 |
>
> |* 8 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_NBR_IX |
> 255K|
> | 1 (0)| 00:00:01 |
>
> | 9 | TABLE ACCESS BY INDEX ROWID | F4INVOICE | 1 |
> 24 | 1 (0)| 00:00:01 |
>
> |* 10 | INDEX UNIQUE SCAN | F4INVOICE_PK | 1 |
> | 1 (0)| 00:00:01 |
>
> |* 11 | INDEX UNIQUE SCAN | F4FEEITEM_PK | 1 |
> | 1 (0)| 00:00:01 |
>
> | 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM | 34 | 14
> 28 | 1 (0)| 00:00:01 |
>
>

--------------------------------------------------------------------------------
> ----------------------------
>
>
> Predicate Information (identified by operation id):
> ---------------------------------------------------
>
> 4 - access("SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE " AND
> "SD"."B1_PER_ID1"
> ="XFI"."B1_PER_ID1"
>
> AND "SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
> "SD"."B1_PER_ID3"="XF
> I"."B1_PER_ID3")
>
> 6 - access("SD"."SERV_PROV_CODE"=:SPC AND UPPER("SET_ID")=:P1) 7 -
> filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
> "XFI"."REC_STATUS"='
> A')
>
> 8 - access("XFI"."SERV_PROV_CODE"=:SPC)
> 10 - access("FINV"."SERV_PROV_CODE"=:SPC AND
> "FINV"."INVOICE_NBR"="XFI"."INVOI
> CE_NBR")
>
> 11 - access("F4"."SERV_PROV_CODE"=:SPC AND
> "XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
> " AND
>
> "XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
> "XFI"."B1_PER_ID3"="F4"."
> B1_PER_ID3" AND
>
> "XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )
>
>
> Statistics
> ----------------------------------------------------------
> 0 recursive calls
> 0 db block gets
> 3 consistent gets
> 3 physical reads
> 0 redo size
> 1763 bytes sent via SQL*Net to client
> 380 bytes received via SQL*Net from client
> 1 SQL*Net roundtrips to/from client
> 0 sorts (memory)
> 0 sorts (disk)
> 0 rows processed
>
> SQL> exit
> Disconnected from Oracle Database 11g Enterprise Edition Release
> 11.2.0.1.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> C:\>
>
>
> 3. Case 3: TEST on 11.1.0.6/10.2.0.4 DBs Result: Choose correct
> execution plan.
>
> Connected to:
> Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options
>
> SQL> set autotrace trace
> SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is
> enabled
> SP2-0611: Error enabling STATISTICS report SQL> set timing on
> SQL>
> SQL> variable spc varchar2(15);
> SQL> variable bfd varchar2(40);
> SQL> variable efd varchar2(40);
> SQL> variable p1 varchar2(60);
> SQL> exec :spc:='SACRAMENTO';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.01
> SQL> exec :bfd:='2005-12-05';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL> exec :efd:='2008-12-04 23:59:59';
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.01
> SQL> exec 1:='SET07%'
>
> PL/SQL procedure successfully completed.
>
> Elapsed: 00:00:00.00
> SQL>
> SQL> SELECT xfi.serv_prov_code,
> 2 xfi.b1_per_id1,
> 3 xfi.b1_per_id2,
> 4 xfi.b1_per_id3,
> 5 xfi.feeitem_seq_nbr,
> 6 xfi.invoice_nbr,
> 7 xfi.gf_fee_period,
> 8 xfi.gf_fee,
> 9 xfi.gf_des,
> 10 xfi.gf_unit,
> 11 xfi.gf_udes,
> 12 finv.invoice_date AS gf_fee_apply_date, 13
> xfi.feeitem_invoice_status, 14 xfi.gf_l1,
> 15 xfi.gf_l2,
> 16 xfi.gf_l3,
> 17 xfi.x4feeitem_invoice_udf1, 18
> xfi.x4feeitem_invoice_udf2, 19 xfi.x4feeitem_invoice_udf3, 20
> xfi.x4feeitem_invoice_udf4, 21 xfi.gf_fee_schedule,
> 22 xfi.fee_schedule_version,
> 23 xfi.rec_date,
> 24 xfi.rec_ful_nam,
> 25 xfi.rec_status,
> 26 f4.GF_COD,
> 27 f4.GF_PRIORITY
> 28 FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
> F4FEEITEM f4
> 29 WHERE sd.serv_prov_code = xfi.serv_prov_code 30 AND
> sd.b1_per_id1 = xfi.b1_per_id1 31 AND sd.b1_per_id2 =
> xfi.b1_per_id2 32 AND sd.b1_per_id3 = xfi.b1_per_id3 33 AND
> xfi.serv_prov_code = f4.serv_prov_code 34 AND xfi.b1_per_id1 =
> f4.b1_per_id1 35 AND xfi.b1_per_id2 = f4.b1_per_id2 36 AND
> xfi.b1_per_id3 = f4.b1_per_id3 37 And xfi.feeitem_seq_nbr =
> f4.feeitem_seq_nbr 38 AND finv.serv_prov_code = xfi.serv_prov_code
> 39 AND finv.invoice_nbr = xfi.invoice_nbr 40 AND
> sd.serv_prov_code = :spc
> 41 AND upper(sd.set_id) = 1
> 42 AND xfi.rec_status = 'A'
> 43 AND xfi.feeitem_invoice_status = 'INVOICED' 44 ORDER BY
> gf_fee_apply_date
> 45 /
> Elapsed: 00:00:00.51
>
> Execution Plan
> ---------------------------------------------------------- Plan hash
> value: 2996231674
>
>

--------------------------------------------------------------------------------
> -------------------------
>
> | Id | Operation | Name | Rows
> | Bytes
> | Cost (%CPU)| Time |
>
>

--------------------------------------------------------------------------------
> -------------------------
>
> | 0 | SELECT STATEMENT | | 417 |
> 90072
> | 16 (13)| 00:00:01 |
>
> | 1 | SORT ORDER BY | | 417 |
> 90072
> | 16 (13)| 00:00:01 |
>
> |* 2 | HASH JOIN | | 417 |
> 90072
> | 15 (7)| 00:00:01 |
>
> | 3 | NESTED LOOPS | | |
> | | |
>
> | 4 | NESTED LOOPS | | 29 |
> 5626
> | 11 (0)| 00:00:01 |
>
> | 5 | NESTED LOOPS | | 3 |
> 441
> | 8 (0)| 00:00:01 |
>
> | 6 | TABLE ACCESS BY INDEX ROWID| SETDETAILS | 3 |
> 105
> | 2 (0)| 00:00:01 |
>
> |* 7 | INDEX RANGE SCAN | SETDETAILS_SETID_IX | 3 |
> | 1 (0)| 00:00:01 |
>
> |* 8 | TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE | 1 |
> 112
> | 2 (0)| 00:00:01 |
>
> |* 9 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_PK | 1 |
> | 1 (0)| 00:00:01 |
>
> |* 10 | INDEX UNIQUE SCAN | F4FEEITEM_PK | 1 |
> | 0 (0)| 00:00:01 |
>
> | 11 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM | 10 |
> 470
> | 1 (0)| 00:00:01 |
>
> | 12 | TABLE ACCESS BY INDEX ROWID | F4INVOICE | 9453 |
> 203K
> | 3 (0)| 00:00:01 |
>
> |* 13 | INDEX RANGE SCAN | F4INVOICE_DATE_IX | 9453 |
> | 2 (0)| 00:00:01 |
>
>

--------------------------------------------------------------------------------
> -------------------------
>
>
> Predicate Information (identified by operation id):
> ---------------------------------------------------
>
> 2 - access("FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE" AND
> "FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR")
> 7 - access("SD"."SERV_PROV_CODE"=:SPC AND UPPER("SET_ID")=:P1) 8 -
> filter("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
> "XFI"."REC_STATUS"='
> A')
>
> 9 - access("XFI"."SERV_PROV_CODE"=:SPC AND
> "SD"."B1_PER_ID1"="XFI"."B1_PER_ID
> 1" AND
>
> "SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
> "SD"."B1_PER_ID3"="XFI"."
> B1_PER_ID3")
>
> 10 - access("F4"."SERV_PROV_CODE"=:SPC AND
> "XFI"."B1_PER_ID1"="F4"."B1_PER_ID1
> " AND
>
> "XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
> "XFI"."B1_PER_ID3"="F4"."
> B1_PER_ID3" AND
>
> "XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )
> 13 - access("FINV"."SERV_PROV_CODE"=:SPC)
>
> SQL> exit
> Disconnected from Oracle Database 11g Enterprise Edition Release
> 11.1.0.6.0 - Production
> With the Partitioning, OLAP, Data Mining and Real Application Testing
> options



Do you happen to have a SQL trace? I don't see whether the CPU costing is
on and whether the tables are analyzed. If the analysis job is running
nightly, tables are probably analyzed with the system default options.




--
http://mgogala.freehostia.com
Reply With Quote
  #8 (permalink)  
Old 11-03-2009, 11:38 PM
joel garry
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

On Nov 3, 10:11*am, Charles Hooper <hooperc2...@yahoo.com> wrote:
> On Nov 3, 12:44*pm, joel garry <joel-ga...@home.com> wrote:
>
>
>
> > On Nov 3, 8:22*am, Charles Hooper <hooperc2...@yahoo.com> wrote:

>
> > > On Nov 3, 10:29*am, lsllcm <lsl...@gmail.com> wrote:

>
> > > Note also that it is possible that the object statistics and optimizer
> > > parameters (FIRST_ROWS_n, for example) differ between the Oracle
> > > versions.

>
> > > David's suggestion of a 10053 trace is a good one - just keep in mind
> > > that such traces only appear during a hard parse.

>
> > A bit of a stretch, but consider this: *rownum is assigned after the
> > predicate is processed, but before sorting is done. *"Bug 6438892 :
> > Suboptimal plan with ROWNUM predicate and NESTED LOOPS." is in the
> > 11.1.0.6 patch set, bug not published. *So maybe there is some
> > mysterious optimizer bug here, set off by the order by even though
> > rownum is not originally a predicate. *Try patching beyond the base
> > release and see if the problem is still there.

>
> > jg
> > --

>
> The OP is experiencing problems in 11.2.0.1, which does not exhibit
> the ROWNUM bug that you mentioned, based on my testing. *You might be
> suggesting - what if the fix of that bug caused another bug?
> Interesting, quite possible.


Uh yeah, that's the ticket. (OK, I admit, somewhere along the line I
bugeyed the 11.2.0.1 to 11.1...)

>
> I noticed the large number of NESTED LOOPS in his posted plan also,
> which is one of the reasons why I mentioned FIRST_ROWS_n
> (OPTIMIZER_MODE). *It might even be the case that the OPTIMIZER_MODE
> is set to FIRST_ROWS (or maybe even CHOOSE), rather than FIRST_ROWS_1,
> FIRST_ROWS_10, FIRST_ROWS_100, ALL_ROWS, etc.
>
> lsllcm, please try setting OPTIMIZER_FEATURES_ENABLE to 11.1.0.6 in
> Oracle 11.2.0.1 and re-execute the SQL statement - note that this will
> force a hard parse. *How does the performance compare? *If the
> performance is better, set OPTIMIZER_FEATURES_ENABLE to 11.2.0.1, add
> a couple extra spaces in the SQL statement, and try your test again.
> Is the performance the same as it was on 11.1.0.6 and 10.2.0.4?


That may be informative.

jg
--
@home.com is bogus.
http://users.rcn.com/eslowry/inexcus.htm

Reply With Quote
  #9 (permalink)  
Old 11-04-2009, 12:46 AM
lsllcm
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

On Nov 4, 2:11*am, Charles Hooper <hooperc2...@yahoo.com> wrote:
> On Nov 3, 12:44*pm, joel garry <joel-ga...@home.com> wrote:
>
>
>
>
>
> > On Nov 3, 8:22*am, Charles Hooper <hooperc2...@yahoo.com> wrote:

>
> > > On Nov 3, 10:29*am, lsllcm <lsl...@gmail.com> wrote:

>
> > > Note also that it is possible that the object statistics and optimizer
> > > parameters (FIRST_ROWS_n, for example) differ between the Oracle
> > > versions.

>
> > > David's suggestion of a 10053 trace is a good one - just keep in mind
> > > that such traces only appear during a hard parse.

>
> > A bit of a stretch, but consider this: *rownum is assigned after the
> > predicate is processed, but before sorting is done. *"Bug 6438892 :
> > Suboptimal plan with ROWNUM predicate and NESTED LOOPS." is in the
> > 11.1.0.6 patch set, bug not published. *So maybe there is some
> > mysterious optimizer bug here, set off by the order by even though
> > rownum is not originally a predicate. *Try patching beyond the base
> > release and see if the problem is still there.

>
> > jg
> > --

>
> The OP is experiencing problems in 11.2.0.1, which does not exhibit
> the ROWNUM bug that you mentioned, based on my testing. *You might be
> suggesting - what if the fix of that bug caused another bug?
> Interesting, quite possible.
>
> I noticed the large number of NESTED LOOPS in his posted plan also,
> which is one of the reasons why I mentioned FIRST_ROWS_n
> (OPTIMIZER_MODE). *It might even be the case that the OPTIMIZER_MODE
> is set to FIRST_ROWS (or maybe even CHOOSE), rather than FIRST_ROWS_1,
> FIRST_ROWS_10, FIRST_ROWS_100, ALL_ROWS, etc.
>
> lsllcm, please try setting OPTIMIZER_FEATURES_ENABLE to 11.1.0.6 in
> Oracle 11.2.0.1 and re-execute the SQL statement - note that this will
> force a hard parse. *How does the performance compare? *If the
> performance is better, set OPTIMIZER_FEATURES_ENABLE to 11.2.0.1, add
> a couple extra spaces in the SQL statement, and try your test again.
> Is the performance the same as it was on 11.1.0.6 and 10.2.0.4?
>
> Charles Hooper
> IT Manager/Oracle DBA
> K&M Machine-Fabricating, Inc.- Hide quoted text -
>
> - Show quoted text -


Thank you All at first.

I have done one quick test after set OPTIMIZER_FEATURES_ENABLE to
11.1.0.6 again, the performance is same as the value to 11.2.0.1.

I will double test it again and get 10053 trace file.

Thanks
Reply With Quote
  #10 (permalink)  
Old 11-04-2009, 11:02 AM
lsllcm
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

part-2
================================================== ===

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 6.26 Cost: 2.00 Resp: 2.00 Degree: 1 Bytes:
169
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 4788.36 Resp: 4788.36 Degree: 1
Cost_io: 4770.00 Cost_cpu: 594128854
Resp_io: 4770.00 Resp_cpu: 594128854
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 3.00 Resp: 3.00 Degree: 1
Cost_io: 3.00 Cost_cpu: 11030
Resp_io: 3.00 Resp_cpu: 11030
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3052.00 resc_cpu: 120046275
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 1835.43 Resp: 1835.43 Degree: 1
Cost_io: 1833.20 Cost_cpu: 72033718
Resp_io: 1833.20 Resp_cpu: 72033718
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 2454.00 resc_cpu: 114871354
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 1476.53 Resp: 1476.53 Degree: 1
Cost_io: 1474.40 Cost_cpu: 68928765
Resp_io: 1474.40 Resp_cpu: 68928765
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 2999.00 resc_cpu: 119206769
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 1803.61 Resp: 1803.61 Degree: 1
Cost_io: 1801.40 Cost_cpu: 71530014
Resp_io: 1801.40 Resp_cpu: 71530014
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 3.00 Resp: 3.00 Degree: 1
Cost_io: 3.00 Cost_cpu: 11030
Resp_io: 3.00 Resp_cpu: 11030
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 3.00
resc: 3.00 resc_io: 3.00 resc_cpu: 11030
resp: 3.00 resp_io: 3.00 resc_cpu: 11030
Join Card: 6.259212 = = outer (6.259204) * inner (200076.276865) *
sel (0.000005)
Join Card - Rounded: 6 Computed: 6.26
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 6.00 card 58922.73 bytes: 169 deg: 1 resp: 6.00
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1414 Row size: 196 Total Rows:
58923
Initial runs: 2 Merge passes: 1 IO Cost / pass: 768
Total IO sort cost: 2182 Total CPU sort cost: 109242447
Total Temp space used: 26829000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 4313.60 Resp: 4313.60 [multiMatchCost=0.00]
SM Join
SM cost: 4313.60
resc: 4313.60 resc_io: 4301.70 resc_cpu: 385044143
resp: 4313.60 resp_io: 4301.70 resp_cpu: 385044143
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 6.00 card 58922.73 bytes: 169 deg: 1 resp: 6.00
Inner table: F4INVOICE Alias: FINV
resc: 301.87 card: 200076.28 bytes: 24 deg: 1 resp: 301.87
using dmeth: 2 #groups: 1
Cost per ptn: 847.29 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1302 probefrag: 880
ppasses: 1
Hash join: Resc: 1155.16 Resp: 1155.16 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 2.00 card: 6.26 bytes: 169 deg: 1 resp: 2.00
using dmeth: 2 #groups: 1
Cost per ptn: 426.79 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 1 ppasses:
1
Hash join: Resc: 803.95 Resp: 803.95 [multiMatchCost=0.00]
HA Join
HA cost: 803.95 swapped
resc: 803.95 resc_io: 801.70 resc_cpu: 72763912
resp: 803.95 resp_io: 801.70 resp_cpu: 72763912
Best:: JoinMethod: NestedLoop
Cost: 3.00 Degree: 1 Resp: 3.00 Card: 6.26 Bytes: 193

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 6.26 Cost: 3.00 Resp: 3.00 Degree: 1 Bytes:
193
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 16128.30 Resp: 16128.30 Degree: 1
Cost_io: 16046.00 Cost_cpu: 2662583604
Resp_io: 16046.00 Resp_cpu: 2662583604
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4.00 Resp: 4.00 Degree: 1
Cost_io: 4.00 Cost_cpu: 16551
Resp_io: 4.00 Resp_cpu: 16551
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4.00 Resp: 4.00 Degree: 1
Cost_io: 4.00 Cost_cpu: 16551
Resp_io: 4.00 Resp_cpu: 16551
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 9451.00 resc_cpu: 487362029
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5682.64 Resp: 5682.64 Degree: 1
Cost_io: 5673.60 Cost_cpu: 292428248
Resp_io: 5673.60 Resp_cpu: 292428248
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 4.00
resc: 4.00 resc_io: 4.00 resc_cpu: 16551
resp: 4.00 resp_io: 4.00 resc_cpu: 16551
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 625.922744 = = outer (6.259212) * inner (341509.085948) *
sel (0.000293)
Join Card - Rounded: 626 Computed: 625.92
Outer table: F4INVOICE Alias: FINV
resc: 1311.52 card 73255.04 bytes: 193 deg: 1 resp: 1311.52
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2000 Row size: 223 Total Rows:
73255
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1084
Total IO sort cost: 3084 Total CPU sort cost: 134942411
Total Temp space used: 30024000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 21647.99 Resp: 21647.99 [multiMatchCost=0.00]
SM Join
SM cost: 21647.99
resc: 21647.99 resc_io: 21593.20 resc_cpu: 1772479806
resp: 21647.99 resp_io: 21593.20 resp_cpu: 1772479806
Outer table: F4INVOICE Alias: FINV
resc: 1311.52 card 73255.04 bytes: 193 deg: 1 resp: 1311.52
Inner table: F4FEEITEM Alias: F4
resc: 1096.54 card: 341509.09 bytes: 42 deg: 1 resp: 1096.54
using dmeth: 2 #groups: 1
Cost per ptn: 1585.47 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1834 probefrag: 2252
ppasses: 1
Hash join: Resc: 3993.53 Resp: 3993.53 [multiMatchCost=0.00]
HA Join
HA cost: 3993.53
resc: 3993.53 resc_io: 3985.70 resc_cpu: 253386280
resp: 3993.53 resp_io: 3985.70 resp_cpu: 253386280
ORDER BY sort
First K Rows: switch to Amode plans
Best:: JoinMethod: NestedLoop
Cost: 1351443.32 Degree: 1 Resp: 1351443.32 Card:
26416584.99 Bytes: 235
***********************
Best so far: Table#: 0 cost: 1.0001 card: 25.3327 bytes: 950
Table#: 2 cost: 6.0013 card: 58922.7279 bytes:
9957987
Table#: 1 cost: 1311.5237 card: 73255.0351 bytes:
14138215
Table#: 3 cost: 1351443.3234 card: 26416584.9852
bytes: 6207897475
***********************
Join order[4]: SETDETAILS[SD]#0 X4FEEITEM_INVOICE[XFI]#2 F4FEEITEM
[F4]#3 F4INVOICE[FINV]#1

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 58922.73 Cost: 6.00 Resp: 6.00 Degree: 1
Bytes: 169
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 570982520.22 Resp: 570982520.22 Degree: 1
Cost_io: 568068058.00 Cost_cpu: 94290629250968
Resp_io: 568068058.00 Resp_cpu: 94290629250968
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5899.98 Resp: 5899.98 Degree: 1
Cost_io: 5898.30 Cost_cpu: 54259368
Resp_io: 5898.30 Resp_cpu: 54259368
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5899.98 Resp: 5899.98 Degree: 1
Cost_io: 5898.30 Cost_cpu: 54259368
Resp_io: 5898.30 Resp_cpu: 54259368
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 34070.00 resc_cpu: 1757393371
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 201070736.09 Resp: 201070736.09 Degree: 1
Cost_io: 200750667.00 Cost_cpu: 10355089000488
Resp_io: 200750667.00 Resp_cpu: 10355089000488
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 5899.98
resc: 5899.98 resc_io: 5898.30 resc_cpu: 54259368
resp: 5899.98 resp_io: 5898.30 resc_cpu: 54259368
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 58922.727880 = = outer (58922.727880) * inner
(1231517.000000) * sel (0.000001)
Join Card - Rounded: 58923 Computed: 58922.73
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 6.00 card 58922.73 bytes: 169 deg: 1 resp: 6.00
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1414 Row size: 196 Total Rows:
58923
Initial runs: 2 Merge passes: 1 IO Cost / pass: 768
Total IO sort cost: 2182 Total CPU sort cost: 109242447
Total Temp space used: 26829000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 19439.67 Resp: 19439.67 [multiMatchCost=0.00]
SM Join
SM cost: 19439.67
resc: 19439.67 resc_io: 19388.50 resc_cpu: 1655467992
resp: 19439.67 resp_io: 19388.50 resp_cpu: 1655467992
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 6.00 card 58922.73 bytes: 169 deg: 1 resp: 6.00
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
Cost per ptn: 3656.58 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1302 probefrag: 8118
ppasses: 1
Hash join: Resc: 7615.63 Resp: 7615.63 [multiMatchCost=0.00]
HA Join
HA cost: 7615.63
resc: 7615.63 resc_io: 7600.50 resc_cpu: 489593477
resp: 7615.63 resp_io: 7600.50 resp_cpu: 489593477
Best:: JoinMethod: NestedLoop
Cost: 5899.98 Degree: 1 Resp: 5899.98 Card: 58922.73 Bytes:
211

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 58922.73 Cost: 5899.98 Resp: 5899.98 Degree:
1 Bytes: 211
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 58414113.01 Resp: 58414113.01 Degree: 1
Cost_io: 58189907.30 Cost_cpu: 7253652931740
Resp_io: 58189907.30 Resp_cpu: 7253652931740
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 11793.82 Resp: 11793.82 Degree: 1
Cost_io: 11790.60 Cost_cpu: 104116711
Resp_io: 11790.60 Resp_cpu: 104116711
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 22382573.85 Resp: 22382573.85 Degree: 1
Cost_io: 22355392.20 Cost_cpu: 879398967633
Resp_io: 22355392.20 Resp_cpu: 879398967633
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 18003423.79 Resp: 18003423.79 Degree: 1
Cost_io: 17977413.30 Cost_cpu: 841508650801
Resp_io: 17977413.30 Resp_cpu: 841508650801
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 21987598.17 Resp: 21987598.17 Degree: 1
Cost_io: 21960608.10 Cost_cpu: 873200819081
Resp_io: 21960608.10 Resp_cpu: 873200819081
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 11793.82 Resp: 11793.82 Degree: 1
Cost_io: 11790.60 Cost_cpu: 104116711
Resp_io: 11790.60 Resp_cpu: 104116711
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 11793.82
resc: 11793.82 resc_io: 11790.60 resc_cpu: 104116711
resp: 11793.82 resp_io: 11790.60 resc_cpu: 104116711
Join Card: 73255.035134 = = outer (58922.727880) * inner
(248742.292433) * sel (0.000005)
Join Card - Rounded: 73255 Computed: 73255.04
Outer table: F4FEEITEM Alias: F4
resc: 5899.98 card 58922.73 bytes: 211 deg: 1 resp: 5899.98
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1753 Row size: 243 Total Rows:
58923
Initial runs: 2 Merge passes: 1 IO Cost / pass: 952
Total IO sort cost: 2705 Total CPU sort cost: 117590661
Total Temp space used: 27599000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 10730.84 Resp: 10730.84 [multiMatchCost=0.00]
SM Join
SM cost: 10730.84
resc: 10730.84 resc_io: 10717.00 resc_cpu: 447610002
resp: 10730.84 resp_io: 10717.00 resp_cpu: 447610002
Outer table: F4FEEITEM Alias: F4
resc: 5899.98 card 58922.73 bytes: 211 deg: 1 resp: 5899.98
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 1047.65 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1604 probefrag: 1094
ppasses: 1
Hash join: Resc: 7322.79 Resp: 7322.79 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: F4FEEITEM Alias: F4
resc: 5899.98 card: 58922.73 bytes: 211 deg: 1 resp: 5899.98
using dmeth: 2 #groups: 1
Cost per ptn: 1047.36 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 1604
ppasses: 1
Hash join: Resc: 7322.54 Resp: 7322.54 [multiMatchCost=0.04]
HA Join
HA cost: 7322.54 swapped
resc: 7322.54 resc_io: 7318.00 resc_cpu: 146810157
resp: 7322.54 resp_io: 7318.00 resp_cpu: 146810157
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2413 Row size: 269 Total Rows:
73255
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1308
Total IO sort cost: 3721 Total CPU sort cost: 145112949
Total Temp space used: 18768000
Best:: JoinMethod: Hash
Cost: 11048.02 Degree: 1 Resp: 11048.02 Card: 73255.04
Bytes: 235
***********************
Best so far: Table#: 0 cost: 1.0001 card: 25.3327 bytes: 950
Table#: 2 cost: 6.0013 card: 58922.7279 bytes:
9957987
Table#: 3 cost: 5899.9771 card: 58922.7279 bytes:
12432753
Table#: 1 cost: 11048.0232 card: 73255.0351 bytes:
17214925
***********************
First K Rows: K = 100.00, N = 73255.00
First K Rows: old pf = 0.0004299, new pf = 0.0356842
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 45622.000000 Rounded: 42363 Computed: 42363.09
Non Adjusted: 42363.09
Access Path: TableScan
Cost: 248.29 Resp: 248.29 Degree: 0
Cost_io: 247.00 Cost_cpu: 41646782
Resp_io: 247.00 Resp_cpu: 41646782


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1087.00 resc_cpu: 48172582
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 108.85 Resp: 108.85 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 7579.00 resc_cpu: 94404970
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 758.19 Resp: 758.19 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 108.85 Degree: 1 Resp: 108.85 Card: 42363.09 Bytes:
169

First K Rows: old pf = 0.2773070, new pf = 0.9879518
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 1275585.000000 Rounded: 1216680 Computed:
1216680.31 Non Adjusted: 1216680.31
Access Path: TableScan
Cost: 9575.72 Resp: 9575.72 Degree: 0
Cost_io: 9527.00 Cost_cpu: 1576249323
Resp_io: 9527.00 Resp_cpu: 1576249323


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 495964.00 resc_cpu: 5028495498
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 49611.94 Resp: 49611.94 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 39001.00 resc_cpu: 1774260911
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 3905.58 Resp: 3905.58 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 3905.58 Degree: 1 Resp: 3905.58 Card: 1216680.31
Bytes: 235

First K Rows: old pf = 0.8043506, new pf = 1.0000000
Access path analysis for F4INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4INVOICE[FINV]
Table: F4INVOICE Alias: FINV
Card: Original: 305860.000000 Rounded: 248742 Computed:
248742.29 Non Adjusted: 248742.29
Access Path: TableScan
Cost: 992.77 Resp: 992.77 Degree: 0
Cost_io: 989.00 Cost_cpu: 121960650
Resp_io: 989.00 Resp_cpu: 121960650


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4748.00 resc_cpu: 156037217
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 475.28 Resp: 475.28 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3747.00 resc_cpu: 147769406
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 375.16 Resp: 375.16 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4643.00 resc_cpu: 154714696
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 464.78 Resp: 464.78 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 89716.00 resc_cpu: 761518341
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 8973.95 Resp: 8973.95 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4INVOICE_BATCH_NBR_IX
Cost: 375.16 Degree: 1 Resp: 375.16 Card: 248742.29
Bytes: 193

First K Rows: unchanged join prefix len = 2
Join order[4]: SETDETAILS[SD]#0 X4FEEITEM_INVOICE[XFI]#2 F4FEEITEM
[F4]#3 F4INVOICE[FINV]#1

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 1.56 Cost: 1.00 Resp: 1.00 Degree: 1 Bytes:
38
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 496.59 Resp: 496.59 Degree: 1
Cost_io: 494.00 Cost_cpu: 83707754
Resp_io: 494.00 Resp_cpu: 83707754
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 954.00 resc_cpu: 47284154
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 192.09 Resp: 192.09 Degree: 1
Cost_io: 191.80 Cost_cpu: 9459769
Resp_io: 191.80 Resp_cpu: 9459769
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 2.00 Resp: 2.00 Degree: 1
Cost_io: 2.00 Cost_cpu: 5953
Resp_io: 2.00 Resp_cpu: 5953
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2.00
resc: 2.00 resc_io: 2.00 resc_cpu: 5953
resp: 2.00 resp_io: 2.00 resc_cpu: 5953
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 4
Join selectivity using 1 ColGroups: 0.007838 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 519.195260 = = outer (1.563739) * inner (42363.094163) *
sel (0.007838)
Join Card - Rounded: 519 Computed: 519.20
Outer table: SETDETAILS Alias: SD
resc: 1.00 card 25.33 bytes: 38 deg: 1 resp: 1.00
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1 Row size: 52 Total Rows: 25
Initial runs: 1 Merge passes: 0 IO Cost / pass: 0
Total IO sort cost: 0 Total CPU sort cost: 32357899
Total Temp space used: 0
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 37824.88 Resp: 37824.88 [multiMatchCost=0.00]
SM Join
SM cost: 37824.88
resc: 37824.88 resc_io: 37768.20 resc_cpu: 1833709679
resp: 37824.88 resp_io: 37768.20 resp_cpu: 1833709679
Outer table: SETDETAILS Alias: SD
resc: 1.00 card 25.33 bytes: 38 deg: 1 resp: 1.00
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 108.85 card: 42363.09 bytes: 131 deg: 1 resp: 108.85
using dmeth: 2 #groups: 1
Cost per ptn: 0.63 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1 probefrag: 740 ppasses:
1
Hash join: Resc: 110.48 Resp: 110.48 [multiMatchCost=0.00]
HA Join
HA cost: 110.48
resc: 110.48 resc_io: 109.70 resc_cpu: 25237661
resp: 110.48 resp_io: 109.70 resp_cpu: 25237661
Best:: JoinMethod: NestedLoop
Cost: 2.00 Degree: 1 Resp: 2.00 Card: 519.20 Bytes: 169

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 519.20 Cost: 2.00 Resp: 2.00 Degree: 1 Bytes:
169
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 4968807.71 Resp: 4968807.71 Degree: 1
Cost_io: 4943446.00 Cost_cpu: 820519140377
Resp_io: 4943446.00 Resp_cpu: 820519140377
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 53.91 Resp: 53.91 Degree: 1
Cost_io: 53.90 Cost_cpu: 483508
Resp_io: 53.90 Resp_cpu: 483508
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 53.91 Resp: 53.91 Degree: 1
Cost_io: 53.90 Cost_cpu: 483508
Resp_io: 53.90 Resp_cpu: 483508
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 33659.00 resc_cpu: 1736218179
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 1749689.33 Resp: 1749689.33 Degree: 1
Cost_io: 1746904.10 Cost_cpu: 90109729441
Resp_io: 1746904.10 Resp_cpu: 90109729441
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 53.91
resc: 53.91 resc_io: 53.90 resc_cpu: 483508
resp: 53.91 resp_io: 53.90 resc_cpu: 483508
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 184971.994232 = = outer (519.195260) * inner
(1216680.307670) * sel (0.000293)
Join Card - Rounded: 184972 Computed: 184971.99
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 6.00 card 58922.73 bytes: 169 deg: 1 resp: 6.00
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1414 Row size: 196 Total Rows:
58923
Initial runs: 2 Merge passes: 1 IO Cost / pass: 768
Total IO sort cost: 2182 Total CPU sort cost: 109242447
Total Temp space used: 26829000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 19439.67 Resp: 19439.67 [multiMatchCost=0.00]
SM Join
SM cost: 19439.67
resc: 19439.67 resc_io: 19388.50 resc_cpu: 1655467992
resp: 19439.67 resp_io: 19388.50 resp_cpu: 1655467992
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 6.00 card 58922.73 bytes: 169 deg: 1 resp: 6.00
Inner table: F4FEEITEM Alias: F4
resc: 3905.58 card: 1216680.31 bytes: 42 deg: 1 resp: 3905.58
using dmeth: 2 #groups: 1
Cost per ptn: 3619.48 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1302 probefrag: 8021
ppasses: 1
Hash join: Resc: 7531.06 Resp: 7531.06 [multiMatchCost=0.00]
HA Join
HA cost: 7531.06
resc: 7531.06 resc_io: 7516.10 resc_cpu: 484065755
resp: 7531.06 resp_io: 7516.10 resp_cpu: 484065755
Best:: JoinMethod: NestedLoop
Cost: 53.91 Degree: 1 Resp: 53.91 Card: 184971.99 Bytes: 211

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 184971.99 Cost: 53.91 Resp: 53.91 Degree: 1
Bytes: 211
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 183356022.71 Resp: 183356022.71 Degree: 1
Cost_io: 182652197.90 Cost_cpu: 22770610493621
Resp_io: 182652197.90 Resp_cpu: 22770610493621
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 18555.95 Resp: 18555.95 Degree: 1
Cost_io: 18551.10 Cost_cpu: 156996456
Resp_io: 18551.10 Resp_cpu: 156996456
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 70245257.32 Resp: 70245257.32 Degree: 1
Cost_io: 70159933.50 Cost_cpu: 2760453097551
Resp_io: 70159933.50 Resp_cpu: 2760453097551
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 56498161.18 Resp: 56498161.18 Degree: 1
Cost_io: 56416513.90 Cost_cpu: 2641507224374
Resp_io: 56416513.90 Resp_cpu: 2641507224374
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 69005343.50 Resp: 69005343.50 Degree: 1
Cost_io: 68920621.10 Cost_cpu: 2740995773009
Resp_io: 68920621.10 Resp_cpu: 2740995773009
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 18555.95 Resp: 18555.95 Degree: 1
Cost_io: 18551.10 Cost_cpu: 156996456
Resp_io: 18551.10 Resp_cpu: 156996456
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 18555.95
resc: 18555.95 resc_io: 18551.10 resc_cpu: 156996456
resp: 18555.95 resp_io: 18551.10 resc_cpu: 156996456
Join Card: 229964.402933 = = outer (184971.994232) * inner
(248742.292433) * sel (0.000005)
Join Card - Rounded: 229964 Computed: 229964.40
Outer table: F4FEEITEM Alias: F4
resc: 5899.98 card 58922.73 bytes: 211 deg: 1 resp: 5899.98
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1753 Row size: 243 Total Rows:
58923
Initial runs: 2 Merge passes: 1 IO Cost / pass: 952
Total IO sort cost: 2705 Total CPU sort cost: 117590661
Total Temp space used: 27599000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 10730.84 Resp: 10730.84 [multiMatchCost=0.00]
SM Join
SM cost: 10730.84
resc: 10730.84 resc_io: 10717.00 resc_cpu: 447610002
resp: 10730.84 resp_io: 10717.00 resp_cpu: 447610002
Outer table: F4FEEITEM Alias: F4
resc: 5899.98 card 58922.73 bytes: 211 deg: 1 resp: 5899.98
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 1047.65 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1604 probefrag: 1094
ppasses: 1
Hash join: Resc: 7322.79 Resp: 7322.79 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: F4FEEITEM Alias: F4
resc: 53.91 card: 184971.99 bytes: 211 deg: 1 resp: 53.91
using dmeth: 2 #groups: 1
Cost per ptn: 2377.57 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 5036
ppasses: 1
Hash join: Resc: 2806.78 Resp: 2806.78 [multiMatchCost=0.14]
HA Join
HA cost: 2806.78 swapped
resc: 2806.78 resc_io: 2802.60 resc_cpu: 135389711
resp: 2806.78 resp_io: 2802.60 resp_cpu: 135389711
First K Rows: copy A one plan, tab=F4INVOICE
ORDER BY sort
First K Rows: switch to Amode plans
Best:: JoinMethod: Hash
Cost: 11048.02 Degree: 1 Resp: 11048.02 Card: 73255.04
Bytes: 235
***********************
Best so far: Table#: 0 cost: 1.0001 card: 25.3327 bytes: 950
Table#: 2 cost: 6.0013 card: 58922.7279 bytes:
9957987
Table#: 3 cost: 5899.9771 card: 58922.7279 bytes:
12432753
Table#: 1 cost: 11048.0232 card: 73255.0351 bytes:
17214925
***********************
Join order[5]: SETDETAILS[SD]#0 F4FEEITEM[F4]#3 F4INVOICE[FINV]#1
X4FEEITEM_INVOICE[XFI]#2

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 25.33 Cost: 1.00 Resp: 1.00 Degree: 1 Bytes:
38
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 242256.87 Resp: 242256.87 Degree: 1
Cost_io: 241024.00 Cost_cpu: 39886625511
Resp_io: 241024.00 Resp_cpu: 39886625511


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 502011.00 resc_cpu: 5089807126
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
NL Join : Cost: 1255421.81 Resp: 1255421.81 Degree: 1
Cost_io: 1255028.50 Cost_cpu: 12724521833
Resp_io: 1255028.50 Resp_cpu: 12724521833


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 39475.00 resc_cpu: 1795884754
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
NL Join : Cost: 98827.27 Resp: 98827.27 Degree: 1
Cost_io: 98688.50 Cost_cpu: 4489715904
Resp_io: 98688.50 Resp_cpu: 4489715904
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 98827.27
resc: 98827.27 resc_io: 98688.50 resc_cpu: 4489715904
resp: 98827.27 resp_io: 98688.50 resc_cpu: 4489715904
Join Card: 31197592.655682 = = outer (25.332653) * inner
(1231517.000000) * sel (1.000000)
Join Card - Rounded: 31197593 Computed: 31197592.66
Best:: JoinMethod: NestedLoop
Cost: 98827.27 Degree: 1 Resp: 98827.27 Card: 31197592.66
Bytes: 80

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 31197592.66 Cost: 98827.27 Resp: 98827.27
Degree: 1 Bytes: 80
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 30924028352.03 Resp: 30924028352.03 Degree: 1
Cost_io: 30806421878.50 Cost_cpu: 3804883217918776
Resp_io: 30806421878.50 Resp_cpu: 3804883217918776


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4748.00 resc_cpu: 156037217
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 14827762611.55 Resp: 14827762611.55 Degree: 1
Cost_io: 14812715844.90 Cost_cpu: 486803048972143
Resp_io: 14812715844.90 Resp_cpu: 486803048972143


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3747.00 resc_cpu: 147769406
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 11704086289.36 Resp: 11704086289.36 Degree: 1
Cost_io: 11689836785.60 Cost_cpu: 461009467341556
Resp_io: 11689836785.60 Resp_cpu: 461009467341556


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4643.00 resc_cpu: 154714696
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 14500060354.67 Resp: 14500060354.67 Degree: 1
Cost_io: 14485141118.40 Cost_cpu: 482677101158996
Resp_io: 14485141118.40 Resp_cpu: 482677101158996


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 89716.00 resc_cpu: 761518341
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 279965857199.73 Resp: 279965857199.73 Degree: 1
Cost_io: 279892424047.30 Cost_cpu: 2375758416296015
Resp_io: 279892424047.30 Resp_cpu: 2375758416296015
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 11704086289.36
resc: 11704086289.36 resc_io: 11689836785.60 resc_cpu:
461009467341556
resp: 11704086289.36 resp_io: 11689836785.60 resc_cpu:
461009467341556
Join Card: 7760160715565.263672 = = outer (31197592.655682) * inner
(248742.292433) * sel (1.000000)
Join Card - Rounded: 7760160715565 Computed: 7760160715565.26
Best:: JoinMethod: NestedLoop
Cost: 11704086289.36 Degree: 1 Resp: 11704086289.36 Card:
7760160715565.26 Bytes: 104

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 7760160715565.26 Cost: 11704086289.36 Resp:
11704086289.36 Degree: 1 Bytes: 104
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 53658429463261216.00 Resp: 53658429463261216.00
Degree: 1
Cost_io: 53377145481746288.00 Cost_cpu: 9100287327712668811264
Resp_io: 53377145481746288.00 Resp_cpu: 9100287327712668811264
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 1.00 resc_cpu: 8901
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 787933669153.16 Resp: 787933669153.16 Degree: 1
Cost_io: 787705908342.10 Cost_cpu: 7368669952162757
Resp_io: 787705908342.10 Resp_cpu: 7368669952162757
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1.00 resc_cpu: 12613
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 788022687682.06 Resp: 788022687682.06 Degree: 1
Cost_io: 787705908342.10 Cost_cpu: 10248656882479164
Resp_io: 787705908342.10 Resp_cpu: 10248656882479164
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: X4FEEITEM_INVOICE_PK
resc_io: 1.00 resc_cpu: 8901
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 787933669153.16 Resp: 787933669153.16 Degree: 1
Cost_io: 787705908342.10 Cost_cpu: 7368669952162757
Resp_io: 787705908342.10 Resp_cpu: 7368669952162757
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 787933669153.16
resc: 787933669153.16 resc_io: 787705908342.10 resc_cpu:
7368669952162757
resp: 787933669153.16 resp_io: 787705908342.10 resc_cpu:
7368669952162757
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 1120
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
Join selectivity using 2 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 26416584.985249 = = outer (7760160715565.263672) * inner
(1187146.275001) * sel (0.000000)
Join Card - Rounded: 26416585 Computed: 26416584.99
Outer table: F4INVOICE Alias: FINV
resc: 11704086289.36 card 7760160715565.26 bytes: 104 deg: 1
resp: 11704086289.36
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2794463989 Row size: 125 Total Rows:
7760160715565
Initial runs: 23127104 Merge passes: 4 IO Cost / pass:
1513667996
Total IO sort cost: 8849135973 Total CPU sort cost:
15142955447201776
Total Temp space used: 1816321324639000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 21021319020.82 Resp: 21021319020.82
[multiMatchCost=0.00]
SM Join
SM cost: 21021319020.82
resc: 21021319020.82 resc_io: 20539010525.80 resc_cpu:
15603966715891094
resp: 21021319020.82 resp_io: 20539010525.80 resp_cpu:
15603966715891094
Outer table: F4INVOICE Alias: FINV
resc: 11704086289.36 card 7760160715565.26 bytes: 104 deg: 1
resp: 11704086289.36
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 42922754857.84 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 109885088258 probefrag:
20723 ppasses: 1
Hash join: Resc: 54626844264.55 Resp: 54626844264.55
[multiMatchCost=77.98]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4INVOICE Alias: FINV
resc: 11704086289.36 card: 7760160715565.26 bytes: 104 deg: 1
resp: 11704086289.36
using dmeth: 2 #groups: 1
Cost per ptn: 42598077416.87 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag:
109885088258 ppasses: 1
Hash join: Resc: 54302166745.60 Resp: 54302166745.60
[multiMatchCost=0.00]
HA Join
HA cost: 54302166745.60 swapped
resc: 54302166745.60 resc_io: 54226011039.80 resc_cpu:
2463840282191949
resp: 54302166745.60 resp_io: 54226011039.80 resp_cpu:
2463840282191949
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 869988 Row size: 269 Total Rows:
26416585
Initial runs: 170 Merge passes: 1 IO Cost / pass: 471246
Total IO sort cost: 1341234 Total CPU sort cost:
50800686513
Total Temp space used: 7728751000
Best:: JoinMethod: SortMerge
Cost: 21022661825.04 Degree: 1 Resp: 21022661825.04 Card:
26416584.99 Bytes: 235
***********************
Best so far: Table#: 0 cost: 1.0001 card: 25.3327 bytes: 950
Table#: 3 cost: 98827.2742 card: 31197592.6557 bytes:
2495807440
Table#: 1 cost: 11704086289.3596 card:
7760160715565.2637 bytes: 807056714418760
Table#: 2 cost: 21022661825.0356 card: 26416584.9852
bytes: 6207897475
***********************
First K Rows: K = 100.00, N = 26416585.00
First K Rows: old pf = 0.9879518, new pf = 0.0000966
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 125.000000 Rounded: 119 Computed: 119.23 Non
Adjusted: 119.23
Access Path: TableScan
Cost: 3.00 Resp: 3.00 Degree: 0
Cost_io: 3.00 Cost_cpu: 158206
Resp_io: 3.00 Resp_cpu: 158206


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 52.00 resc_cpu: 517915
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 5.20 Resp: 5.20 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 7.00 resc_cpu: 197450
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 1.00 Resp: 1.00 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 119.23 Bytes: 211

First K Rows: old pf = 0.0356842, new pf = 1.0000000
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 1278471.000000 Rounded: 1187146 Computed:
1187146.28 Non Adjusted: 1187146.28
Access Path: TableScan
Cost: 6916.07 Resp: 6916.07 Degree: 0
Cost_io: 6880.00 Cost_cpu: 1166930829
Resp_io: 6880.00 Resp_cpu: 1166930829


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 30352.00 resc_cpu: 1349160084
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 3039.37 Resp: 3039.37 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 212286.00 resc_cpu: 2644792149
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 21236.77 Resp: 21236.77 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 3039.37 Degree: 1 Resp: 3039.37 Card: 1187146.28
Bytes: 169

First K Rows: unchanged join prefix len = 1
Join order[5]: SETDETAILS[SD]#0 F4FEEITEM[F4]#3 F4INVOICE[FINV]#1
X4FEEITEM_INVOICE[XFI]#2

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1.56 Cost: 1.00 Resp: 1.00 Degree: 1 Bytes:
38
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 5.01 Resp: 5.01 Degree: 1
Cost_io: 5.00 Cost_cpu: 319350
Resp_io: 5.00 Resp_cpu: 319350


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 52.00 resc_cpu: 517915
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
NL Join : Cost: 11.40 Resp: 11.40 Degree: 1
Cost_io: 11.40 Cost_cpu: 106522
Resp_io: 11.40 Resp_cpu: 106522


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 7.00 resc_cpu: 197450
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
NL Join : Cost: 2.40 Resp: 2.40 Degree: 1
Cost_io: 2.40 Cost_cpu: 42429
Resp_io: 2.40 Resp_cpu: 42429
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2.40
resc: 2.40 resc_io: 2.40 resc_cpu: 42429
resp: 2.40 resp_io: 2.40 resc_cpu: 42429
Join Card: 186.441017 = = outer (1.563739) * inner (119.227679) * sel
(1.000000)
Join Card - Rounded: 186 Computed: 186.44
Best:: JoinMethod: NestedLoop
Cost: 2.40 Degree: 1 Resp: 2.40 Card: 186.44 Bytes: 80

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 186.44 Cost: 2.40 Resp: 2.40 Degree: 1 Bytes:
80
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 184372.57 Resp: 184372.57 Degree: 1
Cost_io: 183671.40 Cost_cpu: 22684723373
Resp_io: 183671.40 Resp_cpu: 22684723373


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4748.00 resc_cpu: 156037217
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 88404.91 Resp: 88404.91 Degree: 1
Cost_io: 88315.20 Cost_cpu: 2902334667
Resp_io: 88315.20 Resp_cpu: 2902334667


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3747.00 resc_cpu: 147769406
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 69781.56 Resp: 69781.56 Degree: 1
Cost_io: 69696.60 Cost_cpu: 2748553374
Resp_io: 69696.60 Resp_cpu: 2748553374


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4643.00 resc_cpu: 154714696
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 86451.15 Resp: 86451.15 Degree: 1
Cost_io: 86362.20 Cost_cpu: 2877735773
Resp_io: 86362.20 Resp_cpu: 2877735773


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 89716.00 resc_cpu: 761518341
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 1669157.81 Resp: 1669157.81 Degree: 1
Cost_io: 1668720.00 Cost_cpu: 14164283572
Resp_io: 1668720.00 Resp_cpu: 14164283572
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 69781.56
resc: 69781.56 resc_io: 69696.60 resc_cpu: 2748553374
resp: 69781.56 resp_io: 69696.60 resc_cpu: 2748553374
Join Card: 46375765.972939 = = outer (186.441017) * inner
(248742.292433) * sel (1.000000)
Join Card - Rounded: 46375766 Computed: 46375765.97
Join order aborted: cost > best plan cost
***********************
Join order[6]: SETDETAILS[SD]#0 F4FEEITEM[F4]#3 X4FEEITEM_INVOICE
[XFI]#2 F4INVOICE[FINV]#1

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 31197592.66 Cost: 98827.27 Resp: 98827.27
Degree: 1 Bytes: 80
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 215719017499.73 Resp: 215719017499.73 Degree: 1
Cost_io: 214588192491.50 Cost_cpu: 36585206298900480
Resp_io: 214588192491.50 Resp_cpu: 36585206298900480
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 26639.00 resc_cpu: 1324363816
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 83235074875.00 Resp: 83235074875.00 Degree: 1
Cost_io: 83107366681.20 Cost_cpu: 4131700822208196
Resp_io: 83107366681.20 Resp_cpu: 4131700822208196
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 6339799.35 Resp: 6339799.35 Degree: 1
Cost_io: 6338207.10 Cost_cpu: 51513473461
Resp_io: 6338207.10 Resp_cpu: 51513473461
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 6339799.35
resc: 6339799.35 resc_io: 6338207.10 resc_cpu: 51513473461
resp: 6339799.35 resp_io: 6338207.10 resc_cpu: 51513473461
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 1120
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
Join selectivity using 2 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 21248194.691027 = = outer (31197592.655682) * inner
(1187146.275001) * sel (0.000001)
Join Card - Rounded: 21248195 Computed: 21248194.69
Outer table: F4FEEITEM Alias: F4
resc: 98827.27 card 31197592.66 bytes: 80 deg: 1 resp:
98827.27
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 374311 Row size: 98 Total Rows:
31197593
Initial runs: 73 Merge passes: 1 IO Cost / pass: 202754
Total IO sort cost: 577065 Total CPU sort cost: 44242302437
Total Temp space used: 6310405000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 715082.65 Resp: 715082.65 [multiMatchCost=0.00]
SM Join
SM cost: 715082.65
resc: 715082.65 resc_io: 713520.70 resc_cpu: 50533366102
resp: 715082.65 resp_io: 713520.70 resp_cpu: 50533366102
Outer table: F4FEEITEM Alias: F4
resc: 98827.27 card 31197592.66 bytes: 80 deg: 1 resp:
98827.27
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 143846.54 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 350364 probefrag: 20723
ppasses: 1
Hash join: Resc: 245775.19 Resp: 245775.19 [multiMatchCost=62.01]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4FEEITEM Alias: F4
resc: 98827.27 card: 31197592.66 bytes: 80 deg: 1 resp:
98827.27
using dmeth: 2 #groups: 1
Cost per ptn: 143892.92 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 350364
ppasses: 1
Hash join: Resc: 245759.56 Resp: 245759.56 [multiMatchCost=0.00]
HA Join
HA cost: 245759.56 swapped
resc: 245759.56 resc_io: 245370.70 resc_cpu: 12580765208
resp: 245759.56 resp_io: 245370.70 resp_cpu: 12580765208
Best:: JoinMethod: Hash
Cost: 245759.56 Degree: 1 Resp: 245759.56 Card: 21248194.69
Bytes: 211

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 21248194.69 Cost: 245759.56 Resp: 245759.56
Degree: 1 Bytes: 211
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 21062803092.03 Resp: 21062803092.03 Degree: 1
Cost_io: 20981952593.70 Cost_cpu: 2615729347431724
Resp_io: 20981952593.70 Resp_cpu: 2615729347431724
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 2371134.78 Resp: 2371134.78 Degree: 1
Cost_io: 2370190.20 Cost_cpu: 30559797918
Resp_io: 2370190.20 Resp_cpu: 30559797918
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 8069487480.86 Resp: 8069487480.86 Degree: 1
Cost_io: 8059685734.20 Cost_cpu: 317112657703541
Resp_io: 8059685734.20 Resp_cpu: 317112657703541
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 6490324259.06 Resp: 6490324259.06 Degree: 1
Cost_io: 6480944845.70 Cost_cpu: 303449048575167
Resp_io: 6480944845.70 Resp_cpu: 303449048575167
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 7927055488.52 Resp: 7927055488.52 Degree: 1
Cost_io: 7917322827.70 Cost_cpu: 314877546302661
Resp_io: 7917322827.70 Resp_cpu: 314877546302661
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 2371134.78 Resp: 2371134.78 Degree: 1
Cost_io: 2370190.20 Cost_cpu: 30559797918
Resp_io: 2370190.20 Resp_cpu: 30559797918
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2371134.78
resc: 2371134.78 resc_io: 2370190.20 resc_cpu: 30559797918
resp: 2371134.78 resp_io: 2370190.20 resc_cpu: 30559797918
Join Card: 26416584.985249 = = outer (21248194.691027) * inner
(248742.292433) * sel (0.000005)
Join Card - Rounded: 26416585 Computed: 26416584.99
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 245759.56 card 21248194.69 bytes: 211 deg: 1 resp:
245759.56
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 632140 Row size: 243 Total Rows:
21248195
Initial runs: 124 Merge passes: 1 IO Cost / pass: 342410
Total IO sort cost: 974550 Total CPU sort cost: 38901602416
Total Temp space used: 11604370000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 1223650.19 Resp: 1223650.19 [multiMatchCost=15.98]
SM Join
SM cost: 1223650.19
resc: 1223650.19 resc_io: 1222034.40 resc_cpu: 52274966597
resp: 1223650.19 resp_io: 1222034.40 resp_cpu: 52274966597
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 245759.56 card 21248194.69 bytes: 211 deg: 1 resp:
245759.56
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 224662.68 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 578412 probefrag: 1094
ppasses: 1
Hash join: Resc: 470878.28 Resp: 470878.28 [multiMatchCost=80.88]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 245759.56 card: 21248194.69 bytes: 211 deg: 1 resp:
245759.56
using dmeth: 2 #groups: 1
Cost per ptn: 224532.49 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 578412
ppasses: 1
Hash join: Resc: 470683.19 Resp: 470683.19 [multiMatchCost=15.98]
HA Join
HA cost: 470683.19 swapped
resc: 470683.19 resc_io: 470071.40 resc_cpu: 19792903107
resp: 470683.19 resp_io: 470071.40 resp_cpu: 19792903107
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 869988 Row size: 269 Total Rows:
26416585
Initial runs: 170 Merge passes: 1 IO Cost / pass: 471246
Total IO sort cost: 1341234 Total CPU sort cost:
50800686513
Total Temp space used: 6762660000
Best:: JoinMethod: Hash
Cost: 1813487.40 Degree: 1 Resp: 1813487.40 Card:
26416584.99 Bytes: 235
***********************
Best so far: Table#: 0 cost: 1.0001 card: 25.3327 bytes: 950
Table#: 3 cost: 98827.2742 card: 31197592.6557 bytes:
2495807440
Table#: 2 cost: 245759.5633 card: 21248194.6910
bytes: 4483369145
Table#: 1 cost: 1813487.4021 card: 26416584.9852
bytes: 6207897475
***********************
First K Rows: K = 100.00, N = 26416585.00
First K Rows: unchanged join prefix len = 3
Join order[6]: SETDETAILS[SD]#0 F4FEEITEM[F4]#3 X4FEEITEM_INVOICE
[XFI]#2 F4INVOICE[FINV]#1

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 119.00 Cost: 2.40 Resp: 2.40 Degree: 1 Bytes:
80
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 822841.82 Resp: 822841.82 Degree: 1
Cost_io: 818528.40 Cost_cpu: 139550520419
Resp_io: 818528.40 Resp_cpu: 139550520419
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 26639.00 resc_cpu: 1324363816
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 317493.63 Resp: 317493.63 Degree: 1
Cost_io: 317006.50 Cost_cpu: 15759971843
Resp_io: 317006.50 Resp_cpu: 15759971843
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 26.21 Resp: 26.21 Degree: 1
Cost_io: 26.20 Cost_cpu: 221796
Resp_io: 26.20 Resp_cpu: 221796
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 26.21
resc: 26.21 resc_io: 26.20 resc_cpu: 221796
resp: 26.21 resp_io: 26.20 resc_cpu: 221796
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
48 SETDETAILS[SD] = 4
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
19800 F4FEEITEM[F4] = 125
Join selectivity using 2 ColGroups: 0.000174 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 24526.112279 = = outer (119.000000) * inner
(1187146.275001) * sel (0.000174)
Join Card - Rounded: 24526 Computed: 24526.11
Outer table: F4FEEITEM Alias: F4
resc: 98827.27 card 31197592.66 bytes: 80 deg: 1 resp:
98827.27
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 374311 Row size: 98 Total Rows:
31197593
Initial runs: 73 Merge passes: 1 IO Cost / pass: 202754
Total IO sort cost: 577065 Total CPU sort cost: 44242302437
Total Temp space used: 6310405000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 715082.65 Resp: 715082.65 [multiMatchCost=0.00]
SM Join
SM cost: 715082.65
resc: 715082.65 resc_io: 713520.70 resc_cpu: 50533366102
resp: 715082.65 resp_io: 713520.70 resp_cpu: 50533366102
Outer table: F4FEEITEM Alias: F4
resc: 98827.27 card 31197592.66 bytes: 80 deg: 1 resp:
98827.27
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 143846.54 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 350364 probefrag: 20723
ppasses: 1
Hash join: Resc: 245713.18 Resp: 245713.18 [multiMatchCost=0.00]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4FEEITEM Alias: F4
resc: 2.40 card: 119.00 bytes: 80 deg: 1 resp: 2.40
using dmeth: 2 #groups: 1
Cost per ptn: 8031.63 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 2
ppasses: 1
Hash join: Resc: 11073.48 Resp: 11073.48 [multiMatchCost=0.08]
HA Join
HA cost: 11073.48 swapped
resc: 11073.48 resc_io: 11060.60 resc_cpu: 416694481
resp: 11073.48 resp_io: 11060.60 resp_cpu: 416694481
Best:: JoinMethod: NestedLoop
Cost: 26.21 Degree: 1 Resp: 26.21 Card: 24526.11 Bytes: 211

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 24526.11 Cost: 26.21 Resp: 26.21 Degree: 1
Bytes: 211
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 24311753.48 Resp: 24311753.48 Degree: 1
Cost_io: 24218431.20 Cost_cpu: 3019224650942
Resp_io: 24218431.20 Resp_cpu: 3019224650942
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 2479.45 Resp: 2479.45 Degree: 1
Cost_io: 2478.80 Cost_cpu: 20974324
Resp_io: 2478.80 Resp_cpu: 20974324
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 9314051.35 Resp: 9314051.35 Degree: 1
Cost_io: 9302738.00 Cost_cpu: 366017028729
Resp_io: 9302738.00 Resp_cpu: 366017028729
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 7491282.07 Resp: 7491282.07 Degree: 1
Cost_io: 7480456.20 Cost_cpu: 350245633677
Resp_io: 7480456.20 Resp_cpu: 350245633677
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 9149647.41 Resp: 9149647.41 Degree: 1
Cost_io: 9138413.80 Cost_cpu: 363437122896
Resp_io: 9138413.80 Resp_cpu: 363437122896
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 2479.45 Resp: 2479.45 Degree: 1
Cost_io: 2478.80 Cost_cpu: 20974324
Resp_io: 2478.80 Resp_cpu: 20974324
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2479.45
resc: 2479.45 resc_io: 2478.80 resc_cpu: 20974324
resp: 2479.45 resp_io: 2478.80 resc_cpu: 20974324
Join Card: 30491.820072 = = outer (24526.112279) * inner
(248742.292433) * sel (0.000005)
Join Card - Rounded: 30492 Computed: 30491.82
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 245759.56 card 21248194.69 bytes: 211 deg: 1 resp:
245759.56
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 632140 Row size: 243 Total Rows:
21248195
Initial runs: 124 Merge passes: 1 IO Cost / pass: 342410
Total IO sort cost: 974550 Total CPU sort cost: 38901602416
Total Temp space used: 11604370000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 1223634.21 Resp: 1223634.21 [multiMatchCost=0.00]
SM Join
SM cost: 1223634.21
resc: 1223634.21 resc_io: 1222034.40 resc_cpu: 51758127597
resp: 1223634.21 resp_io: 1222034.40 resp_cpu: 51758127597
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 245759.56 card 21248194.69 bytes: 211 deg: 1 resp:
245759.56
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 224662.68 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 578412 probefrag: 1094
ppasses: 1
Hash join: Resc: 470797.40 Resp: 470797.40 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 26.21 card: 24526.11 bytes: 211 deg: 1 resp: 26.21
using dmeth: 2 #groups: 1
Cost per ptn: 685.03 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 668
ppasses: 1
Hash join: Resc: 1086.41 Resp: 1086.41 [multiMatchCost=0.02]
HA Join
HA cost: 1086.41 swapped
resc: 1086.41 resc_io: 1083.90 resc_cpu: 81216690
resp: 1086.41 resp_io: 1083.90 resp_cpu: 81216690
First K Rows: copy A one plan, tab=F4INVOICE
ORDER BY sort
First K Rows: switch to Amode plans
Join order aborted: cost > best plan cost
***********************
Join order[7]: F4INVOICE[FINV]#1 SETDETAILS[SD]#0 X4FEEITEM_INVOICE
[XFI]#2 F4FEEITEM[F4]#3

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 248742.29 Cost: 375.16 Resp: 375.16 Degree: 1
Bytes: 24
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 246994478.55 Resp: 246994478.55 Degree: 1
Cost_io: 245622737.70 Cost_cpu: 44379476717809
Resp_io: 245622737.70 Resp_cpu: 44379476717809


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 5446.00 resc_cpu: 273320887
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 135675409.86 Resp: 135675409.86 Degree: 1
Cost_io: 135465267.90 Cost_cpu: 6798653190326
Resp_io: 135465267.90 Resp_cpu: 6798653190326


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 14672.00 resc_cpu: 339023293
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 365215294.05 Resp: 365215294.05 Degree: 1
Cost_io: 364954637.10 Cost_cpu: 8432947963721
Resp_io: 364954637.10 Resp_cpu: 8432947963721


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 374054.00 resc_cpu: 2898340643
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 9306522757.82 Resp: 9306522757.82 Degree: 1
Cost_io: 9304294381.50 Cost_cpu: 72093919593081
Resp_io: 9304294381.50 Resp_cpu: 72093919593081


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 356019.00 resc_cpu: 2769905472
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 8857817814.03 Resp: 8857817814.03 Degree: 1
Cost_io: 8855688184.50 Cost_cpu: 68899197477518
Resp_io: 8855688184.50 Resp_cpu: 68899197477518


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 9233.00 resc_cpu: 300289781
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 229894740.17 Resp: 229894740.17 Degree: 1
Cost_io: 229663863.30 Cost_cpu: 7469482835551
Resp_io: 229663863.30 Resp_cpu: 7469482835551
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 40186
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
NL Join : Cost: 99902.85 Resp: 99902.85 Degree: 1
Cost_io: 99871.50 Cost_cpu: 1014365572
Resp_io: 99871.50 Resp_cpu: 1014365572


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 5445.00 resc_cpu: 273313766
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 135650530.19 Resp: 135650530.19 Degree: 1
Cost_io: 135440393.70 Cost_cpu: 6798476050203
Resp_io: 135440393.70 Resp_cpu: 6798476050203
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 99902.85
resc: 99902.85 resc_io: 99871.50 resc_cpu: 1014365572
resp: 99902.85 resp_io: 99871.50 resc_cpu: 1014365572
Join Card: 6301302.146511 = = outer (248742.292433) * inner
(25.332653) * sel (1.000000)
Join Card - Rounded: 6301302 Computed: 6301302.15
Best:: JoinMethod: NestedLoop
Cost: 99902.85 Degree: 1 Resp: 99902.85 Card: 6301302.15
Bytes: 62

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 6301302.15 Cost: 99902.85 Resp: 99902.85
Degree: 1 Bytes: 62
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 43571091219.97 Resp: 43571091219.97 Degree: 1
Cost_io: 43342686740.50 Cost_cpu: 7389494342604657
Resp_io: 43342686740.50 Resp_cpu: 7389494342604657
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1.00 resc_cpu: 12613
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 730278.71 Resp: 730278.71 Degree: 1
Cost_io: 730001.70 Cost_cpu: 8962000227
Resp_io: 730001.70 Resp_cpu: 8962000227
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 1360456.83 Resp: 1360456.83 Degree: 1
Cost_io: 1360131.90 Cost_cpu: 10512242484
Resp_io: 1360131.90 Resp_cpu: 10512242484
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 730278.71
resc: 730278.71 resc_io: 730001.70 resc_cpu: 8962000227
resp: 730278.71 resp_io: 730001.70 resc_cpu: 8962000227
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 1120
Join selectivity using 1 ColGroups: 0.001959 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 73255.035134 = = outer (6301302.146511) * inner
(1187146.275001) * sel (0.000000)
Join Card - Rounded: 73255 Computed: 73255.04
Outer table: SETDETAILS Alias: SD
resc: 99902.85 card 6301302.15 bytes: 62 deg: 1 resp: 99902.85
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 60946 Row size: 79 Total Rows:
6301302
Initial runs: 12 Merge passes: 1 IO Cost / pass: 33014
Total IO sort cost: 93960 Total CPU sort cost: 7945775124
Total Temp space used: 964879000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 231931.33 Resp: 231931.33 [multiMatchCost=0.00]
SM Join
SM cost: 231931.33
resc: 231931.33 resc_io: 231598.70 resc_cpu: 10761488457
resp: 231931.33 resp_io: 231598.70 resp_cpu: 10761488457
Outer table: SETDETAILS Alias: SD
resc: 99902.85 card 6301302.15 bytes: 62 deg: 1 resp: 99902.85
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 30102.90 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 56921 probefrag: 20723
ppasses: 1
Hash join: Resc: 133045.12 Resp: 133045.12 [multiMatchCost=0.00]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: SETDETAILS Alias: SD
resc: 99902.85 card: 6301302.15 bytes: 62 deg: 1 resp:
99902.85
using dmeth: 2 #groups: 1
Cost per ptn: 30110.80 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 56921
ppasses: 1
Hash join: Resc: 133053.03 Resp: 133053.03 [multiMatchCost=0.00]
HA Join
HA cost: 133053.03 swapped
resc: 133053.03 resc_io: 132962.70 resc_cpu: 2922320967
resp: 133053.03 resp_io: 132962.70 resp_cpu: 2922320967
Best:: JoinMethod: Hash
Cost: 133053.03 Degree: 1 Resp: 133053.03 Card: 73255.04
Bytes: 193

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 73255.04 Cost: 133053.03 Resp: 133053.03
Degree: 1 Bytes: 193
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 709997181.74 Resp: 709997181.74 Degree: 1
Cost_io: 706373736.70 Cost_cpu: 117228115246026
Resp_io: 706373736.70 Resp_cpu: 117228115246026
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 140380.61 Resp: 140380.61 Degree: 1
Cost_io: 140288.20 Cost_cpu: 2989726116
Resp_io: 140288.20 Resp_cpu: 2989726116
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 140380.61 Resp: 140380.61 Degree: 1
Cost_io: 140288.20 Cost_cpu: 2989726116
Resp_io: 140288.20 Resp_cpu: 2989726116
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 34070.00 resc_cpu: 1757393371
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 250110758.38 Resp: 250110758.38 Degree: 1
Cost_io: 249712747.70 Cost_cpu: 12876707458763
Resp_io: 249712747.70 Resp_cpu: 12876707458763
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 140380.61
resc: 140380.61 resc_io: 140288.20 resc_cpu: 2989726116
resp: 140380.61 resp_io: 140288.20 resc_cpu: 2989726116
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 26416584.985249 = = outer (73255.035134) * inner
(1231517.000000) * sel (0.000293)
Join Card - Rounded: 26416585 Computed: 26416584.99
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 133053.03 card 73255.04 bytes: 193 deg: 1 resp:
133053.03
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2000 Row size: 223 Total Rows:
73255
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1084
Total IO sort cost: 3084 Total CPU sort cost: 134942411
Total Temp space used: 37528000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 153467.33 Resp: 153467.33 [multiMatchCost=77.85]
SM Join
SM cost: 153467.33
resc: 153467.33 resc_io: 153247.20 resc_cpu: 7121954001
resp: 153467.33 resp_io: 153247.20 resp_cpu: 7121954001
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 133053.03 card 73255.04 bytes: 193 deg: 1 resp:
133053.03
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
Cost per ptn: 3862.71 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1834 probefrag: 8118
ppasses: 1
Hash join: Resc: 140946.64 Resp: 140946.64 [multiMatchCost=77.85]
HA Join
HA cost: 140946.64
resc: 140946.64 resc_io: 140763.20 resc_cpu: 5934711825
resp: 140946.64 resp_io: 140763.20 resp_cpu: 5934711825
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 869988 Row size: 269 Total Rows:
26416585
Initial runs: 170 Merge passes: 1 IO Cost / pass: 471246
Total IO sort cost: 1341234 Total CPU sort cost:
50800686513
Total Temp space used: 6980805000
Best:: JoinMethod: NestedLoop
Cost: 1483184.83 Degree: 1 Resp: 1483184.83 Card:
26416584.99 Bytes: 235
***********************
Best so far: Table#: 1 cost: 375.1567 card: 248742.2924 bytes:
5969808
Table#: 0 cost: 99902.8534 card: 6301302.1465 bytes:
390680724
Table#: 2 cost: 133053.0270 card: 73255.0351 bytes:
14138215
Table#: 3 cost: 1483184.8268 card: 26416584.9852
bytes: 6207897475
***********************
First K Rows: K = 100.00, N = 26416585.00
First K Rows: old pf = 1.0000000, new pf = 0.0000161
Access path analysis for F4INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4INVOICE[FINV]
Table: F4INVOICE Alias: FINV
Card: Original: 5.000000 Rounded: 4 Computed: 4.07 Non
Adjusted: 4.07
Access Path: TableScan
Cost: 2.00 Resp: 2.00 Degree: 0
Cost_io: 2.00 Cost_cpu: 8681
Resp_io: 2.00 Resp_cpu: 8681


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4.00 resc_cpu: 30936
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 4.00 resc_cpu: 30936
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4.00 resc_cpu: 30936
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 5.00 resc_cpu: 38057
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 1.00 Resp: 1.00 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4INVOICE_BATCH_DATE_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 4.07 Bytes: 446

First K Rows: old pf = 0.0394747, new pf = 0.8585757
Access path analysis for SETDETAILS
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for SETDETAILS[SD]
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Table: SETDETAILS Alias: SD
Card: Original: 335614.000000 Rounded: 22 Computed: 21.75 Non
Adjusted: 21.75
Access Path: TableScan
Cost: 854.22 Resp: 854.22 Degree: 0
Cost_io: 850.00 Cost_cpu: 136408396
Resp_io: 850.00 Resp_cpu: 136408396


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 4677.00 resc_cpu: 234675310
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 468.43 Resp: 468.43 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 12598.00 resc_cpu: 291084237
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 1260.70 Resp: 1260.70 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 321154.00 resc_cpu: 2488447277
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 32123.09 Resp: 32123.09 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 305670.00 resc_cpu: 2378178900
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 30574.35 Resp: 30574.35 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7929.00 resc_cpu: 257834233
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 793.70 Resp: 793.70 Degree: 1
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqRange)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 38386
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 4676.00 resc_cpu: 234668189
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 468.33 Resp: 468.33 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: SETDETAILS_SETID_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 21.75 Bytes: 38

First K Rows: old pf = 1.0000000, new pf = 0.9887206
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 1264051.000000 Rounded: 1173756 Computed:
1173756.34 Non Adjusted: 1173756.34
Access Path: TableScan
Cost: 6838.66 Resp: 6838.66 Degree: 0
Cost_io: 6803.00 Cost_cpu: 1153772141
Resp_io: 6803.00 Resp_cpu: 1153772141


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 30011.00 resc_cpu: 1333952487
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 3005.22 Resp: 3005.22 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 209892.00 resc_cpu: 2614964235
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 20997.28 Resp: 20997.28 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 3005.22 Degree: 1 Resp: 3005.22 Card: 1173756.34
Bytes: 211

First K Rows: old pf = 0.0000966, new pf = 0.2773070
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 358043.000000 Rounded: 341509 Computed:
341509.09 Non Adjusted: 341509.09
Access Path: TableScan
Cost: 2688.68 Resp: 2688.68 Degree: 0
Cost_io: 2675.00 Cost_cpu: 442439376
Resp_io: 2675.00 Resp_cpu: 442439376


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 139214.00 resc_cpu: 1411461448
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 13925.76 Resp: 13925.76 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 10950.00 resc_cpu: 498037068
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 1096.54 Resp: 1096.54 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 1096.54 Degree: 1 Resp: 1096.54 Card: 341509.09
Bytes: 80

First K Rows: unchanged join prefix len = 1
Join order[7]: F4INVOICE[FINV]#1 SETDETAILS[SD]#0 X4FEEITEM_INVOICE
[XFI]#2 F4FEEITEM[F4]#3

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 4.07 Cost: 1.00 Resp: 1.00 Degree: 1 Bytes:
24
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 3413.94 Resp: 3413.94 Degree: 1
Cost_io: 3395.00 Cost_cpu: 612754871
Resp_io: 3395.00 Resp_cpu: 612754871


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 4677.00 resc_cpu: 234675310
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1874.70 Resp: 1874.70 Degree: 1
Cost_io: 1871.80 Cost_cpu: 93873218
Resp_io: 1871.80 Resp_cpu: 93873218


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 12598.00 resc_cpu: 291084237
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 5043.80 Resp: 5043.80 Degree: 1
Cost_io: 5040.20 Cost_cpu: 116436788
Resp_io: 5040.20 Resp_cpu: 116436788


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 321154.00 resc_cpu: 2488447277
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 128493.37 Resp: 128493.37 Degree: 1
Cost_io: 128462.60 Cost_cpu: 995382005
Resp_io: 128462.60 Resp_cpu: 995382005


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 305670.00 resc_cpu: 2378178900
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 122298.40 Resp: 122298.40 Degree: 1
Cost_io: 122269.00 Cost_cpu: 951274654
Resp_io: 122269.00 Resp_cpu: 951274654


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7929.00 resc_cpu: 257834233
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 3175.79 Resp: 3175.79 Degree: 1
Cost_io: 3172.60 Cost_cpu: 103136787
Resp_io: 3172.60 Resp_cpu: 103136787
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 38386
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
NL Join : Cost: 2.60 Resp: 2.60 Degree: 1
Cost_io: 2.60 Cost_cpu: 18448
Resp_io: 2.60 Resp_cpu: 18448


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 4676.00 resc_cpu: 234668189
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1874.30 Resp: 1874.30 Degree: 1
Cost_io: 1871.40 Cost_cpu: 93870369
Resp_io: 1871.40 Resp_cpu: 93870369
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2.60
resc: 2.60 resc_io: 2.60 resc_cpu: 18448
resp: 2.60 resp_io: 2.60 resc_cpu: 18448
Join Card: 88.438709 = = outer (4.066277) * inner (21.749308) * sel
(1.000000)
Join Card - Rounded: 88 Computed: 88.44
Best:: JoinMethod: NestedLoop
Cost: 2.60 Degree: 1 Resp: 2.60 Card: 88.44 Bytes: 62

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 88.44 Cost: 2.60 Resp: 2.60 Degree: 1 Bytes:
62
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 601636.38 Resp: 601636.38 Degree: 1
Cost_io: 598482.60 Cost_cpu: 102033326643
Resp_io: 598482.60 Resp_cpu: 102033326643
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1.00 resc_cpu: 12607
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 11.40 Resp: 11.40 Degree: 1
Cost_io: 11.40 Cost_cpu: 129391
Resp_io: 11.40 Resp_cpu: 129391
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 20.20 Resp: 20.20 Degree: 1
Cost_io: 20.20 Cost_cpu: 151089
Resp_io: 20.20 Resp_cpu: 151089
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 11.40
resc: 11.40 resc_io: 11.40 resc_cpu: 129391
resp: 11.40 resp_io: 11.40 resc_cpu: 129391
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1.563903 = = outer (88.438709) * inner (1173756.335545) *
sel (0.000000)
Join Card - Rounded: 2 Computed: 1.56
Outer table: SETDETAILS Alias: SD
resc: 99902.85 card 6301302.15 bytes: 62 deg: 1 resp: 99902.85
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 60946 Row size: 79 Total Rows:
6301302
Initial runs: 12 Merge passes: 1 IO Cost / pass: 33014
Total IO sort cost: 93960 Total CPU sort cost: 7945775124
Total Temp space used: 964879000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 231931.33 Resp: 231931.33 [multiMatchCost=0.00]
SM Join
SM cost: 231931.33
resc: 231931.33 resc_io: 231598.70 resc_cpu: 10761488457
resp: 231931.33 resp_io: 231598.70 resp_cpu: 10761488457
Outer table: SETDETAILS Alias: SD
resc: 99902.85 card 6301302.15 bytes: 62 deg: 1 resp: 99902.85
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3005.22 card: 1173756.34 bytes: 131 deg: 1 resp: 3005.22
using dmeth: 2 #groups: 1
Cost per ptn: 30012.79 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 56921 probefrag: 20490
ppasses: 1
Hash join: Resc: 132920.86 Resp: 132920.86 [multiMatchCost=0.00]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: SETDETAILS Alias: SD
resc: 2.60 card: 88.44 bytes: 62 deg: 1 resp: 2.60
using dmeth: 2 #groups: 1
Cost per ptn: 8031.63 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 1
ppasses: 1
Hash join: Resc: 11073.60 Resp: 11073.60 [multiMatchCost=0.00]
HA Join
HA cost: 11073.60 swapped
resc: 11073.60 resc_io: 11060.80 resc_cpu: 414219498
resp: 11073.60 resp_io: 11060.80 resp_cpu: 414219498
Best:: JoinMethod: NestedLoop
Cost: 11.40 Degree: 1 Resp: 11.40 Card: 1.56 Bytes: 193

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1.56 Cost: 11.40 Resp: 11.40 Degree: 1 Bytes:
193
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 5387.84 Resp: 5387.84 Degree: 1
Cost_io: 5360.40 Cost_cpu: 887653582
Resp_io: 5360.40 Resp_cpu: 887653582
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 12.40 Resp: 12.40 Degree: 1
Cost_io: 12.40 Cost_cpu: 131231
Resp_io: 12.40 Resp_cpu: 131231
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 12.40 Resp: 12.40 Degree: 1
Cost_io: 12.40 Cost_cpu: 131231
Resp_io: 12.40 Resp_cpu: 131231
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 9451.00 resc_cpu: 487362029
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 1904.62 Resp: 1904.62 Degree: 1
Cost_io: 1901.60 Cost_cpu: 97601797
Resp_io: 1901.60 Resp_cpu: 97601797
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 12.40
resc: 12.40 resc_io: 12.40 resc_cpu: 131231
resp: 12.40 resp_io: 12.40 resc_cpu: 131231
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 156.390718 = = outer (1.563903) * inner (341509.085948) *
sel (0.000293)
Join Card - Rounded: 156 Computed: 156.39
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 133053.03 card 73255.04 bytes: 193 deg: 1 resp:
133053.03
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2000 Row size: 223 Total Rows:
73255
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1084
Total IO sort cost: 3084 Total CPU sort cost: 134942411
Total Temp space used: 37528000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 153389.49 Resp: 153389.49 [multiMatchCost=0.00]
SM Join
SM cost: 153389.49
resc: 153389.49 resc_io: 153247.20 resc_cpu: 4603447201
resp: 153389.49 resp_io: 153247.20 resp_cpu: 4603447201
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 133053.03 card 73255.04 bytes: 193 deg: 1 resp:
133053.03
Inner table: F4FEEITEM Alias: F4
resc: 1096.54 card: 341509.09 bytes: 42 deg: 1 resp: 1096.54
using dmeth: 2 #groups: 1
Cost per ptn: 1585.47 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1834 probefrag: 2252
ppasses: 1
Hash join: Resc: 135735.04 Resp: 135735.04 [multiMatchCost=0.00]
HA Join
HA cost: 135735.04
resc: 135735.04 resc_io: 135639.70 resc_cpu: 3084353676
resp: 135735.04 resp_io: 135639.70 resp_cpu: 3084353676
Best:: JoinMethod: NestedLoop
Cost: 12.40 Degree: 1 Resp: 12.40 Card: 156.39 Bytes: 235
***********************
Best so far: Table#: 1 cost: 1.0001 card: 4.0663 bytes: 96
Table#: 0 cost: 2.6006 card: 88.4387 bytes: 5456
Table#: 2 cost: 11.4040 card: 1.5639 bytes: 386
Table#: 3 cost: 12.4041 card: 156.3907 bytes: 36660
***********************

****** Recost for ORDER BY (using index) ************
First K Rows: switch to Kmode plans
Access path analysis for F4INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4INVOICE[FINV]
Table: F4INVOICE Alias: FINV
Card: Original: 5.000000 Rounded: 4 Computed: 4.07 Non
Adjusted: 4.07
Access Path: TableScan
Cost: 2.00 Resp: 2.00 Degree: 0
Cost_io: 2.00 Cost_cpu: 8681
Resp_io: 2.00 Resp_cpu: 8681


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4.00 resc_cpu: 30936
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 1.00 Resp: 1.00 Degree: 1
Best:: AccessPath: IndexRange
Index: F4INVOICE_DATE_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 4.07 Bytes: 24

Join order[7]: F4INVOICE[FINV]#1 SETDETAILS[SD]#0 X4FEEITEM_INVOICE
[XFI]#2 F4FEEITEM[F4]#3

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 4.07 Cost: 1.00 Resp: 1.00 Degree: 1 Bytes:
24
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 3413.94 Resp: 3413.94 Degree: 1
Cost_io: 3395.00 Cost_cpu: 612754871
Resp_io: 3395.00 Resp_cpu: 612754871


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 4677.00 resc_cpu: 234675310
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1874.70 Resp: 1874.70 Degree: 1
Cost_io: 1871.80 Cost_cpu: 93873218
Resp_io: 1871.80 Resp_cpu: 93873218


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 12598.00 resc_cpu: 291084237
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 5043.80 Resp: 5043.80 Degree: 1
Cost_io: 5040.20 Cost_cpu: 116436788
Resp_io: 5040.20 Resp_cpu: 116436788


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 321154.00 resc_cpu: 2488447277
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 128493.37 Resp: 128493.37 Degree: 1
Cost_io: 128462.60 Cost_cpu: 995382005
Resp_io: 128462.60 Resp_cpu: 995382005


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 305670.00 resc_cpu: 2378178900
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 122298.40 Resp: 122298.40 Degree: 1
Cost_io: 122269.00 Cost_cpu: 951274654
Resp_io: 122269.00 Resp_cpu: 951274654


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7929.00 resc_cpu: 257834233
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 3175.79 Resp: 3175.79 Degree: 1
Cost_io: 3172.60 Cost_cpu: 103136787
Resp_io: 3172.60 Resp_cpu: 103136787
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 38386
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
NL Join : Cost: 2.60 Resp: 2.60 Degree: 1
Cost_io: 2.60 Cost_cpu: 18448
Resp_io: 2.60 Resp_cpu: 18448


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 4676.00 resc_cpu: 234668189
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1874.30 Resp: 1874.30 Degree: 1
Cost_io: 1871.40 Cost_cpu: 93870369
Resp_io: 1871.40 Resp_cpu: 93870369
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2.60
resc: 2.60 resc_io: 2.60 resc_cpu: 18448
resp: 2.60 resp_io: 2.60 resc_cpu: 18448
Join Card: 88.438709 = = outer (4.066277) * inner (21.749308) * sel
(1.000000)
Join Card - Rounded: 88 Computed: 88.44
Best:: JoinMethod: NestedLoop
Cost: 2.60 Degree: 1 Resp: 2.60 Card: 88.44 Bytes: 62

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 88.44 Cost: 2.60 Resp: 2.60 Degree: 1 Bytes:
62
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 601636.38 Resp: 601636.38 Degree: 1
Cost_io: 598482.60 Cost_cpu: 102033326643
Resp_io: 598482.60 Resp_cpu: 102033326643
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1.00 resc_cpu: 12607
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 11.40 Resp: 11.40 Degree: 1
Cost_io: 11.40 Cost_cpu: 129391
Resp_io: 11.40 Resp_cpu: 129391
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 20.20 Resp: 20.20 Degree: 1
Cost_io: 20.20 Cost_cpu: 151089
Resp_io: 20.20 Resp_cpu: 151089
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 11.40
resc: 11.40 resc_io: 11.40 resc_cpu: 129391
resp: 11.40 resp_io: 11.40 resc_cpu: 129391
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1.563903 = = outer (88.438709) * inner (1173756.335545) *
sel (0.000000)
Join Card - Rounded: 2 Computed: 1.56
Outer table: SETDETAILS Alias: SD
resc: 99902.85 card 6301302.15 bytes: 62 deg: 1 resp: 99902.85
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 60946 Row size: 79 Total Rows:
6301302
Initial runs: 12 Merge passes: 1 IO Cost / pass: 33014
Total IO sort cost: 93960 Total CPU sort cost: 7945775124
Total Temp space used: 964879000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 231931.33 Resp: 231931.33 [multiMatchCost=0.00]
SM Join
SM cost: 231931.33
resc: 231931.33 resc_io: 231598.70 resc_cpu: 10761488457
resp: 231931.33 resp_io: 231598.70 resp_cpu: 10761488457
Outer table: SETDETAILS Alias: SD
resc: 99902.85 card 6301302.15 bytes: 62 deg: 1 resp: 99902.85
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3005.22 card: 1173756.34 bytes: 131 deg: 1 resp: 3005.22
using dmeth: 2 #groups: 1
Cost per ptn: 30012.79 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 56921 probefrag: 20490
ppasses: 1
Hash join: Resc: 132920.86 Resp: 132920.86 [multiMatchCost=0.00]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: SETDETAILS Alias: SD
resc: 2.60 card: 88.44 bytes: 62 deg: 1 resp: 2.60
using dmeth: 2 #groups: 1
Cost per ptn: 8031.63 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 1
ppasses: 1
Hash join: Resc: 11073.60 Resp: 11073.60 [multiMatchCost=0.00]
HA Join
HA cost: 11073.60 swapped
resc: 11073.60 resc_io: 11060.80 resc_cpu: 414219498
resp: 11073.60 resp_io: 11060.80 resp_cpu: 414219498
Best:: JoinMethod: NestedLoop
Cost: 11.40 Degree: 1 Resp: 11.40 Card: 1.56 Bytes: 193

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1.56 Cost: 11.40 Resp: 11.40 Degree: 1 Bytes:
193
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 5387.84 Resp: 5387.84 Degree: 1
Cost_io: 5360.40 Cost_cpu: 887653582
Resp_io: 5360.40 Resp_cpu: 887653582
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 12.40 Resp: 12.40 Degree: 1
Cost_io: 12.40 Cost_cpu: 131231
Resp_io: 12.40 Resp_cpu: 131231
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 12.40 Resp: 12.40 Degree: 1
Cost_io: 12.40 Cost_cpu: 131231
Resp_io: 12.40 Resp_cpu: 131231
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 9451.00 resc_cpu: 487362029
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 1904.62 Resp: 1904.62 Degree: 1
Cost_io: 1901.60 Cost_cpu: 97601797
Resp_io: 1901.60 Resp_cpu: 97601797
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 12.40
resc: 12.40 resc_io: 12.40 resc_cpu: 131231
resp: 12.40 resp_io: 12.40 resc_cpu: 131231
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 156.390718 = = outer (1.563903) * inner (341509.085948) *
sel (0.000293)
Join Card - Rounded: 156 Computed: 156.39
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 133053.03 card 73255.04 bytes: 193 deg: 1 resp:
133053.03
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2000 Row size: 223 Total Rows:
73255
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1084
Total IO sort cost: 3084 Total CPU sort cost: 134942411
Total Temp space used: 37528000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 153389.49 Resp: 153389.49 [multiMatchCost=0.00]
SM Join
SM cost: 153389.49
resc: 153389.49 resc_io: 153247.20 resc_cpu: 4603447201
resp: 153389.49 resp_io: 153247.20 resp_cpu: 4603447201
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 133053.03 card 73255.04 bytes: 193 deg: 1 resp:
133053.03
Inner table: F4FEEITEM Alias: F4
resc: 1096.54 card: 341509.09 bytes: 42 deg: 1 resp: 1096.54
using dmeth: 2 #groups: 1
Cost per ptn: 1585.47 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1834 probefrag: 2252
ppasses: 1
Hash join: Resc: 135735.04 Resp: 135735.04 [multiMatchCost=0.00]
HA Join
HA cost: 135735.04
resc: 135735.04 resc_io: 135639.70 resc_cpu: 3084353676
resp: 135735.04 resp_io: 135639.70 resp_cpu: 3084353676
Join order aborted: cost > best plan cost
***********************

****** Recost for ORDER BY (using index) ************
First K Rows: switch to Kmode plans
Access path analysis for F4INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4INVOICE[FINV]
Table: F4INVOICE Alias: FINV
Card: Original: 5.000000 Rounded: 4 Computed: 4.07 Non
Adjusted: 4.07
Access Path: TableScan
Cost: 2.00 Resp: 2.00 Degree: 0
Cost_io: 2.00 Cost_cpu: 8681
Resp_io: 2.00 Resp_cpu: 8681


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4.00 resc_cpu: 30936
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 1.00 Resp: 1.00 Degree: 1
Best:: AccessPath: IndexRange
Index: F4INVOICE_BATCH_DATE_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 4.07 Bytes: 24

Join order[7]: F4INVOICE[FINV]#1 SETDETAILS[SD]#0 X4FEEITEM_INVOICE
[XFI]#2 F4FEEITEM[F4]#3

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 4.07 Cost: 1.00 Resp: 1.00 Degree: 1 Bytes:
24
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 3413.94 Resp: 3413.94 Degree: 1
Cost_io: 3395.00 Cost_cpu: 612754871
Resp_io: 3395.00 Resp_cpu: 612754871


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 4677.00 resc_cpu: 234675310
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1874.70 Resp: 1874.70 Degree: 1
Cost_io: 1871.80 Cost_cpu: 93873218
Resp_io: 1871.80 Resp_cpu: 93873218


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 12598.00 resc_cpu: 291084237
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 5043.80 Resp: 5043.80 Degree: 1
Cost_io: 5040.20 Cost_cpu: 116436788
Resp_io: 5040.20 Resp_cpu: 116436788


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 321154.00 resc_cpu: 2488447277
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 128493.37 Resp: 128493.37 Degree: 1
Cost_io: 128462.60 Cost_cpu: 995382005
Resp_io: 128462.60 Resp_cpu: 995382005


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 305670.00 resc_cpu: 2378178900
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 122298.40 Resp: 122298.40 Degree: 1
Cost_io: 122269.00 Cost_cpu: 951274654
Resp_io: 122269.00 Resp_cpu: 951274654


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7929.00 resc_cpu: 257834233
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 3175.79 Resp: 3175.79 Degree: 1
Cost_io: 3172.60 Cost_cpu: 103136787
Resp_io: 3172.60 Resp_cpu: 103136787
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 38386
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
NL Join : Cost: 2.60 Resp: 2.60 Degree: 1
Cost_io: 2.60 Cost_cpu: 18448
Resp_io: 2.60 Resp_cpu: 18448


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 4676.00 resc_cpu: 234668189
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1874.30 Resp: 1874.30 Degree: 1
Cost_io: 1871.40 Cost_cpu: 93870369
Resp_io: 1871.40 Resp_cpu: 93870369
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2.60
resc: 2.60 resc_io: 2.60 resc_cpu: 18448
resp: 2.60 resp_io: 2.60 resc_cpu: 18448
Join Card: 88.438709 = = outer (4.066277) * inner (21.749308) * sel
(1.000000)
Join Card - Rounded: 88 Computed: 88.44
Best:: JoinMethod: NestedLoop
Cost: 2.60 Degree: 1 Resp: 2.60 Card: 88.44 Bytes: 62

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 88.44 Cost: 2.60 Resp: 2.60 Degree: 1 Bytes:
62
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 601636.38 Resp: 601636.38 Degree: 1
Cost_io: 598482.60 Cost_cpu: 102033326643
Resp_io: 598482.60 Resp_cpu: 102033326643
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1.00 resc_cpu: 12607
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 11.40 Resp: 11.40 Degree: 1
Cost_io: 11.40 Cost_cpu: 129391
Resp_io: 11.40 Resp_cpu: 129391
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 20.20 Resp: 20.20 Degree: 1
Cost_io: 20.20 Cost_cpu: 151089
Resp_io: 20.20 Resp_cpu: 151089
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 11.40
resc: 11.40 resc_io: 11.40 resc_cpu: 129391
resp: 11.40 resp_io: 11.40 resc_cpu: 129391
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1.563903 = = outer (88.438709) * inner (1173756.335545) *
sel (0.000000)
Join Card - Rounded: 2 Computed: 1.56
Outer table: SETDETAILS Alias: SD
resc: 99902.85 card 6301302.15 bytes: 62 deg: 1 resp: 99902.85
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 60946 Row size: 79 Total Rows:
6301302
Initial runs: 12 Merge passes: 1 IO Cost / pass: 33014
Total IO sort cost: 93960 Total CPU sort cost: 7945775124
Total Temp space used: 964879000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 231931.33 Resp: 231931.33 [multiMatchCost=0.00]
SM Join
SM cost: 231931.33
resc: 231931.33 resc_io: 231598.70 resc_cpu: 10761488457
resp: 231931.33 resp_io: 231598.70 resp_cpu: 10761488457
Outer table: SETDETAILS Alias: SD
resc: 99902.85 card 6301302.15 bytes: 62 deg: 1 resp: 99902.85
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3005.22 card: 1173756.34 bytes: 131 deg: 1 resp: 3005.22
using dmeth: 2 #groups: 1
Cost per ptn: 30012.79 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 56921 probefrag: 20490
ppasses: 1
Hash join: Resc: 132920.86 Resp: 132920.86 [multiMatchCost=0.00]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: SETDETAILS Alias: SD
resc: 2.60 card: 88.44 bytes: 62 deg: 1 resp: 2.60
using dmeth: 2 #groups: 1
Cost per ptn: 8031.63 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 1
ppasses: 1
Hash join: Resc: 11073.60 Resp: 11073.60 [multiMatchCost=0.00]
HA Join
HA cost: 11073.60 swapped
resc: 11073.60 resc_io: 11060.80 resc_cpu: 414219498
resp: 11073.60 resp_io: 11060.80 resp_cpu: 414219498
Best:: JoinMethod: NestedLoop
Cost: 11.40 Degree: 1 Resp: 11.40 Card: 1.56 Bytes: 193

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1.56 Cost: 11.40 Resp: 11.40 Degree: 1 Bytes:
193
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 5387.84 Resp: 5387.84 Degree: 1
Cost_io: 5360.40 Cost_cpu: 887653582
Resp_io: 5360.40 Resp_cpu: 887653582
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 12.40 Resp: 12.40 Degree: 1
Cost_io: 12.40 Cost_cpu: 131231
Resp_io: 12.40 Resp_cpu: 131231
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 12.40 Resp: 12.40 Degree: 1
Cost_io: 12.40 Cost_cpu: 131231
Resp_io: 12.40 Resp_cpu: 131231
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 9451.00 resc_cpu: 487362029
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 1904.62 Resp: 1904.62 Degree: 1
Cost_io: 1901.60 Cost_cpu: 97601797
Resp_io: 1901.60 Resp_cpu: 97601797
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 12.40
resc: 12.40 resc_io: 12.40 resc_cpu: 131231
resp: 12.40 resp_io: 12.40 resc_cpu: 131231
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 156.390718 = = outer (1.563903) * inner (341509.085948) *
sel (0.000293)
Join Card - Rounded: 156 Computed: 156.39
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 133053.03 card 73255.04 bytes: 193 deg: 1 resp:
133053.03
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2000 Row size: 223 Total Rows:
73255
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1084
Total IO sort cost: 3084 Total CPU sort cost: 134942411
Total Temp space used: 37528000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 153389.49 Resp: 153389.49 [multiMatchCost=0.00]
SM Join
SM cost: 153389.49
resc: 153389.49 resc_io: 153247.20 resc_cpu: 4603447201
resp: 153389.49 resp_io: 153247.20 resp_cpu: 4603447201
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 133053.03 card 73255.04 bytes: 193 deg: 1 resp:
133053.03
Inner table: F4FEEITEM Alias: F4
resc: 1096.54 card: 341509.09 bytes: 42 deg: 1 resp: 1096.54
using dmeth: 2 #groups: 1
Cost per ptn: 1585.47 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1834 probefrag: 2252
ppasses: 1
Hash join: Resc: 135735.04 Resp: 135735.04 [multiMatchCost=0.00]
HA Join
HA cost: 135735.04
resc: 135735.04 resc_io: 135639.70 resc_cpu: 3084353676
resp: 135735.04 resp_io: 135639.70 resp_cpu: 3084353676
Join order aborted: cost > best plan cost
***********************
Join order[8]: F4INVOICE[FINV]#1 SETDETAILS[SD]#0 F4FEEITEM[F4]#3
X4FEEITEM_INVOICE[XFI]#2

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 6301302.15 Cost: 99902.85 Resp: 99902.85
Degree: 1 Bytes: 62
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 61060780896.81 Resp: 61060780896.81 Degree: 1
Cost_io: 60750033515.50 Cost_cpu: 10053506925596876
Resp_io: 60750033515.50 Resp_cpu: 10053506925596876


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 502011.00 resc_cpu: 5089807126
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
NL Join : Cost: 316431525480.72 Resp: 316431525480.72 Degree: 1
Cost_io: 316332391703.70 Cost_cpu: 3207242196532556
Resp_io: 316332391703.70 Resp_cpu: 3207242196532556


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 39475.00 resc_cpu: 1795884754
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
NL Join : Cost: 24909467844.29 Resp: 24909467844.29 Degree: 1
Cost_io: 24874489516.50 Cost_cpu: 1131642233580543
Resp_io: 24874489516.50 Resp_cpu: 1131642233580543
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 24909467844.29
resc: 24909467844.29 resc_io: 24874489516.50 resc_cpu:
1131642233580543
resp: 24909467844.29 resp_io: 24874489516.50 resc_cpu:
1131642233580543
Join Card: 7760160715565.263672 = = outer (6301302.146511) * inner
(1231517.000000) * sel (1.000000)
Join Card - Rounded: 7760160715565 Computed: 7760160715565.26
Best:: JoinMethod: NestedLoop
Cost: 24909467844.29 Degree: 1 Resp: 24909467844.29 Card:
7760160715565.26 Bytes: 104

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 7760160715565.26 Cost: 24909467844.29 Resp:
24909467844.29 Degree: 1 Bytes: 104
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 53658442668642776.00 Resp: 53658442668642776.00
Degree: 1
Cost_io: 53377158666399024.00 Cost_cpu: 9100287998345435152384
Resp_io: 53377158666399024.00 Resp_cpu: 9100287998345435152384
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 1.00 resc_cpu: 8901
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 801139050708.09 Resp: 801139050708.09 Degree: 1
Cost_io: 800890561073.00 Cost_cpu: 8039302718401744
Resp_io: 800890561073.00 Resp_cpu: 8039302718401744
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1.00 resc_cpu: 12613
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 801228069236.98 Resp: 801228069236.98 Degree: 1
Cost_io: 800890561073.00 Cost_cpu: 10919289648718150
Resp_io: 800890561073.00 Resp_cpu: 10919289648718150
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: X4FEEITEM_INVOICE_PK
resc_io: 1.00 resc_cpu: 8901
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 801139050708.09 Resp: 801139050708.09 Degree: 1
Cost_io: 800890561073.00 Cost_cpu: 8039302718401744
Resp_io: 800890561073.00 Resp_cpu: 8039302718401744
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 801139050708.09
resc: 801139050708.09 resc_io: 800890561073.00 resc_cpu:
8039302718401744
resp: 801139050708.09 resp_io: 800890561073.00 resc_cpu:
8039302718401744
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
Join selectivity using 2 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 40640899.977307 = = outer (7760160715565.263672) * inner
(1187146.275001) * sel (0.000000)
Join Card - Rounded: 40640900 Computed: 40640899.98
Outer table: F4FEEITEM Alias: F4
resc: 24909467844.29 card 7760160715565.26 bytes: 104 deg: 1
resp: 24909467844.29
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2794463989 Row size: 125 Total Rows:
7760160715565
Initial runs: 23127104 Merge passes: 4 IO Cost / pass:
1513667996
Total IO sort cost: 8849135973 Total CPU sort cost:
15142955447201776
Total Temp space used: 1956038328116000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 34226700575.75 Resp: 34226700575.75
[multiMatchCost=0.00]
SM Join
SM cost: 34226700575.75
resc: 34226700575.75 resc_io: 33723663256.70 resc_cpu:
16274599482130080
resp: 34226700575.75 resp_io: 33723663256.70 resp_cpu:
16274599482130080
Outer table: F4FEEITEM Alias: F4
resc: 24909467844.29 card 7760160715565.26 bytes: 104 deg: 1
resp: 24909467844.29
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 42922754857.84 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 109885088258 probefrag:
20723 ppasses: 1
Hash join: Resc: 67832225863.45 Resp: 67832225863.45
[multiMatchCost=121.95]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4FEEITEM Alias: F4
resc: 24909467844.29 card: 7760160715565.26 bytes: 104 deg: 1
resp: 24909467844.29
using dmeth: 2 #groups: 1
Cost per ptn: 42598077416.87 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag:
109885088258 ppasses: 1
Hash join: Resc: 67507548300.52 Resp: 67507548300.52
[multiMatchCost=0.00]
HA Join
HA cost: 67507548300.52 swapped
resc: 67507548300.52 resc_io: 67410663770.70 resc_cpu:
3134473048430935
resp: 67507548300.52 resp_io: 67410663770.70 resp_cpu:
3134473048430935
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1338443 Row size: 269 Total Rows:
40640900
Initial runs: 261 Merge passes: 2 IO Cost / pass: 724992
Total IO sort cost: 2788427 Total CPU sort cost:
95755709776
Total Temp space used: 11890377000
Best:: JoinMethod: SortMerge
Cost: 34229491962.49 Degree: 1 Resp: 34229491962.49 Card:
40640899.98 Bytes: 235
***********************
Best so far: Table#: 1 cost: 375.1567 card: 248742.2924 bytes:
5969808
Table#: 0 cost: 99902.8534 card: 6301302.1465 bytes:
390680724
Table#: 3 cost: 24909467844.2878 card:
7760160715565.2637 bytes: 807056714418760
Table#: 2 cost: 34229491962.4944 card: 40640899.9773
bytes: 9550611500
***********************
First K Rows: K = 100.00, N = 40640900.00
First K Rows: old pf = 0.0000161, new pf = 0.0000040
Access path analysis for F4INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4INVOICE[FINV]
Table: F4INVOICE Alias: FINV
Card: Original: 2.000000 Rounded: 2 Computed: 2.00 Non
Adjusted: 2.00
Access Path: TableScan
Cost: 2.00 Resp: 2.00 Degree: 0
Cost_io: 2.00 Cost_cpu: 7801
Resp_io: 2.00 Resp_cpu: 7801


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4.00 resc_cpu: 29466
ix_sel: 1.000000 ix_sel_with_filters: 1.000000
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 4.00 resc_cpu: 29466
ix_sel: 1.000000 ix_sel_with_filters: 1.000000
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4.00 resc_cpu: 29466
ix_sel: 1.000000 ix_sel_with_filters: 1.000000
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 4.00 resc_cpu: 29466
ix_sel: 1.000000 ix_sel_with_filters: 1.000000
Cost: 1.00 Resp: 1.00 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4INVOICE_BATCH_DATE_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 2.00 Bytes: 24

First K Rows: old pf = 0.8585757, new pf = 0.6315959
Access path analysis for SETDETAILS
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for SETDETAILS[SD]
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Table: SETDETAILS Alias: SD
Card: Original: 246889.000000 Rounded: 16 Computed: 16.00 Non
Adjusted: 16.00
Access Path: TableScan
Cost: 628.10 Resp: 628.10 Degree: 0
Cost_io: 625.00 Cost_cpu: 100344696
Resp_io: 625.00 Resp_cpu: 100344696


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 3441.00 resc_cpu: 172638228
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 344.63 Resp: 344.63 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 9269.00 resc_cpu: 214141980
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 927.56 Resp: 927.56 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 236253.00 resc_cpu: 1830594917
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 23630.96 Resp: 23630.96 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 224862.00 resc_cpu: 1749474594
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 22491.61 Resp: 22491.61 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 5833.00 resc_cpu: 189672712
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 583.89 Resp: 583.89 Degree: 1
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqRange)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 36136
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 3441.00 resc_cpu: 172638228
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 344.63 Resp: 344.63 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: SETDETAILS_SETID_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 16.00 Bytes: 62

First K Rows: old pf = 0.2773070, new pf = 0.9690518
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 1251182.000000 Rounded: 1193404 Computed:
1193404.20 Non Adjusted: 1193404.20
Access Path: TableScan
Cost: 9391.79 Resp: 9391.79 Degree: 0
Cost_io: 9344.00 Cost_cpu: 1546093114
Resp_io: 9344.00 Resp_cpu: 1546093114


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 486475.00 resc_cpu: 4932290674
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 48662.75 Resp: 48662.75 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 38254.00 resc_cpu: 1740311716
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 3830.78 Resp: 3830.78 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 3830.78 Degree: 1 Resp: 3830.78 Card: 1193404.20
Bytes: 235

First K Rows: old pf = 0.9887206, new pf = 1.0000000
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 1278471.000000 Rounded: 1187146 Computed:
1187146.28 Non Adjusted: 1187146.28
Access Path: TableScan
Cost: 6916.07 Resp: 6916.07 Degree: 0
Cost_io: 6880.00 Cost_cpu: 1166930829
Resp_io: 6880.00 Resp_cpu: 1166930829


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 30352.00 resc_cpu: 1349160084
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 3039.37 Resp: 3039.37 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 212286.00 resc_cpu: 2644792149
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 21236.77 Resp: 21236.77 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 3039.37 Degree: 1 Resp: 3039.37 Card: 1187146.28
Bytes: 193

First K Rows: unchanged join prefix len = 1
Join order[8]: F4INVOICE[FINV]#1 SETDETAILS[SD]#0 F4FEEITEM[F4]#3
X4FEEITEM_INVOICE[XFI]#2

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 2.00 Cost: 1.00 Resp: 1.00 Degree: 1 Bytes:
24
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 1256.97 Resp: 1256.97 Degree: 1
Cost_io: 1250.00 Cost_cpu: 225379544
Resp_io: 1250.00 Resp_cpu: 225379544


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 3441.00 resc_cpu: 172638228
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 690.27 Resp: 690.27 Degree: 1
Cost_io: 689.20 Cost_cpu: 34530592
Resp_io: 689.20 Resp_cpu: 34530592


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 9269.00 resc_cpu: 214141980
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1856.12 Resp: 1856.12 Degree: 1
Cost_io: 1854.80 Cost_cpu: 42831343
Resp_io: 1854.80 Resp_cpu: 42831343


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 236253.00 resc_cpu: 1830594917
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 47262.92 Resp: 47262.92 Degree: 1
Cost_io: 47251.60 Cost_cpu: 366121930
Resp_io: 47251.60 Resp_cpu: 366121930


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 224862.00 resc_cpu: 1749474594
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 44984.22 Resp: 44984.22 Degree: 1
Cost_io: 44973.40 Cost_cpu: 349897865
Resp_io: 44973.40 Resp_cpu: 349897865


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 5833.00 resc_cpu: 189672712
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1168.77 Resp: 1168.77 Degree: 1
Cost_io: 1167.60 Cost_cpu: 37937489
Resp_io: 1167.60 Resp_cpu: 37937489
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 36136
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
NL Join : Cost: 2.00 Resp: 2.00 Degree: 1
Cost_io: 2.00 Cost_cpu: 10174
Resp_io: 2.00 Resp_cpu: 10174


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 3441.00 resc_cpu: 172638228
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 690.27 Resp: 690.27 Degree: 1
Cost_io: 689.20 Cost_cpu: 34530592
Resp_io: 689.20 Resp_cpu: 34530592
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2.00
resc: 2.00 resc_io: 2.00 resc_cpu: 10174
resp: 2.00 resp_io: 2.00 resc_cpu: 10174
Join Card: 32.001126 = = outer (2.000000) * inner (16.000563) * sel
(1.000000)
Join Card - Rounded: 32 Computed: 32.00
Best:: JoinMethod: NestedLoop
Cost: 2.00 Degree: 1 Resp: 2.00 Card: 32.00 Bytes: 62
Reply With Quote
  #11 (permalink)  
Old 11-04-2009, 11:04 AM
lsllcm
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

part-5
==========================================

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 1.06 Cost: 2.50 Resp: 2.50 Degree: 1 Bytes:
300
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 801.56 Resp: 801.56 Degree: 1
Cost_io: 798.00 Cost_cpu: 115210413
Resp_io: 798.00 Resp_cpu: 115210413
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 3.50 Resp: 3.50 Degree: 1
Cost_io: 3.00 Cost_cpu: 16190776
Resp_io: 3.00 Resp_cpu: 16190776
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3052.00 resc_cpu: 120046275
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 308.07 Resp: 308.07 Degree: 1
Cost_io: 307.20 Cost_cpu: 28194557
Resp_io: 307.20 Resp_cpu: 28194557
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 2454.00 resc_cpu: 114871354
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 248.26 Resp: 248.26 Degree: 1
Cost_io: 247.40 Cost_cpu: 27677065
Resp_io: 247.40 Resp_cpu: 27677065
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 2999.00 resc_cpu: 119206769
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 302.77 Resp: 302.77 Degree: 1
Cost_io: 301.90 Cost_cpu: 28110607
Resp_io: 301.90 Resp_cpu: 28110607
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 3.50 Resp: 3.50 Degree: 1
Cost_io: 3.00 Cost_cpu: 16190776
Resp_io: 3.00 Resp_cpu: 16190776
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 3.50
resc: 3.50 resc_io: 3.00 resc_cpu: 16190776
resp: 3.50 resp_io: 3.00 resc_cpu: 16190776
Join Card: 1.061187 = = outer (1.061185) * inner (200076.276865) *
sel (0.000005)
Join Card - Rounded: 1 Computed: 1.06
Outer table: SETDETAILS Alias: SD
resc: 3044.54 card 90650.35 bytes: 169 deg: 1 resp: 3044.54
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2176 Row size: 196 Total Rows:
90650
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1180
Total IO sort cost: 3356 Total CPU sort cost: 153197471
Total Temp space used: 33776000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 8527.50 Resp: 8527.50 [multiMatchCost=0.00]
SM Join
SM cost: 8527.50
resc: 8527.50 resc_io: 8505.90 resc_cpu: 698772155
resp: 8527.50 resp_io: 8505.90 resp_cpu: 698772155
Outer table: SETDETAILS Alias: SD
resc: 3044.54 card 90650.35 bytes: 169 deg: 1 resp: 3044.54
Inner table: F4INVOICE Alias: FINV
resc: 301.87 card: 200076.28 bytes: 24 deg: 1 resp: 301.87
using dmeth: 2 #groups: 1
Cost per ptn: 1118.52 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 2003 probefrag: 880
ppasses: 1
Hash join: Resc: 4464.93 Resp: 4464.93 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: SETDETAILS Alias: SD
resc: 2.50 card: 1.06 bytes: 300 deg: 1 resp: 2.50
using dmeth: 2 #groups: 1
Cost per ptn: 426.79 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 1 ppasses:
1
Hash join: Resc: 804.45 Resp: 804.45 [multiMatchCost=0.00]
HA Join
HA cost: 804.45 swapped
resc: 804.45 resc_io: 801.70 resc_cpu: 88946889
resp: 804.45 resp_io: 801.70 resp_cpu: 88946889
Best:: JoinMethod: NestedLoop
Cost: 3.50 Degree: 1 Resp: 3.50 Card: 1.06 Bytes: 324

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1.06 Cost: 3.50 Resp: 3.50 Degree: 1 Bytes:
324
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 2692.22 Resp: 2692.22 Degree: 1
Cost_io: 2678.00 Cost_cpu: 459952872
Resp_io: 2678.00 Resp_cpu: 459952872
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4.50 Resp: 4.50 Degree: 1
Cost_io: 4.00 Cost_cpu: 16191696
Resp_io: 4.00 Resp_cpu: 16191696
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4.50 Resp: 4.50 Degree: 1
Cost_io: 4.00 Cost_cpu: 16191696
Resp_io: 4.00 Resp_cpu: 16191696
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 9451.00 resc_cpu: 487362029
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 950.11 Resp: 950.11 Degree: 1
Cost_io: 948.10 Cost_cpu: 64926979
Resp_io: 948.10 Resp_cpu: 64926979
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 4.50
resc: 4.50 resc_io: 4.00 resc_cpu: 16191696
resp: 4.50 resp_io: 4.00 resc_cpu: 16191696
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 106.118936 = = outer (1.061187) * inner (341509.085948) *
sel (0.000293)
Join Card - Rounded: 106 Computed: 106.12
Outer table: F4INVOICE Alias: FINV
resc: 4622.37 card 112700.05 bytes: 193 deg: 1 resp: 4622.37
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 3077 Row size: 223 Total Rows:
112700
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1668
Total IO sort cost: 4745 Total CPU sort cost: 193340637
Total Temp space used: 46179000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 26621.64 Resp: 26621.64 [multiMatchCost=0.00]
SM Join
SM cost: 26621.64
resc: 26621.64 resc_io: 26556.40 resc_cpu: 2110644038
resp: 26621.64 resp_io: 26556.40 resp_cpu: 2110644038
Outer table: F4INVOICE Alias: FINV
resc: 4622.37 card 112700.05 bytes: 193 deg: 1 resp: 4622.37
Inner table: F4FEEITEM Alias: F4
resc: 1096.54 card: 341509.09 bytes: 42 deg: 1 resp: 1096.54
using dmeth: 2 #groups: 1
Cost per ptn: 1967.78 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 2821 probefrag: 2252
ppasses: 1
Hash join: Resc: 7686.69 Resp: 7686.69 [multiMatchCost=0.00]
Outer table: F4FEEITEM Alias: F4
resc: 3953.05 card 1231517.00 bytes: 42 deg: 1 resp: 3953.05
Inner table: F4INVOICE Alias: FINV
resc: 3.50 card: 1.06 bytes: 324 deg: 1 resp: 3.50
using dmeth: 2 #groups: 1
Cost per ptn: 3151.24 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 8118 probefrag: 1 ppasses:
1
Hash join: Resc: 7107.79 Resp: 7107.79 [multiMatchCost=0.00]
HA Join
HA cost: 7107.79 swapped
resc: 7107.79 resc_io: 7094.50 resc_cpu: 430001640
resp: 7107.79 resp_io: 7094.50 resp_cpu: 430001640
ORDER BY sort
First K Rows: switch to Amode plans
Join order aborted: cost > best plan cost
***********************
Join order[13]: X4FEEITEM_INVOICE[XFI]#2 SETDETAILS[SD]#0 F4FEEITEM
[F4]#3 F4INVOICE[FINV]#1

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 90650.35 Cost: 3044.54 Resp: 3044.54 Degree:
1 Bytes: 169
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 878430226.52 Resp: 878430226.52 Degree: 1
Cost_io: 873946468.20 Cost_cpu: 145061545340703
Resp_io: 873946468.20 Resp_cpu: 145061545340703
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 12112.12 Resp: 12112.12 Degree: 1
Cost_io: 12101.20 Cost_cpu: 353225765
Resp_io: 12101.20 Resp_cpu: 353225765
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 12112.12 Resp: 12112.12 Degree: 1
Cost_io: 12101.20 Cost_cpu: 353225765
Resp_io: 12101.20 Resp_cpu: 353225765
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 34070.00 resc_cpu: 1757393371
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 309340004.34 Resp: 309340004.34 Degree: 1
Cost_io: 308847586.20 Cost_cpu: 15931040721013
Resp_io: 308847586.20 Resp_cpu: 15931040721013
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 12112.12
resc: 12112.12 resc_io: 12101.20 resc_cpu: 353225765
resp: 12112.12 resp_io: 12101.20 resc_cpu: 353225765
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 90650.350585 = = outer (90650.350585) * inner
(1231517.000000) * sel (0.000001)
Join Card - Rounded: 90650 Computed: 90650.35
Outer table: SETDETAILS Alias: SD
resc: 3044.54 card 90650.35 bytes: 169 deg: 1 resp: 3044.54
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2176 Row size: 196 Total Rows:
90650
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1180
Total IO sort cost: 3356 Total CPU sort cost: 153197471
Total Temp space used: 33776000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 23653.57 Resp: 23653.57 [multiMatchCost=0.00]
SM Join
SM cost: 23653.57
resc: 23653.57 resc_io: 23592.70 resc_cpu: 1969196004
resp: 23653.57 resp_io: 23592.70 resp_cpu: 1969196004
Outer table: SETDETAILS Alias: SD
resc: 3044.54 card 90650.35 bytes: 169 deg: 1 resp: 3044.54
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
Cost per ptn: 3927.82 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 2003 probefrag: 8118
ppasses: 1
Hash join: Resc: 10925.41 Resp: 10925.41 [multiMatchCost=0.00]
HA Join
HA cost: 10925.41
resc: 10925.41 resc_io: 10901.70 resc_cpu: 767001333
resp: 10925.41 resp_io: 10901.70 resp_cpu: 767001333
Best:: JoinMethod: Hash
Cost: 10925.41 Degree: 1 Resp: 10925.41 Card: 90650.35
Bytes: 211

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 90650.35 Cost: 10925.41 Resp: 10925.41 Degree:
1 Bytes: 211
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 89868951.76 Resp: 89868951.76 Degree: 1
Cost_io: 89524001.70 Cost_cpu: 11160054879589
Resp_io: 89524001.70 Resp_cpu: 11160054879589
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 19992.78 Resp: 19992.78 Degree: 1
Cost_io: 19966.70 Cost_cpu: 843704287
Resp_io: 19966.70 Resp_cpu: 843704287
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 34436285.40 Resp: 34436285.40 Degree: 1
Cost_io: 34394446.70 Cost_cpu: 1353593534338
Resp_io: 34394446.70 Resp_cpu: 1353593534338
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 27699188.62 Resp: 27699188.62 Degree: 1
Cost_io: 27659151.70 Cost_cpu: 1295301233863
Resp_io: 27659151.70 Resp_cpu: 1295301233863
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 33828635.66 Resp: 33828635.66 Degree: 1
Cost_io: 33787091.70 Cost_cpu: 1344058002097
Resp_io: 33787091.70 Resp_cpu: 1344058002097
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 19992.78 Resp: 19992.78 Degree: 1
Cost_io: 19966.70 Cost_cpu: 843704287
Resp_io: 19966.70 Resp_cpu: 843704287
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 19992.78
resc: 19992.78 resc_io: 19966.70 resc_cpu: 843704287
resp: 19992.78 resp_io: 19966.70 resc_cpu: 843704287
Join Card: 112700.054052 = = outer (90650.350585) * inner
(248742.292433) * sel (0.000005)
Join Card - Rounded: 112700 Computed: 112700.05
Outer table: F4FEEITEM Alias: F4
resc: 10925.41 card 90650.35 bytes: 211 deg: 1 resp: 10925.41
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2697 Row size: 243 Total Rows:
90650
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1462
Total IO sort cost: 4159 Total CPU sort cost: 166027617
Total Temp space used: 42443000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 17211.76 Resp: 17211.76 [multiMatchCost=0.00]
SM Join
SM cost: 17211.76
resc: 17211.76 resc_io: 17174.40 resc_cpu: 1208788923
resp: 17211.76 resp_io: 17174.40 resp_cpu: 1208788923
Outer table: F4FEEITEM Alias: F4
resc: 10925.41 card 90650.35 bytes: 211 deg: 1 resp: 10925.41
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 1382.91 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 2468 probefrag: 1094
ppasses: 1
Hash join: Resc: 12683.47 Resp: 12683.47 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: F4FEEITEM Alias: F4
resc: 10925.41 card: 90650.35 bytes: 211 deg: 1 resp: 10925.41
using dmeth: 2 #groups: 1
Cost per ptn: 1382.67 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 2468
ppasses: 1
Hash join: Resc: 12683.30 Resp: 12683.30 [multiMatchCost=0.07]
HA Join
HA cost: 12683.30 swapped
resc: 12683.30 resc_io: 12656.40 resc_cpu: 870213841
resp: 12683.30 resp_io: 12656.40 resp_cpu: 870213841
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 3712 Row size: 269 Total Rows:
112700
Initial runs: 2 Merge passes: 1 IO Cost / pass: 2012
Total IO sort cost: 5724 Total CPU sort cost: 208978147
Total Temp space used: 28861000
Best:: JoinMethod: Hash
Cost: 18413.76 Degree: 1 Resp: 18413.76 Card: 112700.05
Bytes: 235
***********************
Best so far: Table#: 2 cost: 3039.3702 card: 1187146.2750 bytes:
155516126
Table#: 0 cost: 3044.5398 card: 90650.3506 bytes:
15319850
Table#: 3 cost: 10925.4075 card: 90650.3506 bytes:
19127150
Table#: 1 cost: 18413.7571 card: 112700.0541 bytes:
26484500
***********************
First K Rows: K = 100.00, N = 112700.00
First K Rows: old pf = 0.0000118, new pf = 0.0009047
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 1157.000000 Rounded: 1074 Computed: 1074.35 Non
Adjusted: 1074.35
Access Path: TableScan
Cost: 8.03 Resp: 8.03 Degree: 0
Cost_io: 8.00 Cost_cpu: 1056158
Resp_io: 8.00 Resp_cpu: 1056158


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 30.00 resc_cpu: 1239718
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 3.00 Resp: 3.00 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 196.00 resc_cpu: 2421877
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 19.61 Resp: 19.61 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 3.00 Degree: 1 Resp: 3.00 Card: 1074.35 Bytes: 131

First K Rows: old pf = 0.2773070, new pf = 1.0000000
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 1291140.000000 Rounded: 1231517 Computed:
1231517.00 Non Adjusted: 1231517.00
Access Path: TableScan
Cost: 9692.31 Resp: 9692.31 Degree: 0
Cost_io: 9643.00 Cost_cpu: 1595464860
Resp_io: 9643.00 Resp_cpu: 1595464860


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 502011.00 resc_cpu: 5089807126
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 50216.83 Resp: 50216.83 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 39475.00 resc_cpu: 1795884754
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 3953.05 Resp: 3953.05 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 3953.05 Degree: 1 Resp: 3953.05 Card: 1231517.00
Bytes: 366

First K Rows: old pf = 0.8043506, new pf = 1.0000000
Access path analysis for F4INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4INVOICE[FINV]
Table: F4INVOICE Alias: FINV
Card: Original: 305860.000000 Rounded: 248742 Computed:
248742.29 Non Adjusted: 248742.29
Access Path: TableScan
Cost: 992.77 Resp: 992.77 Degree: 0
Cost_io: 989.00 Cost_cpu: 121960650
Resp_io: 989.00 Resp_cpu: 121960650


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4748.00 resc_cpu: 156037217
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 475.28 Resp: 475.28 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3747.00 resc_cpu: 147769406
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 375.16 Resp: 375.16 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4643.00 resc_cpu: 154714696
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 464.78 Resp: 464.78 Degree: 1


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 89716.00 resc_cpu: 761518341
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
Cost: 8973.95 Resp: 8973.95 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4INVOICE_BATCH_NBR_IX
Cost: 375.16 Degree: 1 Resp: 375.16 Card: 248742.29
Bytes: 324

First K Rows: unchanged join prefix len = 1
Join order[13]: X4FEEITEM_INVOICE[XFI]#2 SETDETAILS[SD]#0 F4FEEITEM
[F4]#3 F4INVOICE[FINV]#1

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 1074.35 Cost: 3.00 Resp: 3.00 Degree: 1
Bytes: 131
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 998447.68 Resp: 998447.68 Degree: 1
Cost_io: 992179.00 Cost_cpu: 202808443220
Resp_io: 992179.00 Resp_cpu: 202808443220
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 3578.00 resc_cpu: 244871642
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 385093.10 Resp: 385093.10 Degree: 1
Cost_io: 384280.20 Cost_cpu: 26299338340
Resp_io: 384280.20 Resp_cpu: 26299338340
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 405.00 resc_cpu: 76014876
ix_sel: 0.999999 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 43752.35 Resp: 43752.35 Degree: 1
Cost_io: 43500.00 Cost_cpu: 8164121674
Resp_io: 43500.00 Resp_cpu: 8164121674
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: SETDETAILS_PID_IX
resc_io: 1.00 resc_cpu: 8464
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 110.43 Resp: 110.43 Degree: 1
Cost_io: 110.40 Cost_cpu: 1033051
Resp_io: 110.40 Resp_cpu: 1033051
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 331499.00 resc_cpu: 2580141368
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 35611560.81 Resp: 35611560.81 Degree: 1
Cost_io: 35602995.60 Cost_cpu: 277107306938
Resp_io: 35602995.60 Resp_cpu: 277107306938
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7249.00 resc_cpu: 271014448
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 779445.28 Resp: 779445.28 Degree: 1
Cost_io: 778545.60 Cost_cpu: 29107075730
Resp_io: 778545.60 Resp_cpu: 29107075730
OPTIMIZER PERCENT INDEX CACHING = 90
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 1.00 resc_cpu: 18771
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 110.47 Resp: 110.47 Degree: 1
Cost_io: 110.40 Cost_cpu: 2140024
Resp_io: 110.40 Resp_cpu: 2140024
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 3577.00 resc_cpu: 244864521
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 384985.67 Resp: 384985.67 Degree: 1
Cost_io: 384172.80 Cost_cpu: 26298573497
Resp_io: 384172.80 Resp_cpu: 26298573497
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 110.43
resc: 110.43 resc_io: 110.40 resc_cpu: 1033051
resp: 110.43 resp_io: 110.40 resc_cpu: 1033051
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 82.037415 = = outer (1074.352285) * inner (25.332653) *
sel (0.003014)
Join Card - Rounded: 82 Computed: 82.04
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1 Row size: 52 Total Rows: 25
Initial runs: 1 Merge passes: 0 IO Cost / pass: 0
Total IO sort cost: 0 Total CPU sort cost: 32357899
Total Temp space used: 0
SM join: Resc: 37824.88 Resp: 37824.88 [multiMatchCost=0.00]
SM Join
SM cost: 37824.88
resc: 37824.88 resc_io: 37768.20 resc_cpu: 1833709679
resp: 37824.88 resp_io: 37768.20 resp_cpu: 1833709679
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
Cost per ptn: 8031.63 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 1
ppasses: 1
Hash join: Resc: 11072.00 Resp: 11072.00 [multiMatchCost=0.00]
Outer table: SETDETAILS Alias: SD
resc: 1.00 card 25.33 bytes: 38 deg: 1 resp: 1.00
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3.00 card: 1074.35 bytes: 131 deg: 1 resp: 3.00
using dmeth: 2 #groups: 1
Cost per ptn: 0.50 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1 probefrag: 19 ppasses: 1
Hash join: Resc: 4.51 Resp: 4.51 [multiMatchCost=0.00]
HA Join
HA cost: 4.51 swapped
resc: 4.51 resc_io: 4.00 resc_cpu: 16415474
resp: 4.51 resp_io: 4.00 resp_cpu: 16415474
First K Rows: copy A one plan, tab=SETDETAILS
Join order aborted: cost > best plan cost
***********************
Join order[14]: X4FEEITEM_INVOICE[XFI]#2 F4INVOICE[FINV]#1
SETDETAILS[SD]#0 F4FEEITEM[F4]#3

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 1187146.28 Cost: 3039.37 Resp: 3039.37 Degree:
1 Bytes: 131
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 1176777382.55 Resp: 1176777382.55 Degree: 1
Cost_io: 1172260247.20 Cost_cpu: 146141381110383
Resp_io: 1172260247.20 Resp_cpu: 146141381110383
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 121785.02 Resp: 121785.02 Degree: 1
Cost_io: 121749.80 Cost_cpu: 1139412473
Resp_io: 121749.80 Resp_cpu: 1139412473
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 450835123.34 Resp: 450835123.34 Degree: 1
Cost_io: 450287513.00 Cost_cpu: 17716655681044
Resp_io: 450287513.00 Resp_cpu: 17716655681044
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 362606579.59 Resp: 362606579.59 Degree: 1
Cost_io: 362082565.20 Cost_cpu: 16953263829534
Resp_io: 362082565.20 Resp_cpu: 16953263829534
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 442877385.28 Resp: 442877385.28 Degree: 1
Cost_io: 442333634.80 Cost_cpu: 17591779024034
Resp_io: 442333634.80 Resp_cpu: 17591779024034
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 121785.02 Resp: 121785.02 Degree: 1
Cost_io: 121749.80 Cost_cpu: 1139412473
Resp_io: 121749.80 Resp_cpu: 1139412473
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 121785.02
resc: 121785.02 resc_io: 121749.80 resc_cpu: 1139412473
resp: 121785.02 resp_io: 121749.80 resc_cpu: 1139412473
Join Card: 1188973.610473 = = outer (1187146.275001) * inner
(248742.292433) * sel (0.000004)
Join Card - Rounded: 1188974 Computed: 1188973.61
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 5161.60 Resp: 5161.60 [multiMatchCost=0.01]
SM Join
SM cost: 5161.60
resc: 5161.60 resc_io: 5148.90 resc_cpu: 410858781
resp: 5161.60 resp_io: 5148.90 resp_cpu: 410858781
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 8456.31 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 1094
ppasses: 1
Hash join: Resc: 11873.74 Resp: 11873.74 [multiMatchCost=2.91]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 8457.76 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 20723
ppasses: 1
Hash join: Resc: 11872.29 Resp: 11872.29 [multiMatchCost=0.01]
HA Join
HA cost: 11872.29 swapped
resc: 11872.29 resc_io: 11855.90 resc_cpu: 530295770
resp: 11872.29 resp_io: 11855.90 resp_cpu: 530295770
Best:: JoinMethod: SortMerge
Cost: 5161.60 Degree: 1 Resp: 5161.60 Card: 1188973.61
Bytes: 155

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 1188973.61 Cost: 5161.60 Resp: 5161.60 Degree:
1 Bytes: 155
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 1181486176.63 Resp: 1181486176.63 Degree: 1
Cost_io: 1174067434.90 Cost_cpu: 240016089733865
Resp_io: 1174067434.90 Resp_cpu: 240016089733865
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 3823.00 resc_cpu: 261762790
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 455511910.93 Resp: 455511910.93 Degree: 1
Cost_io: 454549909.10 Cost_cpu: 31123326020795
Resp_io: 454549909.10 Resp_cpu: 31123326020795
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 433.00 resc_cpu: 81263079
ix_sel: 0.999999 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 51786380.99 Resp: 51786380.99 Degree: 1
Cost_io: 51487723.10 Cost_cpu: 9662379724384
Resp_io: 51487723.10 Resp_cpu: 9662379724384
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: SETDETAILS_PID_IX
resc_io: 1.00 resc_cpu: 8467
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 124090.12 Resp: 124090.12 Degree: 1
Cost_io: 124046.30 Cost_cpu: 1417610063
Resp_io: 124046.30 Resp_cpu: 1417610063
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 354384.00 resc_cpu: 2758261918
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 42145478090.36 Resp: 42145478090.36 Degree: 1
Cost_io: 42135341350.50 Cost_cpu: 327950581423239
Resp_io: 42135341350.50 Resp_cpu: 327950581423239
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7749.00 resc_cpu: 289721564
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 922405852.98 Resp: 922405852.98 Degree: 1
Cost_io: 921341101.50 Cost_cpu: 34447551490000
Resp_io: 921341101.50 Resp_cpu: 34447551490000
OPTIMIZER PERCENT INDEX CACHING = 90
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 1.00 resc_cpu: 19671
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 124131.29 Resp: 124131.29 Degree: 1
Cost_io: 124046.30 Cost_cpu: 2749741852
Resp_io: 124046.30 Resp_cpu: 2749741852
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 3822.00 resc_cpu: 261755669
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 455392987.36 Resp: 455392987.36 Degree: 1
Cost_io: 454431011.70 Cost_cpu: 31122479300095
Resp_io: 454431011.70 Resp_cpu: 31122479300095
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 124090.12
resc: 124090.12 resc_io: 124046.30 resc_cpu: 1417610063
resp: 124090.12 resp_io: 124046.30 resc_cpu: 1417610063
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 90789.885708 = = outer (1188973.610473) * inner
(25.332653) * sel (0.003014)
Join Card - Rounded: 90790 Computed: 90789.89
Outer table: F4INVOICE Alias: FINV
resc: 5161.60 card 1188973.61 bytes: 155 deg: 1 resp: 5161.60
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 26348 Row size: 181 Total Rows:
1188974
Initial runs: 6 Merge passes: 1 IO Cost / pass: 14274
Total IO sort cost: 40622 Total CPU sort cost: 1762283928
Total Temp space used: 405857000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1 Row size: 52 Total Rows: 25
Initial runs: 1 Merge passes: 0 IO Cost / pass: 0
Total IO sort cost: 0 Total CPU sort cost: 32357899
Total Temp space used: 0
SM join: Resc: 45840.07 Resp: 45840.07 [multiMatchCost=0.00]
SM Join
SM cost: 45840.07
resc: 45840.07 resc_io: 45771.90 resc_cpu: 2205504626
resp: 45840.07 resp_io: 45771.90 resp_cpu: 2205504626
Outer table: F4INVOICE Alias: FINV
resc: 5161.60 card 1188973.61 bytes: 155 deg: 1 resp: 5161.60
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
Cost per ptn: 9393.09 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 24239 probefrag: 1
ppasses: 1
Hash join: Resc: 14555.97 Resp: 14555.97 [multiMatchCost=0.28]
Outer table: SETDETAILS Alias: SD
resc: 1.00 card 25.33 bytes: 38 deg: 1 resp: 1.00
Inner table: F4INVOICE Alias: FINV
resc: 5161.60 card: 1188973.61 bytes: 155 deg: 1 resp: 5161.60
using dmeth: 2 #groups: 1
Cost per ptn: 4.18 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1 probefrag: 24239
ppasses: 1
Hash join: Resc: 5166.77 Resp: 5166.77 [multiMatchCost=0.00]
HA Join
HA cost: 5166.77 swapped
resc: 5166.77 resc_io: 5149.90 resc_cpu: 545940284
resp: 5166.77 resp_io: 5149.90 resp_cpu: 545940284
Best:: JoinMethod: Hash
Cost: 5166.77 Degree: 1 Resp: 5166.77 Card: 90789.89 Bytes:
193

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 90789.89 Cost: 5166.77 Resp: 5166.77 Degree:
1 Bytes: 193
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 879788993.47 Resp: 879788993.47 Degree: 1
Cost_io: 875298301.90 Cost_cpu: 145285854324231
Resp_io: 875298301.90 Resp_cpu: 145285854324231
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 14248.36 Resp: 14248.36 Degree: 1
Cost_io: 14228.90 Cost_cpu: 629480158
Resp_io: 14228.90 Resp_cpu: 629480158
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 14248.36 Resp: 14248.36 Degree: 1
Cost_io: 14228.90 Cost_cpu: 629480158
Resp_io: 14228.90 Resp_cpu: 629480158
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 34070.00 resc_cpu: 1757393371
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 309819867.05 Resp: 309819867.05 Degree: 1
Cost_io: 309326679.90 Cost_cpu: 15955920353777
Resp_io: 309326679.90 Resp_cpu: 15955920353777
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 14248.36
resc: 14248.36 resc_io: 14228.90 resc_cpu: 629480158
resp: 14248.36 resp_io: 14228.90 resc_cpu: 629480158
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 32739848.219760 = = outer (90789.885708) * inner
(1231517.000000) * sel (0.000293)
Join Card - Rounded: 32739848 Computed: 32739848.22
Outer table: SETDETAILS Alias: SD
resc: 5166.77 card 90789.89 bytes: 193 deg: 1 resp: 5166.77
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2479 Row size: 223 Total Rows:
90790
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1344
Total IO sort cost: 3823 Total CPU sort cost: 160772130
Total Temp space used: 38151000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 26340.43 Resp: 26340.43 [multiMatchCost=97.39]
SM Join
SM cost: 26340.43
resc: 26340.43 resc_io: 26173.40 resc_cpu: 5403729337
resp: 26340.43 resp_io: 26173.40 resp_cpu: 5403729337
Outer table: SETDETAILS Alias: SD
resc: 5166.77 card 90789.89 bytes: 193 deg: 1 resp: 5166.77
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
Cost per ptn: 4032.85 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 2272 probefrag: 8118
ppasses: 1
Hash join: Resc: 13250.07 Resp: 13250.07 [multiMatchCost=97.39]
HA Join
HA cost: 13250.07
resc: 13250.07 resc_io: 13120.40 resc_cpu: 4195084566
resp: 13250.07 resp_io: 13120.40 resp_cpu: 4195084566
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1078235 Row size: 269 Total Rows:
32739848
Initial runs: 210 Merge passes: 1 IO Cost / pass: 584046
Total IO sort cost: 1662281 Total CPU sort cost:
63409659445
Total Temp space used: 8651785000
Best:: JoinMethod: Hash
Cost: 1677491.02 Degree: 1 Resp: 1677491.02 Card:
32739848.22 Bytes: 235
***********************
Best so far: Table#: 2 cost: 3039.3702 card: 1187146.2750 bytes:
155516126
Table#: 1 cost: 5161.5994 card: 1188973.6105 bytes:
184290970
Table#: 0 cost: 5166.7747 card: 90789.8857 bytes:
17522470
Table#: 3 cost: 1677491.0188 card: 32739848.2198
bytes: 7693864280
***********************
First K Rows: K = 100.00, N = 32739848.00
First K Rows: old pf = 0.0009047, new pf = 0.0000118
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 16.000000 Rounded: 15 Computed: 14.86 Non
Adjusted: 14.86
Access Path: TableScan
Cost: 2.00 Resp: 2.00 Degree: 0
Cost_io: 2.00 Cost_cpu: 19468
Resp_io: 2.00 Resp_cpu: 19468


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 4.00 resc_cpu: 43272
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 6.00 resc_cpu: 57515
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 1.00 Resp: 1.00 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 14.86 Bytes: 131

First K Rows: old pf = 1.0000000, new pf = 0.9354201
Access path analysis for SETDETAILS
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for SETDETAILS[SD]
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Table: SETDETAILS Alias: SD
Card: Original: 365652.000000 Rounded: 24 Computed: 23.70 Non
Adjusted: 23.70
Access Path: TableScan
Cost: 930.59 Resp: 930.59 Degree: 0
Cost_io: 926.00 Cost_cpu: 148615537
Resp_io: 926.00 Resp_cpu: 148615537


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 5096.00 resc_cpu: 255681988
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 510.39 Resp: 510.39 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 13725.00 resc_cpu: 317132894
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 1373.48 Resp: 1373.48 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 349898.00 resc_cpu: 2711168743
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 34998.18 Resp: 34998.18 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 333029.00 resc_cpu: 2591037172
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 33310.91 Resp: 33310.91 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 8638.00 resc_cpu: 280906129
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 864.67 Resp: 864.67 Degree: 1
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqRange)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 39286
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
Cost: 1.00 Resp: 1.00 Degree: 1


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 5095.00 resc_cpu: 255674867
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
Cost: 510.29 Resp: 510.29 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: SETDETAILS_SETID_IX
Cost: 1.00 Degree: 1 Resp: 1.00 Card: 23.70 Bytes: 300

First K Rows: old pf = 1.0000000, new pf = 0.2800801
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 361623.000000 Rounded: 344924 Computed:
344923.77 Non Adjusted: 344923.77
Access Path: TableScan
Cost: 2715.81 Resp: 2715.81 Degree: 0
Cost_io: 2702.00 Cost_cpu: 446865598
Resp_io: 2702.00 Resp_cpu: 446865598


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 140606.00 resc_cpu: 1425573713
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 14065.01 Resp: 14065.01 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 11059.00 resc_cpu: 503012525
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 1107.45 Resp: 1107.45 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 1107.45 Degree: 1 Resp: 1107.45 Card: 344923.77
Bytes: 42

First K Rows: unchanged join prefix len = 1
Join order[14]: X4FEEITEM_INVOICE[XFI]#2 F4INVOICE[FINV]#1
SETDETAILS[SD]#0 F4FEEITEM[F4]#3

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 14.86 Cost: 1.00 Resp: 1.00 Degree: 1 Bytes:
131
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 14872.08 Resp: 14872.08 Degree: 1
Cost_io: 14815.00 Cost_cpu: 1846549481
Resp_io: 14815.00 Resp_cpu: 1846549481
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 2.50 Resp: 2.50 Degree: 1
Cost_io: 2.50 Cost_cpu: 17019
Resp_io: 2.50 Resp_cpu: 17019
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5697.42 Resp: 5697.42 Degree: 1
Cost_io: 5690.50 Cost_cpu: 223858690
Resp_io: 5690.50 Resp_cpu: 223858690
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4582.62 Resp: 4582.62 Degree: 1
Cost_io: 4576.00 Cost_cpu: 214212970
Resp_io: 4576.00 Resp_cpu: 214212970
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5596.87 Resp: 5596.87 Degree: 1
Cost_io: 5590.00 Cost_cpu: 222280830
Resp_io: 5590.00 Resp_cpu: 222280830
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 2.50 Resp: 2.50 Degree: 1
Cost_io: 2.50 Cost_cpu: 17019
Resp_io: 2.50 Resp_cpu: 17019
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 2.50
resc: 2.50 resc_io: 2.50 resc_cpu: 17019
resp: 2.50 resp_io: 2.50 resc_cpu: 17019
Join Card: 14.879945 = = outer (14.857076) * inner (248742.292433) *
sel (0.000004)
Join Card - Rounded: 15 Computed: 14.88
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 1.00 card 14.86 bytes: 131 deg: 1 resp: 1.00
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 2123.22 Resp: 2123.22 [multiMatchCost=0.00]
SM Join
SM cost: 2123.22
resc: 2123.22 resc_io: 2114.70 resc_cpu: 275764300
resp: 2123.22 resp_io: 2114.70 resp_cpu: 275764300
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 8456.31 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 1094
ppasses: 1
Hash join: Resc: 11870.84 Resp: 11870.84 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 1.00 card: 14.86 bytes: 131 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
Cost per ptn: 426.79 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 1 ppasses:
1
Hash join: Resc: 802.95 Resp: 802.95 [multiMatchCost=0.00]
HA Join
HA cost: 802.95 swapped
resc: 802.95 resc_io: 800.70 resc_cpu: 72764086
resp: 802.95 resp_io: 800.70 resp_cpu: 72764086
Best:: JoinMethod: NestedLoop
Cost: 2.50 Degree: 1 Resp: 2.50 Card: 14.88 Bytes: 155

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 14.88 Cost: 2.50 Resp: 2.50 Degree: 1 Bytes:
155
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 13949.05 Resp: 13949.05 Degree: 1
Cost_io: 13861.50 Cost_cpu: 2832535445
Resp_io: 13861.50 Resp_cpu: 2832535445
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 3578.00 resc_cpu: 244871642
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5380.85 Resp: 5380.85 Degree: 1
Cost_io: 5369.50 Cost_cpu: 367324483
Resp_io: 5369.50 Resp_cpu: 367324483
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 405.00 resc_cpu: 76014876
ix_sel: 0.999999 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 613.52 Resp: 613.52 Degree: 1
Cost_io: 610.00 Cost_cpu: 114039334
Resp_io: 610.00 Resp_cpu: 114039334
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: SETDETAILS_PID_IX
resc_io: 1.00 resc_cpu: 8464
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4.00 Resp: 4.00 Degree: 1
Cost_io: 4.00 Cost_cpu: 29716
Resp_io: 4.00 Resp_cpu: 29716
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 331499.00 resc_cpu: 2580141368
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 497370.63 Resp: 497370.63 Degree: 1
Cost_io: 497251.00 Cost_cpu: 3870229072
Resp_io: 497251.00 Resp_cpu: 3870229072
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7249.00 resc_cpu: 271014448
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 10888.57 Resp: 10888.57 Degree: 1
Cost_io: 10876.00 Cost_cpu: 406538692
Resp_io: 10876.00 Resp_cpu: 406538692
OPTIMIZER PERCENT INDEX CACHING = 90
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 1.00 resc_cpu: 18771
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4.00 Resp: 4.00 Degree: 1
Cost_io: 4.00 Cost_cpu: 45177
Resp_io: 4.00 Resp_cpu: 45177
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 3577.00 resc_cpu: 244864521
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5379.35 Resp: 5379.35 Degree: 1
Cost_io: 5368.00 Cost_cpu: 367313800
Resp_io: 5368.00 Resp_cpu: 367313800
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 4.00
resc: 4.00 resc_io: 4.00 resc_cpu: 29716
resp: 4.00 resp_io: 4.00 resc_cpu: 29716
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 390896
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1.062819 = = outer (14.879945) * inner (23.695906) * sel
(0.003014)
Join Card - Rounded: 1 Computed: 1.06
Outer table: F4INVOICE Alias: FINV
resc: 5161.60 card 1188973.61 bytes: 155 deg: 1 resp: 5161.60
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 26348 Row size: 181 Total Rows:
1188974
Initial runs: 6 Merge passes: 1 IO Cost / pass: 14274
Total IO sort cost: 40622 Total CPU sort cost: 1762283928
Total Temp space used: 405857000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1 Row size: 52 Total Rows: 25
Initial runs: 1 Merge passes: 0 IO Cost / pass: 0
Total IO sort cost: 0 Total CPU sort cost: 32357899
Total Temp space used: 0
SM join: Resc: 45840.07 Resp: 45840.07 [multiMatchCost=0.00]
SM Join
SM cost: 45840.07
resc: 45840.07 resc_io: 45771.90 resc_cpu: 2205504626
resp: 45840.07 resp_io: 45771.90 resp_cpu: 2205504626
Outer table: F4INVOICE Alias: FINV
resc: 5161.60 card 1188973.61 bytes: 155 deg: 1 resp: 5161.60
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 23.70 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
Cost per ptn: 9393.09 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 24239 probefrag: 1
ppasses: 1
Hash join: Resc: 14555.69 Resp: 14555.69 [multiMatchCost=0.00]
Outer table: SETDETAILS Alias: SD
resc: 1.00 card 25.33 bytes: 38 deg: 1 resp: 1.00
Inner table: F4INVOICE Alias: FINV
resc: 2.50 card: 14.88 bytes: 155 deg: 1 resp: 2.50
using dmeth: 2 #groups: 1
Cost per ptn: 0.50 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1 probefrag: 1 ppasses: 1
Hash join: Resc: 4.00 Resp: 4.00 [multiMatchCost=0.00]
HA Join
HA cost: 4.00 swapped
resc: 4.00 resc_io: 3.50 resc_cpu: 16202622
resp: 4.00 resp_io: 3.50 resp_cpu: 16202622
First K Rows: copy A one plan, tab=SETDETAILS
Best:: JoinMethod: Hash
Cost: 4.00 Degree: 1 Resp: 4.00 Card: 1.06 Bytes: 348

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1.06 Cost: 4.00 Resp: 4.00 Degree: 1 Bytes:
348
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 2719.85 Resp: 2719.85 Degree: 1
Cost_io: 2705.50 Cost_cpu: 464404140
Resp_io: 2705.50 Resp_cpu: 464404140
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5.00 Resp: 5.00 Degree: 1
Cost_io: 4.50 Cost_cpu: 16203542
Resp_io: 4.50 Resp_cpu: 16203542
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 5.00 Resp: 5.00 Degree: 1
Cost_io: 4.50 Cost_cpu: 16203542
Resp_io: 4.50 Resp_cpu: 16203542
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 9545.00 resc_cpu: 492230665
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 960.02 Resp: 960.02 Degree: 1
Cost_io: 958.00 Cost_cpu: 65425689
Resp_io: 958.00 Resp_cpu: 65425689
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 5.00
resc: 5.00 resc_io: 4.50 resc_cpu: 16203542
resp: 5.00 resp_io: 4.50 resc_cpu: 16203542
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
192 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000293 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 107.344828 = = outer (1.062819) * inner (344923.766664) *
sel (0.000293)
Join Card - Rounded: 107 Computed: 107.34
Outer table: SETDETAILS Alias: SD
resc: 5166.77 card 90789.89 bytes: 193 deg: 1 resp: 5166.77
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2479 Row size: 223 Total Rows:
90790
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1344
Total IO sort cost: 3823 Total CPU sort cost: 160772130
Total Temp space used: 38151000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 26243.04 Resp: 26243.04 [multiMatchCost=0.00]
SM Join
SM cost: 26243.04
resc: 26243.04 resc_io: 26173.40 resc_cpu: 2252896237
resp: 26243.04 resp_io: 26173.40 resp_cpu: 2252896237
Outer table: SETDETAILS Alias: SD
resc: 5166.77 card 90789.89 bytes: 193 deg: 1 resp: 5166.77
Inner table: F4FEEITEM Alias: F4
resc: 1107.45 card: 344923.77 bytes: 42 deg: 1 resp: 1107.45
using dmeth: 2 #groups: 1
Cost per ptn: 1763.63 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 2272 probefrag: 2274
ppasses: 1
Hash join: Resc: 8037.86 Resp: 8037.86 [multiMatchCost=0.00]
HA Join
HA cost: 8037.86
resc: 8037.86 resc_io: 8015.80 resc_cpu: 713670916
resp: 8037.86 resp_io: 8015.80 resp_cpu: 713670916
ORDER BY sort
First K Rows: switch to Amode plans
Join order aborted: cost > best plan cost
***********************
Join order[15]: X4FEEITEM_INVOICE[XFI]#2 F4INVOICE[FINV]#1 F4FEEITEM
[F4]#3 SETDETAILS[SD]#0

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1188973.61 Cost: 5161.60 Resp: 5161.60 Degree:
1 Bytes: 155
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 11521539395.74 Resp: 11521539395.74 Degree: 1
Cost_io: 11462730092.90 Cost_cpu: 1902637862676110
Resp_io: 11462730092.90 Resp_cpu: 1902637862676110
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 124092.82 Resp: 124092.82 Degree: 1
Cost_io: 124046.30 Cost_cpu: 1504886074
Resp_io: 124046.30 Resp_cpu: 1504886074
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 124092.82 Resp: 124092.82 Degree: 1
Cost_io: 124046.30 Cost_cpu: 1504886074
Resp_io: 124046.30 Resp_cpu: 1504886074
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 34070.00 resc_cpu: 1757393371
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4057298073.26 Resp: 4057298073.26 Degree: 1
Cost_io: 4050839566.90 Cost_cpu: 208949913424137
Resp_io: 4050839566.90 Resp_cpu: 208949913424137
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 124092.82
resc: 124092.82 resc_io: 124046.30 resc_cpu: 1504886074
resp: 124092.82 resp_io: 124046.30 resc_cpu: 1504886074
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1188973.610473 = = outer (1188973.610473) * inner
(1231517.000000) * sel (0.000001)
Join Card - Rounded: 1188974 Computed: 1188973.61
Outer table: F4INVOICE Alias: FINV
resc: 5161.60 card 1188973.61 bytes: 155 deg: 1 resp: 5161.60
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 26348 Row size: 181 Total Rows:
1188974
Initial runs: 6 Merge passes: 1 IO Cost / pass: 14274
Total IO sort cost: 40622 Total CPU sort cost: 1762283928
Total Temp space used: 405857000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 63086.36 Resp: 63086.36 [multiMatchCost=0.00]
SM Join
SM cost: 63086.36
resc: 63086.36 resc_io: 62971.40 resc_cpu: 3719326531
resp: 63086.36 resp_io: 62971.40 resp_cpu: 3719326531
Outer table: F4INVOICE Alias: FINV
resc: 5161.60 card 1188973.61 bytes: 155 deg: 1 resp: 5161.60
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
Cost per ptn: 12543.73 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 24239 probefrag: 8118
ppasses: 1
Hash join: Resc: 21658.38 Resp: 21658.38 [multiMatchCost=0.00]
Outer table: F4FEEITEM Alias: F4
resc: 3953.05 card 1231517.00 bytes: 42 deg: 1 resp: 3953.05
Inner table: F4INVOICE Alias: FINV
resc: 5161.60 card: 1188973.61 bytes: 155 deg: 1 resp: 5161.60
using dmeth: 2 #groups: 1
Cost per ptn: 12543.66 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 8118 probefrag: 24239
ppasses: 1
Hash join: Resc: 21658.31 Resp: 21658.31 [multiMatchCost=0.00]
HA Join
HA cost: 21658.31 swapped
resc: 21658.31 resc_io: 21622.40 resc_cpu: 1161888968
resp: 21658.31 resp_io: 21622.40 resp_cpu: 1161888968
Best:: JoinMethod: Hash
Cost: 21658.31 Degree: 1 Resp: 21658.31 Card: 1188973.61
Bytes: 197

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 1188973.61 Cost: 21658.31 Resp: 21658.31
Degree: 1 Bytes: 197
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 1181502673.34 Resp: 1181502673.34 Degree: 1
Cost_io: 1174083908.40 Cost_cpu: 240016840764052
Resp_io: 1174083908.40 Resp_cpu: 240016840764052
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 3823.00 resc_cpu: 261762790
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 455528407.64 Resp: 455528407.64 Degree: 1
Cost_io: 454566382.60 Cost_cpu: 31124077050981
Resp_io: 454566382.60 Resp_cpu: 31124077050981
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 433.00 resc_cpu: 81263079
ix_sel: 0.999999 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 51802877.71 Resp: 51802877.71 Degree: 1
Cost_io: 51504196.60 Cost_cpu: 9663130754570
Resp_io: 51504196.60 Resp_cpu: 9663130754570
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: SETDETAILS_PID_IX
resc_io: 1.00 resc_cpu: 8467
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 140586.83 Resp: 140586.83 Degree: 1
Cost_io: 140519.80 Cost_cpu: 2168640250
Resp_io: 140519.80 Resp_cpu: 2168640250
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 354384.00 resc_cpu: 2758261918
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 42145494587.07 Resp: 42145494587.07 Degree: 1
Cost_io: 42135357824.00 Cost_cpu: 327951332453425
Resp_io: 42135357824.00 Resp_cpu: 327951332453425
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7749.00 resc_cpu: 289721564
ix_sel: 0.999999 ix_sel_with_filters: 0.999999

*** 2009-11-04 12:27:18.070
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 922422349.70 Resp: 922422349.70 Degree: 1
Cost_io: 921357575.00 Cost_cpu: 34448302520187
Resp_io: 921357575.00 Resp_cpu: 34448302520187
OPTIMIZER PERCENT INDEX CACHING = 90
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 1.00 resc_cpu: 19671
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 140628.01 Resp: 140628.01 Degree: 1
Cost_io: 140519.80 Cost_cpu: 3500772038
Resp_io: 140519.80 Resp_cpu: 3500772038
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 3822.00 resc_cpu: 261755669
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 455409484.07 Resp: 455409484.07 Degree: 1
Cost_io: 454447485.20 Cost_cpu: 31123230330281
Resp_io: 454447485.20 Resp_cpu: 31123230330281
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 140586.83
resc: 140586.83 resc_io: 140519.80 resc_cpu: 2168640250
resp: 140586.83 resp_io: 140519.80 resc_cpu: 2168640250
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 90789.885708 = = outer (1188973.610473) * inner
(25.332653) * sel (0.003014)
Join Card - Rounded: 90790 Computed: 90789.89
Outer table: F4FEEITEM Alias: F4
resc: 21658.31 card 1188973.61 bytes: 197 deg: 1 resp:
21658.31
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 33044 Row size: 227 Total Rows:
1188974
Initial runs: 7 Merge passes: 1 IO Cost / pass: 17900
Total IO sort cost: 50944 Total CPU sort cost: 1927179624
Total Temp space used: 526509000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1 Row size: 52 Total Rows: 25
Initial runs: 1 Merge passes: 0 IO Cost / pass: 0
Total IO sort cost: 0 Total CPU sort cost: 32357899
Total Temp space used: 0
SM join: Resc: 72663.88 Resp: 72663.88 [multiMatchCost=0.00]
SM Join
SM cost: 72663.88
resc: 72663.88 resc_io: 72567.40 resc_cpu: 3121430509
resp: 72663.88 resp_io: 72567.40 resp_cpu: 3121430509
Outer table: F4FEEITEM Alias: F4
resc: 21658.31 card 1188973.61 bytes: 197 deg: 1 resp:
21658.31
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
Cost per ptn: 11752.86 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 30334 probefrag: 1
ppasses: 1
Hash join: Resc: 33412.45 Resp: 33412.45 [multiMatchCost=0.28]
Outer table: SETDETAILS Alias: SD
resc: 1.00 card 25.33 bytes: 38 deg: 1 resp: 1.00
Inner table: F4FEEITEM Alias: F4
resc: 21658.31 card: 1188973.61 bytes: 197 deg: 1 resp:
21658.31
using dmeth: 2 #groups: 1
Cost per ptn: 4.18 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1 probefrag: 30334
ppasses: 1
Hash join: Resc: 21663.49 Resp: 21663.49 [multiMatchCost=0.00]
HA Join
HA cost: 21663.49 swapped
resc: 21663.49 resc_io: 21623.40 resc_cpu: 1296970470
resp: 21663.49 resp_io: 21623.40 resp_cpu: 1296970470
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2991 Row size: 269 Total Rows:
90790
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1622
Total IO sort cost: 4613 Total CPU sort cost: 173380642
Total Temp space used: 23258000
Best:: JoinMethod: Hash
Cost: 26281.85 Degree: 1 Resp: 26281.85 Card: 90789.89
Bytes: 235
***********************
Best so far: Table#: 2 cost: 3039.3702 card: 1187146.2750 bytes:
155516126
Table#: 1 cost: 5161.5994 card: 1188973.6105 bytes:
184290970
Table#: 3 cost: 21658.3132 card: 1188973.6105 bytes:
234227878
Table#: 0 cost: 26281.8476 card: 90789.8857 bytes:
21335650
***********************
First K Rows: K = 100.00, N = 90790.00
First K Rows: old pf = 0.0000118, new pf = 0.0011018
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 1409.000000 Rounded: 1308 Computed: 1308.35 Non
Adjusted: 1308.35
Access Path: TableScan
Cost: 9.04 Resp: 9.04 Degree: 0
Cost_io: 9.00 Cost_cpu: 1286129
Resp_io: 9.00 Resp_cpu: 1286129


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 37.00 resc_cpu: 1512492
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 3.70 Resp: 3.70 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 238.00 resc_cpu: 2943902
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 23.81 Resp: 23.81 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 3.70 Degree: 1 Resp: 3.70 Card: 1308.35 Bytes: 131

First K Rows: old pf = 0.2800801, new pf = 1.0000000
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 1291140.000000 Rounded: 1231517 Computed:
1231517.00 Non Adjusted: 1231517.00
Access Path: TableScan
Cost: 9692.31 Resp: 9692.31 Degree: 0
Cost_io: 9643.00 Cost_cpu: 1595464860
Resp_io: 9643.00 Resp_cpu: 1595464860


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 502011.00 resc_cpu: 5089807126
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 50216.83 Resp: 50216.83 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 39475.00 resc_cpu: 1795884754
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 3953.05 Resp: 3953.05 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 3953.05 Degree: 1 Resp: 3953.05 Card: 1231517.00
Bytes: 390

First K Rows: unchanged join prefix len = 1
Join order[15]: X4FEEITEM_INVOICE[XFI]#2 F4INVOICE[FINV]#1 F4FEEITEM
[F4]#3 SETDETAILS[SD]#0

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 1308.35 Cost: 3.70 Resp: 3.70 Degree: 1
Bytes: 131
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 1296577.69 Resp: 1296577.69 Degree: 1
Cost_io: 1291600.70 Cost_cpu: 161018888643
Resp_io: 1291600.70 Resp_cpu: 161018888643
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 134.54 Resp: 134.54 Degree: 1
Cost_io: 134.50 Cost_cpu: 1258006
Resp_io: 134.50 Resp_cpu: 1258006
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 496731.46 Resp: 496731.46 Degree: 1
Cost_io: 496128.10 Cost_cpu: 19520251692
Resp_io: 496128.10 Resp_cpu: 19520251692
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 399521.06 Resp: 399521.06 Degree: 1
Cost_io: 398943.70 Cost_cpu: 18679144919
Resp_io: 398943.70 Resp_cpu: 18679144919
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 487963.61 Resp: 487963.61 Degree: 1
Cost_io: 487364.50 Cost_cpu: 19382662325
Resp_io: 487364.50 Resp_cpu: 19382662325
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 134.54 Resp: 134.54 Degree: 1
Cost_io: 134.50 Cost_cpu: 1258006
Resp_io: 134.50 Resp_cpu: 1258006
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 134.54
resc: 134.54 resc_io: 134.50 resc_cpu: 1258006
resp: 134.54 resp_io: 134.50 resc_cpu: 1258006
Join Card: 1310.365129 = = outer (1308.351227) * inner
(248742.292433) * sel (0.000004)
Join Card - Rounded: 1310 Computed: 1310.37
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3.70 card 1308.35 bytes: 131 deg: 1 resp: 3.70
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 2125.93 Resp: 2125.93 [multiMatchCost=0.00]
SM Join
SM cost: 2125.93
resc: 2125.93 resc_io: 2117.40 resc_cpu: 275911222
resp: 2125.93 resp_io: 2117.40 resp_cpu: 275911222
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 8456.31 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 1094
ppasses: 1
Hash join: Resc: 11870.84 Resp: 11870.84 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3.70 card: 1308.35 bytes: 131 deg: 1 resp: 3.70
using dmeth: 2 #groups: 1
Cost per ptn: 434.80 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 23
ppasses: 1
Hash join: Resc: 813.66 Resp: 813.66 [multiMatchCost=0.00]
HA Join
HA cost: 813.66 swapped
resc: 813.66 resc_io: 811.40 resc_cpu: 73260062
resp: 813.66 resp_io: 811.40 resp_cpu: 73260062
Join order aborted: cost > best plan cost
***********************
Join order[16]: X4FEEITEM_INVOICE[XFI]#2 F4FEEITEM[F4]#3 SETDETAILS
[SD]#0 F4INVOICE[FINV]#1

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1187146.28 Cost: 3039.37 Resp: 3039.37 Degree:
1 Bytes: 131
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 11503823374.58 Resp: 11503823374.58 Degree: 1
Cost_io: 11445104497.20 Cost_cpu: 1899712357702322
Resp_io: 11445104497.20 Resp_cpu: 1899712357702322
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 121787.73 Resp: 121787.73 Degree: 1
Cost_io: 121749.80 Cost_cpu: 1227261277
Resp_io: 121749.80 Resp_cpu: 1227261277
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 121787.73 Resp: 121787.73 Degree: 1
Cost_io: 121749.80 Cost_cpu: 1227261277
Resp_io: 121749.80 Resp_cpu: 1227261277
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 34070.00 resc_cpu: 1757393371
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 4051058025.36 Resp: 4051058025.36 Degree: 1
Cost_io: 4044609457.20 Cost_cpu: 208628385973182
Resp_io: 4044609457.20 Resp_cpu: 208628385973182
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 121787.73
resc: 121787.73 resc_io: 121749.80 resc_cpu: 1227261277
resp: 121787.73 resp_io: 121749.80 resc_cpu: 1227261277
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1187146.275001 = = outer (1187146.275001) * inner
(1231517.000000) * sel (0.000001)
Join Card - Rounded: 1187146 Computed: 1187146.28
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 55071.17 Resp: 55071.17 [multiMatchCost=0.00]
SM Join
SM cost: 55071.17
resc: 55071.17 resc_io: 54967.70 resc_cpu: 3347531584
resp: 55071.17 resp_io: 54967.70 resp_cpu: 3347531584
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
Cost per ptn: 11182.27 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 8118
ppasses: 1
Hash join: Resc: 18174.70 Resp: 18174.70 [multiMatchCost=0.00]
Outer table: F4FEEITEM Alias: F4
resc: 3953.05 card 1231517.00 bytes: 42 deg: 1 resp: 3953.05
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 11182.21 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 8118 probefrag: 20723
ppasses: 1
Hash join: Resc: 18174.63 Resp: 18174.63 [multiMatchCost=0.00]
HA Join
HA cost: 18174.63 swapped
resc: 18174.63 resc_io: 18147.70 resc_cpu: 871156375
resp: 18174.63 resp_io: 18147.70 resp_cpu: 871156375
Best:: JoinMethod: Hash
Cost: 18174.63 Degree: 1 Resp: 18174.63 Card: 1187146.28
Bytes: 173

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 1187146.28 Cost: 18174.63 Resp: 18174.63
Degree: 1 Bytes: 173
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 1179682709.66 Resp: 1179682709.66 Degree: 1
Cost_io: 1172275359.70 Cost_cpu: 239647535518960
Resp_io: 1172275359.70 Resp_cpu: 239647535518960
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 3823.00 resc_cpu: 261762790
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 454824600.54 Resp: 454824600.54 Degree: 1
Cost_io: 453864063.50 Cost_cpu: 31075936080355
Resp_io: 453864063.50 Resp_cpu: 31075936080355
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 433.00 resc_cpu: 81263079
ix_sel: 0.999999 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 51719782.47 Resp: 51719782.47 Degree: 1
Cost_io: 51421569.50 Cost_cpu: 9647985131049
Resp_io: 51421569.50 Resp_cpu: 9647985131049
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: SETDETAILS_PID_IX
resc_io: 1.00 resc_cpu: 8467
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 136920.30 Resp: 136920.30 Degree: 1
Cost_io: 136862.30 Cost_cpu: 1876359817
Resp_io: 136862.30 Resp_cpu: 1876359817
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 354384.00 resc_cpu: 2758261918
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 42080694123.37 Resp: 42080694123.37 Degree: 1
Cost_io: 42070572954.10 Cost_cpu: 327446831442229
Resp_io: 42070572954.10 Resp_cpu: 327446831442229
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7749.00 resc_cpu: 289721564
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 921000711.82 Resp: 921000711.82 Degree: 1
Cost_io: 919937583.10 Cost_cpu: 34395050685775
Resp_io: 919937583.10 Resp_cpu: 34395050685775
OPTIMIZER PERCENT INDEX CACHING = 90
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 1.00 resc_cpu: 19671
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 136961.41 Resp: 136961.41 Degree: 1
Cost_io: 136862.30 Cost_cpu: 3206443506
Resp_io: 136862.30 Resp_cpu: 3206443506
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 3822.00 resc_cpu: 261755669
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 454705859.81 Resp: 454705859.81 Degree: 1
Cost_io: 453745348.90 Cost_cpu: 31075090661454
Resp_io: 453745348.90 Resp_cpu: 31075090661454
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 136920.30
resc: 136920.30 resc_io: 136862.30 resc_cpu: 1876359817
resp: 136920.30 resp_io: 136862.30 resc_cpu: 1876359817
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 90650.350585 = = outer (1187146.275001) * inner
(25.332653) * sel (0.003014)
Join Card - Rounded: 90650 Computed: 90650.35
Outer table: F4FEEITEM Alias: F4
resc: 18174.63 card 1187146.28 bytes: 173 deg: 1 resp:
18174.63
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 29214 Row size: 201 Total Rows:
1187146
Initial runs: 6 Merge passes: 1 IO Cost / pass: 15826
Total IO sort cost: 45040 Total CPU sort cost: 1831081189
Total Temp space used: 463119000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1 Row size: 52 Total Rows: 25
Initial runs: 1 Merge passes: 0 IO Cost / pass: 0
Total IO sort cost: 0 Total CPU sort cost: 32357899
Total Temp space used: 0
SM join: Resc: 63273.22 Resp: 63273.22 [multiMatchCost=0.00]
SM Join
SM cost: 63273.22
resc: 63273.22 resc_io: 63188.70 resc_cpu: 2734599482
resp: 63273.22 resp_io: 63188.70 resp_cpu: 2734599482
Outer table: F4FEEITEM Alias: F4
resc: 18174.63 card 1187146.28 bytes: 173 deg: 1 resp:
18174.63
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
Cost per ptn: 10388.40 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 26810 probefrag: 1
ppasses: 1
Hash join: Resc: 28564.31 Resp: 28564.31 [multiMatchCost=0.28]
Outer table: SETDETAILS Alias: SD
resc: 1.00 card 25.33 bytes: 38 deg: 1 resp: 1.00
Inner table: F4FEEITEM Alias: F4
resc: 18174.63 card: 1187146.28 bytes: 173 deg: 1 resp:
18174.63
using dmeth: 2 #groups: 1
Cost per ptn: 4.17 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1 probefrag: 26810
ppasses: 1
Hash join: Resc: 18179.80 Resp: 18179.80 [multiMatchCost=0.00]
HA Join
HA cost: 18179.80 swapped
resc: 18179.80 resc_io: 18148.70 resc_cpu: 1006055078
resp: 18179.80 resp_io: 18148.70 resp_cpu: 1006055078
Best:: JoinMethod: Hash
Cost: 18179.80 Degree: 1 Resp: 18179.80 Card: 90650.35
Bytes: 211

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 90650.35 Cost: 18179.80 Resp: 18179.80 Degree:
1 Bytes: 211
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 89876206.15 Resp: 89876206.15 Degree: 1
Cost_io: 89531248.70 Cost_cpu: 11160293933334
Resp_io: 89531248.70 Resp_cpu: 11160293933334
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 27247.17 Resp: 27247.17 Degree: 1
Cost_io: 27213.70 Cost_cpu: 1082758031
Resp_io: 27213.70 Resp_cpu: 1082758031
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 34443539.79 Resp: 34443539.79 Degree: 1
Cost_io: 34401693.70 Cost_cpu: 1353832588082
Resp_io: 34401693.70 Resp_cpu: 1353832588082
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 27706443.01 Resp: 27706443.01 Degree: 1
Cost_io: 27666398.70 Cost_cpu: 1295540287608
Resp_io: 27666398.70 Resp_cpu: 1295540287608
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 33835890.05 Resp: 33835890.05 Degree: 1
Cost_io: 33794338.70 Cost_cpu: 1344297055841
Resp_io: 33794338.70 Resp_cpu: 1344297055841
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 27247.17 Resp: 27247.17 Degree: 1
Cost_io: 27213.70 Cost_cpu: 1082758031
Resp_io: 27213.70 Resp_cpu: 1082758031
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 27247.17
resc: 27247.17 resc_io: 27213.70 resc_cpu: 1082758031
resp: 27247.17 resp_io: 27213.70 resc_cpu: 1082758031
Join Card: 112700.054052 = = outer (90650.350585) * inner
(248742.292433) * sel (0.000005)
Join Card - Rounded: 112700 Computed: 112700.05
Outer table: SETDETAILS Alias: SD
resc: 18179.80 card 90650.35 bytes: 211 deg: 1 resp: 18179.80
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2697 Row size: 243 Total Rows:
90650
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1462
Total IO sort cost: 4159 Total CPU sort cost: 166027617
Total Temp space used: 42443000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 24466.15 Resp: 24466.15 [multiMatchCost=0.00]
SM Join
SM cost: 24466.15
resc: 24466.15 resc_io: 24421.40 resc_cpu: 1447842668
resp: 24466.15 resp_io: 24421.40 resp_cpu: 1447842668
Outer table: SETDETAILS Alias: SD
resc: 18179.80 card 90650.35 bytes: 211 deg: 1 resp: 18179.80
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 1382.91 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 2468 probefrag: 1094
ppasses: 1
Hash join: Resc: 19937.86 Resp: 19937.86 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: SETDETAILS Alias: SD
resc: 18179.80 card: 90650.35 bytes: 211 deg: 1 resp: 18179.80
using dmeth: 2 #groups: 1
Cost per ptn: 1382.67 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 2468
ppasses: 1
Hash join: Resc: 19937.69 Resp: 19937.69 [multiMatchCost=0.07]
HA Join
HA cost: 19937.69 swapped
resc: 19937.69 resc_io: 19903.40 resc_cpu: 1109267585
resp: 19937.69 resp_io: 19903.40 resp_cpu: 1109267585
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 3712 Row size: 269 Total Rows:
112700
Initial runs: 2 Merge passes: 1 IO Cost / pass: 2012
Total IO sort cost: 5724 Total CPU sort cost: 208978147
Total Temp space used: 28861000
Best:: JoinMethod: Hash
Cost: 25668.15 Degree: 1 Resp: 25668.15 Card: 112700.05
Bytes: 235
***********************
Best so far: Table#: 2 cost: 3039.3702 card: 1187146.2750 bytes:
155516126
Table#: 3 cost: 18174.6269 card: 1187146.2750 bytes:
205376258
Table#: 0 cost: 18179.7965 card: 90650.3506 bytes:
19127150
Table#: 1 cost: 25668.1461 card: 112700.0541 bytes:
26484500
***********************
First K Rows: K = 100.00, N = 112700.00
First K Rows: old pf = 0.0011018, new pf = 0.0009047
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 1157.000000 Rounded: 1074 Computed: 1074.35 Non
Adjusted: 1074.35
Access Path: TableScan
Cost: 8.03 Resp: 8.03 Degree: 0
Cost_io: 8.00 Cost_cpu: 1056158
Resp_io: 8.00 Resp_cpu: 1056158


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 30.00 resc_cpu: 1239718
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 3.00 Resp: 3.00 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 196.00 resc_cpu: 2421877
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 19.61 Resp: 19.61 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 3.00 Degree: 1 Resp: 3.00 Card: 1074.35 Bytes: 131

First K Rows: unchanged join prefix len = 1
Join order[16]: X4FEEITEM_INVOICE[XFI]#2 F4FEEITEM[F4]#3 SETDETAILS
[SD]#0 F4INVOICE[FINV]#1

***************
Now joining: F4FEEITEM[F4]#3
***************
NL Join
Outer table: Card: 1074.35 Cost: 3.00 Resp: 3.00 Degree: 1
Bytes: 131
Access path analysis for F4FEEITEM
Inner table: F4FEEITEM Alias: F4
Access Path: TableScan
NL Join: Cost: 10407404.43 Resp: 10407404.43 Degree: 1
Cost_io: 10354282.00 Cost_cpu: 1718652191428
Resp_io: 10354282.00 Resp_cpu: 1718652191428
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 110.43 Resp: 110.43 Degree: 1
Cost_io: 110.40 Cost_cpu: 1112206
Resp_io: 110.40 Resp_cpu: 1112206
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4FEEITEM_PK
resc_io: 1.00 resc_cpu: 9201
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 110.43 Resp: 110.43 Degree: 1
Cost_io: 110.40 Cost_cpu: 1112206
Resp_io: 110.40 Resp_cpu: 1112206
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 34070.00 resc_cpu: 1757393371
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 3664954.96 Resp: 3664954.96 Degree: 1
Cost_io: 3659121.00 Cost_cpu: 188744171996
Resp_io: 3659121.00 Resp_cpu: 188744171996
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 110.43
resc: 110.43 resc_io: 110.40 resc_cpu: 1112206
resp: 110.43 resp_io: 110.40 resc_cpu: 1112206
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1074.352285 = = outer (1074.352285) * inner
(1231517.000000) * sel (0.000001)
Join Card - Rounded: 1074 Computed: 1074.35
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3.00 card 1074.35 bytes: 131 deg: 1 resp: 3.00
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 17251.30 Resp: 17251.30 [multiMatchCost=0.00]
SM Join
SM cost: 17251.30
resc: 17251.30 resc_io: 17203.50 resc_cpu: 1546307794
resp: 17251.30 resp_io: 17203.50 resp_cpu: 1546307794
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4FEEITEM Alias: F4
resc: 3953.05 card: 1231517.00 bytes: 42 deg: 1 resp: 3953.05
using dmeth: 2 #groups: 1
Cost per ptn: 11182.27 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag: 8118
ppasses: 1
Hash join: Resc: 18174.70 Resp: 18174.70 [multiMatchCost=0.00]
Outer table: F4FEEITEM Alias: F4
resc: 3953.05 card 1231517.00 bytes: 42 deg: 1 resp: 3953.05
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3.00 card: 1074.35 bytes: 131 deg: 1 resp: 3.00
using dmeth: 2 #groups: 1
Cost per ptn: 3157.25 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 8118 probefrag: 19
ppasses: 1
Hash join: Resc: 7113.30 Resp: 7113.30 [multiMatchCost=0.00]
HA Join
HA cost: 7113.30 swapped
resc: 7113.30 resc_io: 7100.50 resc_cpu: 414212780
resp: 7113.30 resp_io: 7100.50 resp_cpu: 414212780
Join order aborted: cost > best plan cost
***********************
Join order[17]: F4FEEITEM[F4]#3 SETDETAILS[SD]#0 F4INVOICE[FINV]#1
X4FEEITEM_INVOICE[XFI]#2

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 1231517.00 Cost: 3953.05 Resp: 3953.05 Degree:
1 Bytes: 42
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 1222867140.16 Resp: 1222867140.16 Degree: 1
Cost_io: 1216075673.50 Cost_cpu: 219722067452334
Resp_io: 1216075673.50 Resp_cpu: 219722067452334


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 5446.00 resc_cpu: 273320887
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 671728517.92 Resp: 671728517.92 Degree: 1
Cost_io: 670688105.70 Cost_cpu: 33660111497590
Resp_io: 670688105.70 Resp_cpu: 33660111497590


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 14672.00 resc_cpu: 339023293
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1808176200.91 Resp: 1808176200.91 Degree: 1
Cost_io: 1806885689.90 Cost_cpu: 41751474421615
Resp_io: 1806885689.90 Resp_cpu: 41751474421615


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 374054.00 resc_cpu: 2898340643
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 46076422592.14 Resp: 46076422592.14 Degree: 1
Cost_io: 46065389939.30 Cost_cpu: 356935756923462
Resp_io: 46065389939.30 Resp_cpu: 356935756923462


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 356019.00 resc_cpu: 2769905472
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 43854892789.13 Resp: 43854892789.13 Degree: 1
Cost_io: 43844349029.80 Cost_cpu: 341118747348912
Resp_io: 43844349029.80 Resp_cpu: 341118747348912


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 9233.00 resc_cpu: 300289781
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1138206663.97 Resp: 1138206663.97 Degree: 1
Cost_io: 1137063593.60 Cost_cpu: 36981376552140
Resp_io: 1137063593.60 Resp_cpu: 36981376552140
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 40186
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
NL Join : Cost: 496712.82 Resp: 496712.82 Degree: 1
Cost_io: 496554.30 Cost_cpu: 5128533135
Resp_io: 496554.30 Resp_cpu: 5128533135


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 5445.00 resc_cpu: 273313766
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 671605339.12 Resp: 671605339.12 Degree: 1
Cost_io: 670564954.00 Cost_cpu: 33659234480147
Resp_io: 670564954.00 Resp_cpu: 33659234480147
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 496712.82
resc: 496712.82 resc_io: 496554.30 resc_cpu: 5128533135
resp: 496712.82 resp_io: 496554.30 resc_cpu: 5128533135
Join Card: 31197592.655682 = = outer (1231517.000000) * inner
(25.332653) * sel (1.000000)
Join Card - Rounded: 31197593 Computed: 31197592.66
Best:: JoinMethod: NestedLoop
Cost: 496712.82 Degree: 1 Resp: 496712.82 Card: 31197592.66
Bytes: 80

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 31197592.66 Cost: 496712.82 Resp: 496712.82
Degree: 1 Bytes: 80
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 30924426237.58 Resp: 30924426237.58 Degree: 1
Cost_io: 30806819744.30 Cost_cpu: 3804883856736008
Resp_io: 30806819744.30 Resp_cpu: 3804883856736008


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4748.00 resc_cpu: 156037217
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 14828160497.09 Resp: 14828160497.09 Degree: 1
Cost_io: 14813113710.70 Cost_cpu: 486803687789374
Resp_io: 14813113710.70 Resp_cpu: 486803687789374


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3747.00 resc_cpu: 147769406
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 11704484174.91 Resp: 11704484174.91 Degree: 1
Cost_io: 11690234651.40 Cost_cpu: 461010106158788
Resp_io: 11690234651.40 Resp_cpu: 461010106158788


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4643.00 resc_cpu: 154714696
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 14500458240.22 Resp: 14500458240.22 Degree: 1
Cost_io: 14485538984.20 Cost_cpu: 482677739976227
Resp_io: 14485538984.20 Resp_cpu: 482677739976227


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 89716.00 resc_cpu: 761518341
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 279966255085.27 Resp: 279966255085.27 Degree: 1
Cost_io: 279892821913.10 Cost_cpu: 2375759055113246
Resp_io: 279892821913.10 Resp_cpu: 2375759055113246
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 11704484174.91
resc: 11704484174.91 resc_io: 11690234651.40 resc_cpu:
461010106158788
resp: 11704484174.91 resp_io: 11690234651.40 resc_cpu:
461010106158788
Join Card: 7760160715565.263672 = = outer (31197592.655682) * inner
(248742.292433) * sel (1.000000)
Join Card - Rounded: 7760160715565 Computed: 7760160715565.26
Best:: JoinMethod: NestedLoop
Cost: 11704484174.91 Degree: 1 Resp: 11704484174.91 Card:
7760160715565.26 Bytes: 104

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 7760160715565.26 Cost: 11704484174.91 Resp:
11704484174.91 Degree: 1 Bytes: 104
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 53658429463659096.00 Resp: 53658429463659096.00
Degree: 1
Cost_io: 53377145482144152.00 Cost_cpu: 9100287327713307394048
Resp_io: 53377145482144152.00 Resp_cpu: 9100287327713307394048
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 1.00 resc_cpu: 8901
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 787934067038.70 Resp: 787934067038.70 Degree: 1
Cost_io: 787706306207.90 Cost_cpu: 7368670590979989
Resp_io: 787706306207.90 Resp_cpu: 7368670590979989
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1.00 resc_cpu: 12613
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 788023085567.60 Resp: 788023085567.60 Degree: 1
Cost_io: 787706306207.90 Cost_cpu: 10248657521296396
Resp_io: 787706306207.90 Resp_cpu: 10248657521296396
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: X4FEEITEM_INVOICE_PK
resc_io: 1.00 resc_cpu: 8901
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 787934067038.70 Resp: 787934067038.70 Degree: 1
Cost_io: 787706306207.90 Cost_cpu: 7368670590979989
Resp_io: 787706306207.90 Resp_cpu: 7368670590979989
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 787934067038.70
resc: 787934067038.70 resc_io: 787706306207.90 resc_cpu:
7368670590979989
resp: 787934067038.70 resp_io: 787706306207.90 resc_cpu:
7368670590979989
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 2 ColGroups: 0.000000 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 112700.054052 = = outer (7760160715565.263672) * inner
(1187146.275001) * sel (0.000000)
Join Card - Rounded: 112700 Computed: 112700.05
Outer table: F4INVOICE Alias: FINV
resc: 11704484174.91 card 7760160715565.26 bytes: 104 deg: 1
resp: 11704484174.91
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2794463989 Row size: 125 Total Rows:
7760160715565
Initial runs: 23127104 Merge passes: 4 IO Cost / pass:
1513667996
Total IO sort cost: 8849135973 Total CPU sort cost:
15142955447201776
Total Temp space used: 1816321324639000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 21021716906.36 Resp: 21021716906.36
[multiMatchCost=0.00]
SM Join
SM cost: 21021716906.36
resc: 21021716906.36 resc_io: 20539408391.60 resc_cpu:
15603967354708326
resp: 21021716906.36 resp_io: 20539408391.60 resp_cpu:
15603967354708326
Outer table: F4INVOICE Alias: FINV
resc: 11704484174.91 card 7760160715565.26 bytes: 104 deg: 1
resp: 11704484174.91
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 42922754857.84 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 109885088258 probefrag:
20723 ppasses: 1
Hash join: Resc: 54627242072.12 Resp: 54627242072.12
[multiMatchCost=0.00]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: F4INVOICE Alias: FINV
resc: 11704484174.91 card: 7760160715565.26 bytes: 104 deg: 1
resp: 11704484174.91
using dmeth: 2 #groups: 1
Cost per ptn: 42598077416.87 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag:
109885088258 ppasses: 1
Hash join: Resc: 54302564631.14 Resp: 54302564631.14
[multiMatchCost=0.00]
HA Join
HA cost: 54302564631.14 swapped
resc: 54302564631.14 resc_io: 54226408905.60 resc_cpu:
2463840921009180
resp: 54302564631.14 resp_io: 54226408905.60 resp_cpu:
2463840921009180
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 3712 Row size: 269 Total Rows:
112700
Initial runs: 2 Merge passes: 1 IO Cost / pass: 2012
Total IO sort cost: 5724 Total CPU sort cost: 208978147
Total Temp space used: 32981000
Best:: JoinMethod: SortMerge
Cost: 21021722636.82 Degree: 1 Resp: 21021722636.82 Card:
112700.05 Bytes: 235
***********************
Best so far: Table#: 3 cost: 3953.0510 card: 1231517.0000 bytes:
51723714
Table#: 0 cost: 496712.8196 card: 31197592.6557
bytes: 2495807440
Table#: 1 cost: 11704484174.9051 card:
7760160715565.2637 bytes: 807056714418760
Table#: 2 cost: 21021722636.8241 card: 112700.0541
bytes: 26484500
***********************
First K Rows: K = 100.00, N = 112700.00
First K Rows: old pf = 1.0000000, new pf = 0.0008965
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 1158.000000 Rounded: 1105 Computed: 1104.53 Non
Adjusted: 1104.53
Access Path: TableScan
Cost: 10.04 Resp: 10.04 Degree: 0
Cost_io: 10.00 Cost_cpu: 1431886
Resp_io: 10.00 Resp_cpu: 1431886


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 454.00 resc_cpu: 4592284
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 45.41 Resp: 45.41 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 39.00 resc_cpu: 1636886
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 3.91 Resp: 3.91 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 3.91 Degree: 1 Resp: 3.91 Card: 1104.53 Bytes: 173

First K Rows: old pf = 0.0009047, new pf = 1.0000000
Access path analysis for X4FEEITEM_INVOICE
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for X4FEEITEM_INVOICE[XFI]
ColGroup Usage:: PredCnt: 3 Matches Full: Partial:
Table: X4FEEITEM_INVOICE Alias: XFI
Card: Original: 1278471.000000 Rounded: 1187146 Computed:
1187146.28 Non Adjusted: 1187146.28
Access Path: TableScan
Cost: 6916.07 Resp: 6916.07 Degree: 0
Cost_io: 6880.00 Cost_cpu: 1166930829
Resp_io: 6880.00 Resp_cpu: 1166930829


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 30352.00 resc_cpu: 1349160084
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 3039.37 Resp: 3039.37 Degree: 1


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 212286.00 resc_cpu: 2644792149
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
Cost: 21236.77 Resp: 21236.77 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: X4FEEITEM_INVOICE_NBR_IX
Cost: 3039.37 Degree: 1 Resp: 3039.37 Card: 1187146.28
Bytes: 131

First K Rows: unchanged join prefix len = 1
Join order[17]: F4FEEITEM[F4]#3 SETDETAILS[SD]#0 F4INVOICE[FINV]#1
X4FEEITEM_INVOICE[XFI]#2

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 1104.53 Cost: 3.91 Resp: 3.91 Degree: 1
Bytes: 42
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 1026519.24 Resp: 1026519.24 Degree: 1
Cost_io: 1020818.90 Cost_cpu: 184421284249
Resp_io: 1020818.90 Resp_cpu: 184421284249


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 5096.00 resc_cpu: 255681988
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 563985.18 Resp: 563985.18 Degree: 1
Cost_io: 563111.90 Cost_cpu: 28253023372
Resp_io: 563111.90 Resp_cpu: 28253023372


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 13725.00 resc_cpu: 317132894
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 1517699.57 Resp: 1517699.57 Degree: 1
Cost_io: 1516616.40 Cost_cpu: 35043348458
Resp_io: 1516616.40 Resp_cpu: 35043348458


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 349898.00 resc_cpu: 2711168743
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 38672992.86 Resp: 38672992.86 Degree: 1
Cost_io: 38663732.90 Cost_cpu: 299584309786
Resp_io: 38663732.90 Resp_cpu: 299584309786


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 333029.00 resc_cpu: 2591037172
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 36808558.05 Resp: 36808558.05 Degree: 1
Cost_io: 36799708.40 Cost_cpu: 286309771151
Resp_io: 36799708.40 Resp_cpu: 286309771151


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 8638.00 resc_cpu: 280906129
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 955462.34 Resp: 955462.34 Degree: 1
Cost_io: 954502.90 Cost_cpu: 31040290895
Resp_io: 954502.90 Resp_cpu: 31040290895
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 39286
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
NL Join : Cost: 446.04 Resp: 446.04 Degree: 1
Cost_io: 445.90 Cost_cpu: 4504765
Resp_io: 445.90 Resp_cpu: 4504765


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 5095.00 resc_cpu: 255674867
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 563874.66 Resp: 563874.66 Degree: 1
Cost_io: 563001.40 Cost_cpu: 28252236453
Resp_io: 563001.40 Resp_cpu: 28252236453
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 446.04
resc: 446.04 resc_io: 445.90 resc_cpu: 4504765
resp: 446.04 resp_io: 445.90 resc_cpu: 4504765
Join Card: 27980.553848 = = outer (1104.525215) * inner (25.332653) *
sel (1.000000)
Join Card - Rounded: 27981 Computed: 27980.55
Join order aborted: cost > best plan cost
***********************
Join order[18]: F4FEEITEM[F4]#3 F4INVOICE[FINV]#1 SETDETAILS[SD]#0
X4FEEITEM_INVOICE[XFI]#2

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 1231517.00 Cost: 3953.05 Resp: 3953.05 Degree:
1 Bytes: 42
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 1220718159.02 Resp: 1220718159.02 Degree: 1
Cost_io: 1216075673.50 Cost_cpu: 150196793690090
Resp_io: 1216075673.50 Resp_cpu: 150196793690090


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4748.00 resc_cpu: 156037217
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 585322186.44 Resp: 585322186.44 Degree: 1
Cost_io: 584728219.10 Cost_cpu: 19216428140073
Resp_io: 584728219.10 Resp_cpu: 19216428140073


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3747.00 resc_cpu: 147769406
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 462015862.99 Resp: 462015862.99 Degree: 1
Cost_io: 461453367.40 Cost_cpu: 18198233105957
Resp_io: 461453367.40 Resp_cpu: 18198233105957


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4643.00 resc_cpu: 154714696
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 572386223.71 Resp: 572386223.71 Degree: 1
Cost_io: 571797290.60 Cost_cpu: 19053557406006
Resp_io: 571797290.60 Resp_cpu: 19053557406006


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 89716.00 resc_cpu: 761518341
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 11051580619.67 Resp: 11051580619.67 Degree: 1
Cost_io: 11048681864.70 Cost_cpu: 93782457868731
Resp_io: 11048681864.70 Resp_cpu: 93782457868731
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 462015862.99
resc: 462015862.99 resc_io: 461453367.40 resc_cpu:
18198233105957
resp: 462015862.99 resp_io: 461453367.40 resc_cpu:
18198233105957
Join Card: 306330361750.211548 = = outer (1231517.000000) * inner
(248742.292433) * sel (1.000000)
Join Card - Rounded: 306330361750 Computed: 306330361750.21
Best:: JoinMethod: NestedLoop
Cost: 462015862.99 Degree: 1 Resp: 462015862.99 Card:
306330361750.21 Bytes: 66

***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 306330361750.21 Cost: 462015862.99 Resp:
462015862.99 Degree: 1 Bytes: 66
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 304178254083521.31 Resp: 304178254083521.31
Degree: 1
Cost_io: 302488929916421.38 Cost_cpu: 54654144283158355968
Resp_io: 302488929916421.38 Resp_cpu: 54654144283158355968


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 5446.00 resc_cpu: 273320887
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 167086770165898.00 Resp: 167086770165898.00
Degree: 1
Cost_io: 166827976462417.41 Cost_cpu: 8372666824439121920
Resp_io: 166827976462417.41 Resp_cpu: 8372666824439121920


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 14672.00 resc_cpu: 339023293
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 449769372060889.50 Resp: 449769372060889.50
Degree: 1
Cost_io: 449448368212967.38 Cost_cpu: 10385330987067158528
Resp_io: 449448368212967.38 Resp_cpu: 10385330987067158528


Access Path: index (RangeScan)
Index: SETDETAILS_PID_IX
resc_io: 374054.00 resc_cpu: 2898340643
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 11461154461398182.00 Resp: 11461154461398182.00
Degree: 1
Cost_io: 11458410174856818.00 Cost_cpu: 88784991955372949504
Resp_io: 11458410174856818.00 Resp_cpu: 88784991955372949504


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 356019.00 resc_cpu: 2769905472
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 10908566045489210.00 Resp: 10908566045489210.00
Degree: 1
Cost_io: 10905943367440694.00 Cost_cpu: 84850632734367449088
Resp_io: 10905943367440694.00 Resp_cpu: 84850632734367449088


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 9233.00 resc_cpu: 300289781
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 283119613584100.12 Resp: 283119613584100.12
Degree: 1
Cost_io: 282835284457142.38 Cost_cpu: 9198805907885075456
Resp_io: 282835284457142.38 Resp_cpu: 9198805907885075456
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 4.00 resc_cpu: 40186
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
NL Join : Cost: 123032210340.88 Resp: 123032210340.88 Degree: 1
Cost_io: 122993598067.40 Cost_cpu: 1249210072905825
Resp_io: 122993598067.40 Resp_cpu: 1249210072905825


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 5445.00 resc_cpu: 273313766
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
NL Join : Cost: 167056130386806.84 Resp: 167056130386806.84
Degree: 1
Cost_io: 166797343426242.41 Cost_cpu: 8372448673109983232
Resp_io: 166797343426242.41 Resp_cpu: 8372448673109983232
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 123032210340.88
resc: 123032210340.88 resc_io: 122993598067.40 resc_cpu:
1249210072905825
resp: 123032210340.88 resp_io: 122993598067.40 resc_cpu:
1249210072905825
Join Card: 7760160715565.264648 = = outer (306330361750.211548) *
inner (25.332653) * sel (1.000000)
Join Card - Rounded: 7760160715565 Computed: 7760160715565.26
Best:: JoinMethod: NestedLoop
Cost: 123032210340.88 Degree: 1 Resp: 123032210340.88 Card:
7760160715565.26 Bytes: 104

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 7760160715565.26 Cost: 123032210340.88 Resp:
123032210340.88 Degree: 1 Bytes: 104
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 53658540791385264.00 Resp: 53658540791385264.00
Degree: 1
Cost_io: 53377256785507568.00 Cost_cpu: 9100288115913273638912
Resp_io: 53377256785507568.00 Resp_cpu: 9100288115913273638912
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 1.00 resc_cpu: 8901
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 899261793204.68 Resp: 899261793204.68 Degree: 1
Cost_io: 899009669623.90 Cost_cpu: 8156870557727026
Resp_io: 899009669623.90 Resp_cpu: 8156870557727026
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 1.00 resc_cpu: 12613
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 899350811733.58 Resp: 899350811733.58 Degree: 1
Cost_io: 899009669623.90 Cost_cpu: 11036857488043434
Resp_io: 899009669623.90 Resp_cpu: 11036857488043434
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: X4FEEITEM_INVOICE_PK
resc_io: 1.00 resc_cpu: 8901
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 899261793204.68 Resp: 899261793204.68 Degree: 1
Cost_io: 899009669623.90 Cost_cpu: 8156870557727026
Resp_io: 899009669623.90 Resp_cpu: 8156870557727026
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 899261793204.68
resc: 899261793204.68 resc_io: 899009669623.90 resc_cpu:
8156870557727026
resp: 899261793204.68 resp_io: 899009669623.90 resc_cpu:
8156870557727026
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 2 ColGroups: 0.000000 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 112700.054052 = = outer (7760160715565.264648) * inner
(1187146.275001) * sel (0.000000)
Join Card - Rounded: 112700 Computed: 112700.05
Outer table: SETDETAILS Alias: SD
resc: 123032210340.88 card 7760160715565.26 bytes: 104 deg: 1
resp: 123032210340.88
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2794463989 Row size: 125 Total Rows:
7760160715565
Initial runs: 23127104 Merge passes: 4 IO Cost / pass:
1513667996
Total IO sort cost: 8849135973 Total CPU sort cost:
15142955447201776
Total Temp space used: 1869742531863000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 132349443072.34 Resp: 132349443072.34
[multiMatchCost=0.00]
SM Join
SM cost: 132349443072.34
resc: 132349443072.34 resc_io: 131842771807.60 resc_cpu:
16392167321455364
resp: 132349443072.34 resp_io: 131842771807.60 resp_cpu:
16392167321455364
Outer table: SETDETAILS Alias: SD
resc: 123032210340.88 card 7760160715565.26 bytes: 104 deg: 1
resp: 123032210340.88
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 42922754857.84 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 109885088258 probefrag:
20723 ppasses: 1
Hash join: Resc: 165954968238.09 Resp: 165954968238.09
[multiMatchCost=0.00]
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card 1187146.28 bytes: 131 deg: 1 resp: 3039.37
Inner table: SETDETAILS Alias: SD
resc: 123032210340.88 card: 7760160715565.26 bytes: 104 deg: 1
resp: 123032210340.88
using dmeth: 2 #groups: 1
Cost per ptn: 42598077416.87 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 20723 probefrag:
109885088258 ppasses: 1
Hash join: Resc: 165630290797.12 Resp: 165630290797.12
[multiMatchCost=0.00]
HA Join
HA cost: 165630290797.12 swapped
resc: 165630290797.12 resc_io: 165529772321.60 resc_cpu:
3252040887756218
resp: 165630290797.12 resp_io: 165529772321.60 resp_cpu:
3252040887756218
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 3712 Row size: 269 Total Rows:
112700
Initial runs: 2 Merge passes: 1 IO Cost / pass: 2012
Total IO sort cost: 5724 Total CPU sort cost: 208978147
Total Temp space used: 32981000
Best:: JoinMethod: SortMerge
Cost: 132349448802.80 Degree: 1 Resp: 132349448802.80 Card:
112700.05 Bytes: 235
***********************
Best so far: Table#: 3 cost: 3953.0510 card: 1231517.0000 bytes:
51723714
Table#: 1 cost: 462015862.9873 card:
306330361750.2115 bytes: 20217803875500
Table#: 0 cost: 123032210340.8812 card:
7760160715565.2646 bytes: 807056714418760
Table#: 2 cost: 132349448802.8003 card: 112700.0541
bytes: 26484500
***********************
First K Rows: K = 100.00, N = 112700.00
First K Rows: unchanged join prefix len = 1
Join order[18]: F4FEEITEM[F4]#3 F4INVOICE[FINV]#1 SETDETAILS[SD]#0
X4FEEITEM_INVOICE[XFI]#2

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 1104.53 Cost: 3.91 Resp: 3.91 Degree: 1
Bytes: 42
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 1095312.45 Resp: 1095312.45 Degree: 1
Cost_io: 1091146.90 Cost_cpu: 134766682204
Resp_io: 1091146.90 Resp_cpu: 134766682204


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 4748.00 resc_cpu: 156037217
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 525190.85 Resp: 525190.85 Degree: 1
Cost_io: 524657.90 Cost_cpu: 17242276180
Resp_io: 524657.90 Resp_cpu: 17242276180


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3747.00 resc_cpu: 147769406
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 414552.11 Resp: 414552.11 Degree: 1
Cost_io: 414047.40 Cost_cpu: 16328683016
Resp_io: 414047.40 Resp_cpu: 16328683016


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 4643.00 resc_cpu: 154714696
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 513583.83 Resp: 513583.83 Degree: 1
Cost_io: 513055.40 Cost_cpu: 17096137588
Resp_io: 513055.40 Resp_cpu: 17096137588


Access Path: index (RangeScan)
Index: F4INVOICE_PK
resc_io: 89716.00 resc_cpu: 761518341
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
NL Join : Cost: 9916222.86 Resp: 9916222.86 Degree: 1
Cost_io: 9913621.90 Cost_cpu: 84147940374
Resp_io: 9913621.90 Resp_cpu: 84147940374
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 414552.11
resc: 414552.11 resc_io: 414047.40 resc_cpu: 16328683016
resp: 414552.11 resp_io: 414047.40 resc_cpu: 16328683016
Join Card: 274742134.010831 = = outer (1104.525215) * inner
(248742.292433) * sel (1.000000)
Join Card - Rounded: 274742134 Computed: 274742134.01
Join order aborted: cost > best plan cost
***********************
Join order[19]: F4FEEITEM[F4]#3 X4FEEITEM_INVOICE[XFI]#2 SETDETAILS
[SD]#0 F4INVOICE[FINV]#1

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 1231517.00 Cost: 3953.05 Resp: 3953.05 Degree:
1 Bytes: 42
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 8515453065.39 Resp: 8515453065.39 Degree: 1
Cost_io: 8470814037.50 Cost_cpu: 1444191658605512
Resp_io: 8470814037.50 Resp_cpu: 1444191658605512
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 26639.00 resc_cpu: 1324363816
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 3285683332.14 Resp: 3285683332.14 Degree: 1
Cost_io: 3280642083.80 Cost_cpu: 163097834984580
Resp_io: 3280642083.80 Resp_cpu: 163097834984580
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 250313.83 Resp: 250313.83 Degree: 1
Cost_io: 250250.90 Cost_cpu: 2035839274
Resp_io: 250250.90 Resp_cpu: 2035839274
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 250313.83
resc: 250313.83 resc_io: 250250.90 resc_cpu: 2035839274
resp: 250313.83 resp_io: 250250.90 resc_cpu: 2035839274
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1187146.275001 = = outer (1231517.000000) * inner
(1187146.275001) * sel (0.000001)
Join Card - Rounded: 1187146 Computed: 1187146.28
Outer table: F4FEEITEM Alias: F4
resc: 3953.05 card 1231517.00 bytes: 42 deg: 1 resp: 3953.05
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 22528 Row size: 155 Total Rows:
1187146
Initial runs: 5 Merge passes: 1 IO Cost / pass: 12204
Total IO sort cost: 34732 Total CPU sort cost: 1666431753
Total Temp space used: 442065000
SM join: Resc: 55071.17 Resp: 55071.17 [multiMatchCost=0.00]
SM Join
SM cost: 55071.17
resc: 55071.17 resc_io: 54967.70 resc_cpu: 3347531584
resp: 55071.17 resp_io: 54967.70 resp_cpu: 3347531584
Outer table: F4FEEITEM Alias: F4
resc: 3953.05 card 1231517.00 bytes: 42 deg: 1 resp: 3953.05
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 11182.21 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 8118 probefrag: 20723
ppasses: 1
Hash join: Resc: 18174.63 Resp: 18174.63 [multiMatchCost=0.00]
HA Join
HA cost: 18174.63
resc: 18174.63 resc_io: 18147.70 resc_cpu: 871156375
resp: 18174.63 resp_io: 18147.70 resp_cpu: 871156375
Best:: JoinMethod: Hash
Cost: 18174.63 Degree: 1 Resp: 18174.63 Card: 1187146.28
Bytes: 173

Reply With Quote
  #12 (permalink)  
Old 11-04-2009, 11:04 AM
lsllcm
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

part6-
================================================== =====
***************
Now joining: SETDETAILS[SD]#0
***************
NL Join
Outer table: Card: 1187146.28 Cost: 18174.63 Resp: 18174.63
Degree: 1 Bytes: 173
Access path analysis for SETDETAILS
Inner table: SETDETAILS Alias: SD
Access Path: TableScan
NL Join: Cost: 1179682709.66 Resp: 1179682709.66 Degree: 1
Cost_io: 1172275359.70 Cost_cpu: 239647535518960
Resp_io: 1172275359.70 Resp_cpu: 239647535518960
kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"

kkofmx: index filter:"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"

kkofmx: index filter:"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

kkofmx: index filter:"SD"."SERV_PROV_CODE"="XFI"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_ADDR_IX
resc_io: 3823.00 resc_cpu: 261762790
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 454824600.54 Resp: 454824600.54 Degree: 1
Cost_io: 453864063.50 Cost_cpu: 31075936080355
Resp_io: 453864063.50 Resp_cpu: 31075936080355
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_IX
resc_io: 433.00 resc_cpu: 81263079
ix_sel: 0.999999 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 51719782.47 Resp: 51719782.47 Degree: 1
Cost_io: 51421569.50 Cost_cpu: 9647985131049
Resp_io: 51421569.50 Resp_cpu: 9647985131049
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqJoinGuess)
Index: SETDETAILS_PID_IX
resc_io: 1.00 resc_cpu: 8467
ix_sel: 0.000001 ix_sel_with_filters: 0.000001
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 136920.30 Resp: 136920.30 Degree: 1
Cost_io: 136862.30 Cost_cpu: 1876359817
Resp_io: 136862.30 Resp_cpu: 1876359817
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_PK
resc_io: 354384.00 resc_cpu: 2758261918
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 42080694123.37 Resp: 42080694123.37 Degree: 1
Cost_io: 42070572954.10 Cost_cpu: 327446831442229
Resp_io: 42070572954.10 Resp_cpu: 327446831442229
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_SETID1_IX
resc_io: 7749.00 resc_cpu: 289721564
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 921000711.82 Resp: 921000711.82 Degree: 1
Cost_io: 919937583.10 Cost_cpu: 34395050685775
Resp_io: 919937583.10 Resp_cpu: 34395050685775
OPTIMIZER PERCENT INDEX CACHING = 90
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
ColGroup Usage:: PredCnt: 2 Matches Full: Partial:
***** Virtual column Adjustment ******
Column name SYS_NC00017$
cost_cpu 150.00
cost_io
17976931348623157081452742373170435679807056752584 49965989174768031572607800285387605895586327668781 71540458953514382464234321326889464182768467546703 53751698604991057655128207624549009038932894407586 85084551339423045832369032229481658085593321233482 74797826204144723168738177180919299881250404026184 124858368.00
***** End virtual column Adjustment ******
Access Path: index (AllEqJoin)
Index: SETDETAILS_SETID_IX
resc_io: 1.00 resc_cpu: 19671
ix_sel: 0.000065 ix_sel_with_filters: 0.000065
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 136961.41 Resp: 136961.41 Degree: 1
Cost_io: 136862.30 Cost_cpu: 3206443506
Resp_io: 136862.30 Resp_cpu: 3206443506
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: SETDETAILS_STAT_IX
resc_io: 3822.00 resc_cpu: 261755669
ix_sel: 0.999999 ix_sel_with_filters: 0.999999
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 454705859.81 Resp: 454705859.81 Degree: 1
Cost_io: 453745348.90 Cost_cpu: 31075090661454
Resp_io: 453745348.90 Resp_cpu: 31075090661454
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 136920.30
resc: 136920.30 resc_io: 136862.30 resc_cpu: 1876359817
resp: 136920.30 resp_io: 136862.30 resc_cpu: 1876359817
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 SETDETAILS[SD] = 546
Join selectivity using 1 ColGroups: 0.003014 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 90650.350585 = = outer (1187146.275001) * inner
(25.332653) * sel (0.003014)
Join Card - Rounded: 90650 Computed: 90650.35
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 18174.63 card 1187146.28 bytes: 173 deg: 1 resp:
18174.63
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 29214 Row size: 201 Total Rows:
1187146
Initial runs: 6 Merge passes: 1 IO Cost / pass: 15826
Total IO sort cost: 45040 Total CPU sort cost: 1831081189
Total Temp space used: 555738000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1 Row size: 52 Total Rows: 25
Initial runs: 1 Merge passes: 0 IO Cost / pass: 0
Total IO sort cost: 0 Total CPU sort cost: 32357899
Total Temp space used: 0
SM join: Resc: 63273.22 Resp: 63273.22 [multiMatchCost=0.00]
SM Join
SM cost: 63273.22
resc: 63273.22 resc_io: 63188.70 resc_cpu: 2734599482
resp: 63273.22 resp_io: 63188.70 resp_cpu: 2734599482
Outer table: X4FEEITEM_INVOICE Alias: XFI
resc: 18174.63 card 1187146.28 bytes: 173 deg: 1 resp:
18174.63
Inner table: SETDETAILS Alias: SD
resc: 1.00 card: 25.33 bytes: 38 deg: 1 resp: 1.00
using dmeth: 2 #groups: 1
Cost per ptn: 10388.40 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 26810 probefrag: 1
ppasses: 1
Hash join: Resc: 28564.31 Resp: 28564.31 [multiMatchCost=0.28]
Outer table: SETDETAILS Alias: SD
resc: 1.00 card 25.33 bytes: 38 deg: 1 resp: 1.00
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 18174.63 card: 1187146.28 bytes: 173 deg: 1 resp:
18174.63
using dmeth: 2 #groups: 1
Cost per ptn: 4.17 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1 probefrag: 26810
ppasses: 1
Hash join: Resc: 18179.80 Resp: 18179.80 [multiMatchCost=0.00]
HA Join
HA cost: 18179.80 swapped
resc: 18179.80 resc_io: 18148.70 resc_cpu: 1006055078
resp: 18179.80 resp_io: 18148.70 resp_cpu: 1006055078
Best:: JoinMethod: Hash
Cost: 18179.80 Degree: 1 Resp: 18179.80 Card: 90650.35
Bytes: 211

***************
Now joining: F4INVOICE[FINV]#1
***************
NL Join
Outer table: Card: 90650.35 Cost: 18179.80 Resp: 18179.80 Degree:
1 Bytes: 211
Access path analysis for F4INVOICE
Inner table: F4INVOICE Alias: FINV
Access Path: TableScan
NL Join: Cost: 89876206.15 Resp: 89876206.15 Degree: 1
Cost_io: 89531248.70 Cost_cpu: 11160293933334
Resp_io: 89531248.70 Resp_cpu: 11160293933334
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90
Access Path: index (UniqueScan)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000003 ix_sel_with_filters: 0.000003
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 27247.17 Resp: 27247.17 Degree: 1
Cost_io: 27213.70 Cost_cpu: 1082758031
Resp_io: 27213.70 Resp_cpu: 1082758031
kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

kkofmx: index filter:"FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE"

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_DATE_IX
resc_io: 3793.00 resc_cpu: 149236242
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 34443539.79 Resp: 34443539.79 Degree: 1
Cost_io: 34401693.70 Cost_cpu: 1353832588082
Resp_io: 34401693.70 Resp_cpu: 1353832588082
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_BATCH_NBR_IX
resc_io: 3050.00 resc_cpu: 142805762
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 27706443.01 Resp: 27706443.01 Degree: 1
Cost_io: 27666398.70 Cost_cpu: 1295540287608
Resp_io: 27666398.70 Resp_cpu: 1295540287608
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: F4INVOICE_DATE_IX
resc_io: 3726.00 resc_cpu: 148184335
ix_sel: 0.813255 ix_sel_with_filters: 0.813255
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 33835890.05 Resp: 33835890.05 Degree: 1
Cost_io: 33794338.70 Cost_cpu: 1344297055841
Resp_io: 33794338.70 Resp_cpu: 1344297055841
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (AllEqUnique)
Index: F4INVOICE_PK
resc_io: 1.00 resc_cpu: 8461
ix_sel: 0.000004 ix_sel_with_filters: 0.000004
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 27247.17 Resp: 27247.17 Degree: 1
Cost_io: 27213.70 Cost_cpu: 1082758031
Resp_io: 27213.70 Resp_cpu: 1082758031
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 27247.17
resc: 27247.17 resc_io: 27213.70 resc_cpu: 1082758031
resp: 27247.17 resp_io: 27213.70 resc_cpu: 1082758031
Join Card: 112700.054052 = = outer (90650.350585) * inner
(248742.292433) * sel (0.000005)
Join Card - Rounded: 112700 Computed: 112700.05
Outer table: SETDETAILS Alias: SD
resc: 18179.80 card 90650.35 bytes: 211 deg: 1 resp: 18179.80
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 2697 Row size: 243 Total Rows:
90650
Initial runs: 2 Merge passes: 1 IO Cost / pass: 1462
Total IO sort cost: 4159 Total CPU sort cost: 166027617
Total Temp space used: 42443000
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 1127 Row size: 37 Total Rows: 248742
Initial runs: 2 Merge passes: 1 IO Cost / pass: 612
Total IO sort cost: 1739 Total CPU sort cost: 260983032
Total Temp space used: 18047000
SM join: Resc: 24466.15 Resp: 24466.15 [multiMatchCost=0.00]
SM Join
SM cost: 24466.15
resc: 24466.15 resc_io: 24421.40 resc_cpu: 1447842668
resp: 24466.15 resp_io: 24421.40 resp_cpu: 1447842668
Outer table: SETDETAILS Alias: SD
resc: 18179.80 card 90650.35 bytes: 211 deg: 1 resp: 18179.80
Inner table: F4INVOICE Alias: FINV
resc: 375.16 card: 248742.29 bytes: 24 deg: 1 resp: 375.16
using dmeth: 2 #groups: 1
Cost per ptn: 1382.91 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 2468 probefrag: 1094
ppasses: 1
Hash join: Resc: 19937.86 Resp: 19937.86 [multiMatchCost=0.00]
Outer table: F4INVOICE Alias: FINV
resc: 375.16 card 248742.29 bytes: 24 deg: 1 resp: 375.16
Inner table: SETDETAILS Alias: SD
resc: 18179.80 card: 90650.35 bytes: 211 deg: 1 resp: 18179.80
using dmeth: 2 #groups: 1
Cost per ptn: 1382.67 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 1094 probefrag: 2468
ppasses: 1
Hash join: Resc: 19937.69 Resp: 19937.69 [multiMatchCost=0.07]
HA Join
HA cost: 19937.69 swapped
resc: 19937.69 resc_io: 19903.40 resc_cpu: 1109267585
resp: 19937.69 resp_io: 19903.40 resp_cpu: 1109267585
ORDER BY sort
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 3712 Row size: 269 Total Rows:
112700
Initial runs: 2 Merge passes: 1 IO Cost / pass: 2012
Total IO sort cost: 5724 Total CPU sort cost: 208978147
Total Temp space used: 28861000
Best:: JoinMethod: Hash
Cost: 25668.15 Degree: 1 Resp: 25668.15 Card: 112700.05
Bytes: 235
***********************
Best so far: Table#: 3 cost: 3953.0510 card: 1231517.0000 bytes:
51723714
Table#: 2 cost: 18174.6269 card: 1187146.2750 bytes:
205376258
Table#: 0 cost: 18179.7965 card: 90650.3506 bytes:
19127150
Table#: 1 cost: 25668.1461 card: 112700.0541 bytes:
26484500
***********************
First K Rows: K = 100.00, N = 112700.00
First K Rows: old pf = 0.0008965, new pf = 0.0009054
Access path analysis for F4FEEITEM
***************************************
SINGLE TABLE ACCESS PATH (First K Rows)
Single Table Cardinality Estimation for F4FEEITEM[F4]
Table: F4FEEITEM Alias: F4
Card: Original: 1169.000000 Rounded: 1115 Computed: 1115.02 Non
Adjusted: 1115.02
Access Path: TableScan
Cost: 11.04 Resp: 11.04 Degree: 0
Cost_io: 11.00 Cost_cpu: 1450008
Resp_io: 11.00 Resp_cpu: 1450008


Access Path: index (RangeScan)
Index: F4FEEITEM_PK
resc_io: 459.00 resc_cpu: 4641421
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 45.91 Resp: 45.91 Degree: 1


Access Path: index (RangeScan)
Index: F4FEEITEM_POS_IX
resc_io: 39.00 resc_cpu: 1650416
ix_sel: 0.953821 ix_sel_with_filters: 0.953821
Cost: 3.91 Resp: 3.91 Degree: 1
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange
Index: F4FEEITEM_POS_IX
Cost: 3.91 Degree: 1 Resp: 3.91 Card: 1115.02 Bytes: 42

First K Rows: unchanged join prefix len = 1
Join order[19]: F4FEEITEM[F4]#3 X4FEEITEM_INVOICE[XFI]#2 SETDETAILS
[SD]#0 F4INVOICE[FINV]#1

***************
Now joining: X4FEEITEM_INVOICE[XFI]#2
***************
NL Join
Outer table: Card: 1115.02 Cost: 3.91 Resp: 3.91 Degree: 1
Bytes: 42
Access path analysis for X4FEEITEM_INVOICE
Inner table: X4FEEITEM_INVOICE Alias: XFI
Access Path: TableScan
NL Join: Cost: 7709786.51 Resp: 7709786.51 Degree: 1
Cost_io: 7669370.90 Cost_cpu: 1307552963017
Resp_io: 7669370.90 Resp_cpu: 1307552963017
kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

kkofmx: index filter:"XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE "

OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_NBR_IX
resc_io: 26639.00 resc_cpu: 1324363816
ix_sel: 0.954312 ix_sel_with_filters: 0.954312
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 2974816.68 Resp: 2974816.68 Degree: 1
Cost_io: 2970252.40 Cost_cpu: 147666730559
Resp_io: 2970252.40 Resp_cpu: 147666730559
OPTIMIZER PERCENT INDEX CACHING = 90


Access Path: index (RangeScan)
Index: X4FEEITEM_INVOICE_PK
resc_io: 2.00 resc_cpu: 15073
ix_sel: 0.000000 ix_sel_with_filters: 0.000000
***** Logdef predicate Adjustment ******
Final IO cst 0.00 , CPU cst 0.00
***** End Logdef Adjustment ******
NL Join : Cost: 226.96 Resp: 226.96 Degree: 1
Cost_io: 226.90 Cost_cpu: 1845668
Resp_io: 226.90 Resp_cpu: 1845668
****** trying bitmap/domain indexes ******
****** finished trying bitmap/domain indexes ******

Best NL cost: 226.96
resc: 226.96 resc_io: 226.90 resc_cpu: 1845668
resp: 226.96 resp_io: 226.90 resc_cpu: 1845668
ColGroup cardinality sanity check: ndv for X4FEEITEM_INVOICE[XFI] =
1278471 F4FEEITEM[F4] = 1291140
Join selectivity using 1 ColGroups: 0.000001 (sel1 = 0.000000, sel2 =
0.000000)
Join Card: 1074.843933 = = outer (1115.017251) * inner
(1187146.275001) * sel (0.000001)
Join Card - Rounded: 1075 Computed: 1074.84
Outer table: F4FEEITEM Alias: F4
resc: 3953.05 card 1231517.00 bytes: 42 deg: 1 resp: 3953.05
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 8595 Row size: 57 Total Rows: 1231517
Initial runs: 2 Merge passes: 1 IO Cost / pass: 4658
Total IO sort cost: 13253 Total CPU sort cost: 1366595347
Total Temp space used: 148382000
SM join: Resc: 20287.66 Resp: 20287.66 [multiMatchCost=0.00]
SM Join
SM cost: 20287.66
resc: 20287.66 resc_io: 20235.70 resc_cpu: 1681099831
resp: 20287.66 resp_io: 20235.70 resp_cpu: 1681099831
Outer table: F4FEEITEM Alias: F4
resc: 3953.05 card 1231517.00 bytes: 42 deg: 1 resp: 3953.05
Inner table: X4FEEITEM_INVOICE Alias: XFI
resc: 3039.37 card: 1187146.28 bytes: 131 deg: 1 resp: 3039.37
using dmeth: 2 #groups: 1
Cost per ptn: 11182.21 #ptns: 1
hash_area: 124 (max=10240) buildfrag: 8118 probefrag: 20723
ppasses: 1
Hash join: Resc: 18174.63 Resp: 18174.63 [multiMatchCost=0.00]
HA Join
HA cost: 18174.63
resc: 18174.63 resc_io: 18147.70 resc_cpu: 871156375
resp: 18174.63 resp_io: 18147.70 resp_cpu: 871156375
Join order aborted: cost > best plan cost
***********************
(newjo-stop-1) k:0, spcnt:0, perm:19, maxperm:1000

*********************************
Number of join permutations tried: 19
*********************************
Consider using bloom filter between FINV[F4INVOICE] and XFI
[X4FEEITEM_INVOICE]
kkoBloomFilter: join ndv:0 reduction:1.000000 (limit:0.500000)
rejected because not a hash join
Consider using bloom filter between XFI[X4FEEITEM_INVOICE] and SD
[SETDETAILS]
kkoBloomFilter: join ndv:0 reduction:1.000000 (limit:0.500000)
rejected because not a hash join
Consider using bloom filter between SD[SETDETAILS] and F4[F4FEEITEM]
kkoBloomFilter: join ndv:0 reduction:1.000000 (limit:0.500000)
rejected because not a hash join
(newjo-save) [1 3 2 0 ]
SORT ressource Sort statistics
Sort width: 238 Area size: 208896 Max Area size:
41943040
Degree: 1
Blocks to Sort: 4 Row size: 269 Total Rows: 117
Initial runs: 1 Merge passes: 0 IO Cost / pass: 0
Total IO sort cost: 0 Total CPU sort cost: 32388885
Total Temp space used: 0
Or-Expansion validity checks failed on query block SEL$1 (#0) because
no OR expansion if old/new first rows mode and we have eliminatedsort
via an index, unless USE_CONCAT hint is specified
Transfer Optimizer annotations for query block SEL$1 (#0)
id=0 frofkks[i] (index start key)
predicate="FINV"."SERV_PROV_CODE"='SACRAMENTO'
id=0 frofkke[i] (index stop key)
predicate="FINV"."SERV_PROV_CODE"='SACRAMENTO'
id=0 frofkks[i] (index start key)
predicate="XFI"."SERV_PROV_CODE"='SACRAMENTO'
id=0 frofkks[i] (index start key)
predicate="FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR"
id=0 frofkke[i] (index stop key)
predicate="XFI"."SERV_PROV_CODE"='SACRAMENTO'
id=0 frofkke[i] (index stop key)
predicate="FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR"
id=0 frofand predicate="XFI"."FEEITEM_INVOICE_STATUS"='INVOICED ' AND
"XFI"."REC_STATUS"='A'
id=0 frofkks[i] (index start key)
predicate="SD"."SERV_PROV_CODE"='SACRAMENTO'
id=0 frofkks[i] (index start key)
predicate="SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"
id=0 frofkks[i] (index start key)
predicate="SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"
id=0 frofkks[i] (index start key)
predicate="SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"
id=0 frofkke[i] (index stop key)
predicate="SD"."SERV_PROV_CODE"='SACRAMENTO'
id=0 frofkke[i] (index stop key)
predicate="SD"."B1_PER_ID1"="XFI"."B1_PER_ID1"
id=0 frofkke[i] (index stop key)
predicate="SD"."B1_PER_ID2"="XFI"."B1_PER_ID2"
id=0 frofkke[i] (index stop key)
predicate="SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"
id=0 frofand predicate=UPPER("SD"."SET_ID")='SET07'
id=0 frofkks[i] (index start key)
predicate="F4"."SERV_PROV_CODE"='SACRAMENTO'
id=0 frofkks[i] (index start key)
predicate="XFI"."B1_PER_ID1"="F4"."B1_PER_ID1"
id=0 frofkks[i] (index start key)
predicate="XFI"."B1_PER_ID2"="F4"."B1_PER_ID2"
id=0 frofkks[i] (index start key)
predicate="XFI"."B1_PER_ID3"="F4"."B1_PER_ID3"
id=0 frofkks[i] (index start key)
predicate="XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SE Q_NBR"
id=0 frofkke[i] (index stop key)
predicate="F4"."SERV_PROV_CODE"='SACRAMENTO'
id=0 frofkke[i] (index stop key)
predicate="XFI"."B1_PER_ID1"="F4"."B1_PER_ID1"
id=0 frofkke[i] (index stop key)
predicate="XFI"."B1_PER_ID2"="F4"."B1_PER_ID2"
id=0 frofkke[i] (index stop key)
predicate="XFI"."B1_PER_ID3"="F4"."B1_PER_ID3"
id=0 frofkke[i] (index stop key)
predicate="XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SE Q_NBR"
Final cost for query block SEL$1 (#0) - First K Rows Plan:
Best join order: 9
Cost: 4.5006 Degree: 1 Card: 117.0000 Bytes: 27495
Resc: 4.5006 Resc_io: 4.5000 Resc_cpu: 20442
Resp: 4.5006 Resp_io: 4.5000 Resc_cpu: 20442
kkoqbc-subheap (delete addr=0x6ddabc, in-use=487024, alloc=505200)
kkoqbc-end:
:
call(in-use=129404, alloc=653452), compile(in-use=121860,
alloc=126188), execution(in-use=3640, alloc=4060)

kkoqbc: finish optimizing query block SEL$1 (#0)
apadrv-end
:
call(in-use=129404, alloc=653452), compile(in-use=122576,
alloc=126188), execution(in-use=3640, alloc=4060)


Starting SQL statement dump

user_id=85 user_name=TEST module=SQL*Plus action=
sql_id=5n7ufx7tz1uks plan_hash_value=-546246515 problem_type=3
----- Current SQL Statement for this session (sql_id=5n7ufx7tz1uks)
-----
SELECT xfi.serv_prov_code,
xfi.b1_per_id1,
xfi.b1_per_id2,
xfi.b1_per_id3,
xfi.feeitem_seq_nbr,
xfi.invoice_nbr,
xfi.gf_fee_period,
xfi.gf_fee,
xfi.gf_des,
xfi.gf_unit,
xfi.gf_udes,
finv.invoice_date AS gf_fee_apply_date,
xfi.feeitem_invoice_status,
xfi.gf_l1,
xfi.gf_l2,
xfi.gf_l3,
xfi.x4feeitem_invoice_udf1,
xfi.x4feeitem_invoice_udf2,
xfi.x4feeitem_invoice_udf3,
xfi.x4feeitem_invoice_udf4,
xfi.gf_fee_schedule,
xfi.fee_schedule_version,
xfi.rec_date,
xfi.rec_ful_nam,
xfi.rec_status,
f4.GF_COD,
f4.GF_PRIORITY
FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv, F4FEEITEM
f4
WHERE sd.serv_prov_code = xfi.serv_prov_code
AND sd.b1_per_id1 = xfi.b1_per_id1
AND sd.b1_per_id2 = xfi.b1_per_id2
AND sd.b1_per_id3 = xfi.b1_per_id3
AND xfi.serv_prov_code = f4.serv_prov_code
AND xfi.b1_per_id1 = f4.b1_per_id1
AND xfi.b1_per_id2 = f4.b1_per_id2
AND xfi.b1_per_id3 = f4.b1_per_id3
And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
AND finv.serv_prov_code = xfi.serv_prov_code
AND finv.invoice_nbr = xfi.invoice_nbr
AND sd.serv_prov_code = 'SACRAMENTO'
AND upper(sd.set_id) = 'SET07'
AND xfi.rec_status = 'A'
AND xfi.feeitem_invoice_status = 'INVOICED'
ORDER BY gf_fee_apply_date
sql_text_length=1406
sql=SELECT xfi.serv_prov_code,
xfi.b1_per_id1,
xfi.b1_per_id2,
xfi.b1_per_id3,
xfi.feeitem_seq_nbr,
xfi.invoice_nbr,
xfi.gf_fee_period,
xfi.gf_fee,
xfi.gf_des,
xfi.gf_unit,
xfi.gf_udes,

sql= finv.invoice_date AS gf_fee_apply_date,
xfi.feeitem_invoice_status,
xfi.gf_l1,
xfi.gf_l2,
xfi.gf_l3,
xfi.x4feeitem_invoice_udf1,
xfi.x4feeitem_invoice_udf2,
xfi.x4feeitem_invoice_udf3,
xfi.x4feeite
sql=m_invoice_udf4,
xfi.gf_fee_schedule,
xfi.fee_schedule_version,
xfi.rec_date,
xfi.rec_ful_nam,
xfi.rec_status,
f4.GF_COD,
f4.GF_PRIORITY
FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
F4FEEITEM
sql=f4
WHERE sd.serv_prov_code = xfi.serv_prov_code
AND sd.b1_per_id1 = xfi.b1_per_id1
AND sd.b1_per_id2 = xfi.b1_per_id2
AND sd.b1_per_id3 = xfi.b1_per_id3
AND xfi.serv_prov_code = f4.serv_prov_code
AND xfi.b1_per_id1 = f4.b1_per_id1
AND xf
sql=i.b1_per_id2 = f4.b1_per_id2
AND xfi.b1_per_id3 = f4.b1_per_id3
And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
AND finv.serv_prov_code = xfi.serv_prov_code
AND finv.invoice_nbr = xfi.invoice_nbr
AND sd.serv_prov_code = 'SACRAMENTO'
AND uppe
sql=r(sd.set_id) = 'SET07'
AND xfi.rec_status = 'A'
AND xfi.feeitem_invoice_status = 'INVOICED'
ORDER BY gf_fee_apply_date
----- Explain Plan Dump -----
----- Plan Table -----

============
Plan Table
============
-------------------------------------------------------------------
+-----------------------------------+
| Id | Operation | Name |
Rows | Bytes | Cost | Time |
-------------------------------------------------------------------
+-----------------------------------+
| 0 | SELECT STATEMENT |
| | | 5 | |
| 1 | NESTED LOOPS |
| | | | |
| 2 | NESTED LOOPS | |
117 | 27K | 5 | 00:00:01 |
| 3 | NESTED LOOPS |
| 1 | 193 | 4 | 00:00:01 |
| 4 | NESTED LOOPS |
| 15 | 2325 | 2 | 00:00:01 |
| 5 | TABLE ACCESS BY INDEX ROWID | F4INVOICE |
243K | 5830K | 1 | 00:00:01 |
| 6 | INDEX RANGE SCAN | F4INVOICE_DATE_IX
| 3 | | 1 | 00:00:01 |
| 7 | TABLE ACCESS BY INDEX ROWID | X4FEEITEM_INVOICE
| 5 | 655 | 1 | 00:00:01 |
| 8 | INDEX RANGE SCAN |
X4FEEITEM_INVOICE_NBR_IX| 5 | | 1 | 00:00:01 |
| 9 | TABLE ACCESS BY INDEX ROWID | SETDETAILS
| 1 | 38 | 1 | 00:00:01 |
| 10 | INDEX RANGE SCAN | SETDETAILS_PID_IX
| 1 | | 1 | 00:00:01 |
| 11 | INDEX UNIQUE SCAN | F4FEEITEM_PK
| 1 | | 1 | 00:00:01 |
| 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM |
101 | 4242 | 1 | 00:00:01 |
-------------------------------------------------------------------
+-----------------------------------+
Predicate Information:
----------------------

*** 2009-11-04 12:27:19.326
6 - access("FINV"."SERV_PROV_CODE"='SACRAMENTO')
7 - filter(("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
"XFI"."REC_STATUS"='A'))
8 - access("XFI"."SERV_PROV_CODE"='SACRAMENTO' AND
"FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR")
9 - filter(UPPER("SET_ID")='SET07')
10 - access("SD"."SERV_PROV_CODE"='SACRAMENTO' AND
"SD"."B1_PER_ID1"="XFI"."B1_PER_ID1" AND
"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3")
11 - access("F4"."SERV_PROV_CODE"='SACRAMENTO' AND
"XFI"."B1_PER_ID1"="F4"."B1_PER_ID1" AND
"XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
"XFI"."B1_PER_ID3"="F4"."B1_PER_ID3" AND
"XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )

Content of other_xml column
===========================
db_version : 11.2.0.1
parse_schema : TEST
plan_hash : 3748720781
plan_hash_2 : 1520493255
Outline Data:
/*+
BEGIN_OUTLINE_DATA
IGNORE_OPTIM_EMBEDDED_HINTS
OPTIMIZER_FEATURES_ENABLE('11.1.0.6')
DB_VERSION('11.2.0.1')
OPT_PARAM('_optimizer_cost_based_transformation' 'off')
OPT_PARAM('optimizer_index_cost_adj' 10)
OPT_PARAM('optimizer_index_caching' 90)
FIRST_ROWS(100)
OUTLINE_LEAF(@"SEL$1")
INDEX_RS_ASC(@"SEL$1" "FINV"@"SEL
$1" ("F4INVOICE"."SERV_PROV_CODE" "F4INVOICE"."INVOICE_DATE"))
INDEX_RS_ASC(@"SEL$1" "XFI"@"SEL
$1" ("X4FEEITEM_INVOICE"."SERV_PROV_CODE"
"X4FEEITEM_INVOICE"."INVOICE_NBR"))
INDEX_RS_ASC(@"SEL$1" "SD"@"SEL
$1" ("SETDETAILS"."SERV_PROV_CODE" "SETDETAILS"."B1_PER_ID1"
"SETDETAILS"."B1_PER_ID2" "SETDETAILS"."B1_PER_ID3"))
INDEX(@"SEL$1" "F4"@"SEL$1" ("F4FEEITEM"."SERV_PROV_CODE"
"F4FEEITEM"."B1_PER_ID1" "F4FEEITEM"."B1_PER_ID2"
"F4FEEITEM"."B1_PER_ID3" "F4FEEITEM"."FEEITEM_SEQ_NBR"))
LEADING(@"SEL$1" "FINV"@"SEL$1" "XFI"@"SEL$1" "SD"@"SEL$1"
"F4"@"SEL$1")
USE_NL(@"SEL$1" "XFI"@"SEL$1")
USE_NL(@"SEL$1" "SD"@"SEL$1")
USE_NL(@"SEL$1" "F4"@"SEL$1")
NLJ_BATCHING(@"SEL$1" "F4"@"SEL$1")
END_OUTLINE_DATA
*/

Optimizer state dump:
Compilation Environment Dump
optimizer_mode_hinted = false
optimizer_features_hinted = 0.0.0
parallel_execution_enabled = true
parallel_query_forced_dop = 0
parallel_dml_forced_dop = 0
parallel_ddl_forced_degree = 0
parallel_ddl_forced_instances = 0
_query_rewrite_fudge = 90
optimizer_features_enable = 11.1.0.6
_optimizer_search_limit = 5
cpu_count = 4
active_instance_count = 1
parallel_threads_per_cpu = 2
hash_area_size = 131072
bitmap_merge_area_size = 1048576
sort_area_size = 65536
sort_area_retained_size = 0
_sort_elimination_cost_ratio = 0
_optimizer_block_size = 8192
_sort_multiblock_read_count = 2
_hash_multiblock_io_count = 0
_db_file_optimizer_read_count = 8
_optimizer_max_permutations = 2000
pga_aggregate_target = 204800 KB
_pga_max_size = 204800 KB
_query_rewrite_maxdisjunct = 257
_smm_auto_min_io_size = 56 KB
_smm_auto_max_io_size = 248 KB
_smm_min_size = 204 KB
_smm_max_size = 40960 KB
_smm_px_max_size = 102400 KB
_cpu_to_io = 0
_optimizer_undo_cost_change = 11.1.0.6
parallel_query_mode = enabled
parallel_dml_mode = disabled
parallel_ddl_mode = enabled
optimizer_mode = first_rows_100
sqlstat_enabled = false
_optimizer_percent_parallel = 101
_always_anti_join = choose
_always_semi_join = choose
_optimizer_mode_force = true
_partition_view_enabled = true
_always_star_transformation = false
_query_rewrite_or_error = false
_hash_join_enabled = true
cursor_sharing = exact
_b_tree_bitmap_plans = true
star_transformation_enabled = false
_optimizer_cost_model = choose
_new_sort_cost_estimate = true
_complex_view_merging = true
_unnest_subquery = true
_eliminate_common_subexpr = true
_pred_move_around = true
_convert_set_to_join = false
_push_join_predicate = true
_push_join_union_view = true
_fast_full_scan_enabled = true
_optim_enhance_nnull_detection = true
_parallel_broadcast_enabled = true
_px_broadcast_fudge_factor = 100
_ordered_nested_loop = true
_no_or_expansion = false
optimizer_index_cost_adj = 10
optimizer_index_caching = 90
_system_index_caching = 0
_disable_datalayer_sampling = false
query_rewrite_enabled = true
query_rewrite_integrity = enforced
_query_cost_rewrite = true
_query_rewrite_2 = true
_query_rewrite_1 = true
_query_rewrite_expression = true
_query_rewrite_jgmigrate = true
_query_rewrite_fpc = true
_query_rewrite_drj = true
_full_pwise_join_enabled = true
_partial_pwise_join_enabled = true
_left_nested_loops_random = true
_improved_row_length_enabled = true
_index_join_enabled = true
_enable_type_dep_selectivity = true
_improved_outerjoin_card = true
_optimizer_adjust_for_nulls = true
_optimizer_degree = 0
_use_column_stats_for_function = true
_subquery_pruning_enabled = true
_subquery_pruning_mv_enabled = false
_or_expand_nvl_predicate = true
_like_with_bind_as_equality = false
_table_scan_cost_plus_one = true
_cost_equality_semi_join = true
_default_non_equality_sel_check = true
_new_initial_join_orders = true
_oneside_colstat_for_equijoins = true
_optim_peek_user_binds = true
_minimal_stats_aggregation = true
_force_temptables_for_gsets = false
workarea_size_policy = auto
_smm_auto_cost_enabled = true
_gs_anti_semi_join_allowed = true
_optim_new_default_join_sel = true
optimizer_dynamic_sampling = 2
_pre_rewrite_push_pred = true
_optimizer_new_join_card_computation = true
_union_rewrite_for_gs = yes_gset_mvs
_generalized_pruning_enabled = true
_optim_adjust_for_part_skews = true
_force_datefold_trunc = false
statistics_level = typical
_optimizer_system_stats_usage = true
skip_unusable_indexes = true
_remove_aggr_subquery = true
_optimizer_push_down_distinct = 0
_dml_monitoring_enabled = true
_optimizer_undo_changes = false
_predicate_elimination_enabled = true
_nested_loop_fudge = 100
_project_view_columns = true
_local_communication_costing_enabled = true
_local_communication_ratio = 50
_query_rewrite_vop_cleanup = true
_slave_mapping_enabled = true
_optimizer_cost_based_transformation = off
_optimizer_mjc_enabled = true
_right_outer_hash_enable = true
_spr_push_pred_refspr = true
_optimizer_cache_stats = false
_optimizer_cbqt_factor = 50
_optimizer_squ_bottomup = true
_fic_area_size = 131072
_optimizer_skip_scan_enabled = true
_optimizer_cost_filter_pred = false
_optimizer_sortmerge_join_enabled = true
_optimizer_join_sel_sanity_check = true
_mmv_query_rewrite_enabled = true
_bt_mmv_query_rewrite_enabled = true
_add_stale_mv_to_dependency_list = true
_distinct_view_unnesting = false
_optimizer_dim_subq_join_sel = true
_optimizer_disable_strans_sanity_checks = 0
_optimizer_compute_index_stats = true
_push_join_union_view2 = true
_optimizer_ignore_hints = false
_optimizer_random_plan = 0
_query_rewrite_setopgrw_enable = true
_optimizer_correct_sq_selectivity = true
_disable_function_based_index = false
_optimizer_join_order_control = 3
_optimizer_cartesian_enabled = true
_optimizer_starplan_enabled = true
_extended_pruning_enabled = true
_optimizer_push_pred_cost_based = true
_optimizer_null_aware_antijoin = true
_optimizer_extend_jppd_view_types = true
_sql_model_unfold_forloops = run_time
_enable_dml_lock_escalation = false
_bloom_filter_enabled = true
_update_bji_ipdml_enabled = 0
_optimizer_extended_cursor_sharing = udo
_dm_max_shared_pool_pct = 1
_optimizer_cost_hjsmj_multimatch = true
_optimizer_transitivity_retain = true
_px_pwg_enabled = true
optimizer_secure_view_merging = true
_optimizer_join_elimination_enabled = true
flashback_table_rpi = non_fbt
_optimizer_cbqt_no_size_restriction = true
_optimizer_enhanced_filter_push = true
_optimizer_filter_pred_pullup = true
_rowsrc_trace_level = 0
_simple_view_merging = true
_optimizer_rownum_pred_based_fkr = true
_optimizer_better_inlist_costing = all
_optimizer_self_induced_cache_cost = false
_optimizer_min_cache_blocks = 10
_optimizer_or_expansion = depth
_optimizer_order_by_elimination_enabled = true
_optimizer_outer_to_anti_enabled = true
_selfjoin_mv_duplicates = true
_dimension_skip_null = true
_force_rewrite_enable = false
_optimizer_star_tran_in_with_clause = true
_optimizer_complex_pred_selectivity = true
_optimizer_connect_by_cost_based = true
_gby_hash_aggregation_enabled = true
_globalindex_pnum_filter_enabled = true
_px_minus_intersect = true
_fix_control_key = 0
_force_slave_mapping_intra_part_loads = false
_force_tmp_segment_loads = false
_query_mmvrewrite_maxpreds = 10
_query_mmvrewrite_maxintervals = 5
_query_mmvrewrite_maxinlists = 5
_query_mmvrewrite_maxdmaps = 10
_query_mmvrewrite_maxcmaps = 20
_query_mmvrewrite_maxregperm = 512
_query_mmvrewrite_maxmergedcmaps = 50
_query_mmvrewrite_maxqryinlistvals = 500
_disable_parallel_conventional_load = false
_trace_virtual_columns = false
_replace_virtual_columns = true
_virtual_column_overload_allowed = true
_kdt_buffering = true
_first_k_rows_dynamic_proration = true
_optimizer_sortmerge_join_inequality = true
_optimizer_aw_stats_enabled = true
_bloom_pruning_enabled = true
result_cache_mode = MANUAL
_px_ual_serial_input = true
_optimizer_skip_scan_guess = false
_enable_row_shipping = true
_row_shipping_threshold = 80
_row_shipping_explain = false
transaction_isolation_level = read_commited
_optimizer_distinct_elimination = true
_optimizer_multi_level_push_pred = true
_optimizer_group_by_placement = true
_optimizer_rownum_bind_default = 10
_enable_query_rewrite_on_remote_objs = true
_optimizer_extended_cursor_sharing_rel = simple
_optimizer_adaptive_cursor_sharing = true
_direct_path_insert_features = 0
_optimizer_improve_selectivity = true
optimizer_use_pending_statistics = false
_optimizer_enable_density_improvements = true
_optimizer_aw_join_push_enabled = true
_optimizer_connect_by_combine_sw = true
_enable_pmo_ctas = 0
_optimizer_native_full_outer_join = force
_bloom_predicate_enabled = true
_optimizer_enable_extended_stats = true
_is_lock_table_for_ddl_wait_lock = 0
_pivot_implementation_method = choose
optimizer_capture_sql_plan_baselines = false
optimizer_use_sql_plan_baselines = true
_optimizer_star_trans_min_cost = 0
_optimizer_star_trans_min_ratio = 0
_with_subquery = OPTIMIZER
_optimizer_fkr_index_cost_bias = 10
_optimizer_use_subheap = true
parallel_degree_policy = manual
parallel_degree = 0
parallel_min_time_threshold = 10
_parallel_time_unit = 10
_optimizer_or_expansion_subheap = true
_optimizer_free_transformation_heap = true
_optimizer_reuse_cost_annotations = true
_result_cache_auto_size_threshold = 100
_result_cache_auto_time_threshold = 1000
_optimizer_nested_rollup_for_gset = 100
_nlj_batching_enabled = 1
parallel_query_default_dop = 0
is_recur_flags = 0
optimizer_use_invisible_indexes = false
flashback_data_archive_internal_cursor = 0
_optimizer_extended_stats_usage_control = 240
_parallel_syspls_obey_force = true
cell_offload_processing = true
_rdbms_internal_fplib_enabled = false
db_file_multiblock_read_count = 128
_bloom_folding_enabled = false
_mv_generalized_oj_refresh_opt = true
cell_offload_compaction = ADAPTIVE
parallel_degree_limit = 65535
parallel_force_local = false
parallel_max_degree = 8
total_cpu_count = 4
cell_offload_plan_display = AUTO
_optimizer_coalesce_subqueries = false
_optimizer_fast_pred_transitivity = false
_optimizer_fast_access_pred_analysis = false
_optimizer_unnest_disjunctive_subq = false
_optimizer_unnest_corr_set_subq = false
_optimizer_distinct_agg_transform = false
_aggregation_optimization_settings = 32
_optimizer_connect_by_elim_dups = false
_optimizer_eliminate_filtering_join = false
_connect_by_use_union_all = old_plan_mode
dst_upgrade_insert_conv = true
advanced_queuing_internal_cursor = 0
_optimizer_unnest_all_subqueries = true
_bloom_predicate_pushdown_to_storage = true
_bloom_vector_elements = 0
_bloom_pushing_max = 524288
parallel_autodop = 0
parallel_ddldml = 0
_parallel_cluster_cache_policy = adaptive
_parallel_scalability = 50
iot_internal_cursor = 0
_optimizer_instance_count = 0
_optimizer_connect_by_cb_whr_only = false
_suppress_scn_chk_for_cqn = nosuppress_1466
_optimizer_join_factorization = false
_optimizer_use_cbqt_star_transformation = false
_optimizer_table_expansion = false
_and_pruning_enabled = false
_deferred_constant_folding_mode = DEFAULT
_optimizer_distinct_placement = false
partition_pruning_internal_cursor = 0
parallel_hinted = none
_sql_compatibility = 0
_optimizer_use_feedback = false
_optimizer_try_st_before_jppd = false
Bug Fix Control Environment
fix 3834770 = 1
fix 3746511 = enabled
fix 4519016 = enabled
fix 3118776 = enabled
fix 4488689 = enabled
fix 2194204 = disabled
fix 2660592 = enabled
fix 2320291 = enabled
fix 2324795 = enabled
fix 4308414 = enabled
fix 3499674 = disabled
fix 4569940 = enabled
fix 4631959 = enabled
fix 4519340 = enabled
fix 4550003 = enabled
fix 1403283 = enabled
fix 4554846 = enabled
fix 4602374 = enabled
fix 4584065 = enabled
fix 4545833 = enabled
fix 4611850 = enabled
fix 4663698 = enabled
fix 4663804 = enabled
fix 4666174 = enabled
fix 4567767 = enabled
fix 4556762 = 15
fix 4728348 = enabled
fix 4708389 = enabled
fix 4175830 = enabled
fix 4752814 = enabled
fix 4583239 = enabled
fix 4386734 = enabled
fix 4887636 = enabled
fix 4483240 = enabled
fix 4872602 = disabled
fix 4711525 = enabled
fix 4545802 = enabled
fix 4605810 = enabled
fix 4704779 = enabled
fix 4900129 = enabled
fix 4924149 = enabled
fix 4663702 = enabled
fix 4878299 = enabled
fix 4658342 = enabled
fix 4881533 = enabled
fix 4676955 = enabled
fix 4273361 = enabled
fix 4967068 = enabled
fix 4969880 = disabled
fix 5005866 = enabled
fix 5015557 = enabled
fix 4705343 = enabled
fix 4904838 = enabled
fix 4716096 = enabled
fix 4483286 = disabled
fix 4722900 = enabled
fix 4615392 = enabled
fix 5096560 = enabled
fix 5029464 = enabled
fix 4134994 = enabled
fix 4904890 = enabled
fix 5104624 = enabled
fix 5014836 = enabled
fix 4768040 = enabled
fix 4600710 = enabled
fix 5129233 = enabled
fix 4595987 = enabled
fix 4908162 = enabled
fix 5139520 = enabled
fix 5084239 = enabled
fix 5143477 = disabled
fix 2663857 = enabled
fix 4717546 = enabled
fix 5240264 = disabled
fix 5099909 = enabled
fix 5240607 = enabled
fix 5195882 = enabled
fix 5220356 = enabled
fix 5263572 = enabled
fix 5385629 = enabled
fix 5302124 = enabled
fix 5391942 = enabled
fix 5384335 = enabled
fix 5482831 = enabled
fix 4158812 = enabled
fix 5387148 = enabled
fix 5383891 = enabled
fix 5466973 = enabled
fix 5396162 = enabled
fix 5394888 = enabled
fix 5395291 = enabled
fix 5236908 = enabled
fix 5509293 = enabled
fix 5449488 = enabled
fix 5567933 = enabled
fix 5570494 = enabled
fix 5288623 = enabled
fix 5505995 = enabled
fix 5505157 = enabled
fix 5112460 = enabled
fix 5554865 = enabled
fix 5112260 = enabled
fix 5112352 = enabled
fix 5547058 = enabled
fix 5618040 = enabled
fix 5585313 = enabled
fix 5547895 = enabled
fix 5634346 = enabled
fix 5620485 = enabled
fix 5483301 = enabled
fix 5657044 = enabled
fix 5694984 = enabled
fix 5868490 = enabled
fix 5650477 = enabled
fix 5611962 = enabled
fix 4279274 = enabled
fix 5741121 = enabled
fix 5714944 = enabled
fix 5391505 = enabled
fix 5762598 = enabled
fix 5578791 = enabled
fix 5259048 = enabled
fix 5882954 = enabled
fix 2492766 = enabled
fix 5707608 = enabled
fix 5891471 = enabled
fix 5884780 = enabled
fix 5680702 = enabled
fix 5371452 = enabled
fix 5838613 = enabled
fix 5949981 = enabled
fix 5624216 = enabled
fix 5741044 = enabled
fix 5976822 = enabled
fix 6006457 = enabled
fix 5872956 = enabled
fix 5923644 = enabled
fix 5943234 = enabled
fix 5844495 = enabled
fix 4168080 = enabled
fix 6020579 = enabled
fix 5842686 = disabled
fix 5996801 = enabled
fix 5593639 = enabled
fix 6133948 = enabled
fix 3151991 = enabled
fix 6146906 = enabled
fix 6239909 = enabled
fix 6267621 = enabled
fix 5909305 = enabled
fix 6279918 = enabled
fix 6141818 = enabled
fix 6151963 = enabled
fix 6251917 = enabled
fix 6282093 = enabled
fix 6119510 = enabled
fix 6119382 = enabled
fix 3801750 = enabled
fix 5705630 = disabled
fix 5944076 = enabled
fix 5406763 = enabled
fix 6070954 = enabled
fix 6282944 = enabled
fix 6138746 = enabled
fix 6082745 = enabled
fix 3426050 = enabled
fix 599680 = enabled
fix 6062266 = enabled
fix 6087237 = enabled
fix 6122894 = enabled
fix 6377505 = disabled
fix 5893768 = enabled
fix 6163564 = enabled
fix 6073325 = enabled
fix 6188881 = enabled
fix 6007259 = enabled
fix 6239971 = enabled
fix 5284200 = enabled
fix 6042205 = enabled
fix 6051211 = enabled
fix 6434668 = enabled
fix 6438752 = disabled
fix 5936366 = disabled
fix 6439032 = enabled
fix 6438892 = disabled
fix 6006300 = disabled
fix 5947231 = enabled
fix 5416118 = 1
fix 6365442 = 1
fix 6239039 = enabled
fix 6502845 = disabled
fix 6913094 = disabled
fix 6029469 = enabled
fix 5919513 = enabled
fix 6057611 = enabled
fix 6469667 = enabled
fix 6608941 = disabled
fix 6368066 = disabled
fix 6329318 = enabled
fix 6656356 = enabled
fix 4507997 = enabled
fix 6671155 = enabled
fix 6694548 = enabled
fix 6688200 = enabled
fix 6612471 = disabled
fix 6708183 = disabled
fix 6326934 = enabled
fix 6520717 = disabled
fix 6714199 = enabled
fix 6681545 = disabled
fix 6748058 = disabled
fix 6167716 = disabled
fix 6674254 = enabled
fix 6468287 = enabled
fix 6503543 = disabled
fix 6808773 = disabled
fix 6766962 = disabled
fix 6120483 = enabled
fix 6670551 = disabled
fix 6771838 = enabled
fix 6626018 = disabled
fix 6530596 = enabled
fix 6778642 = enabled
fix 6699059 = disabled
fix 6376551 = disabled
fix 6429113 = enabled
fix 6782437 = enabled
fix 6776808 = disabled
fix 6765823 = disabled
fix 6768660 = disabled
fix 6782665 = disabled
fix 6610822 = enabled
fix 6514189 = enabled
fix 6818410 = disabled
fix 6827696 = disabled
fix 6773613 = enabled
fix 5902962 = enabled
fix 6956212 = enabled
fix 3056297 = enabled
fix 6440977 = disabled
fix 6972291 = disabled
fix 6904146 = enabled
fix 6221403 = enabled
fix 5475051 = enabled
fix 6845871 = enabled
fix 5468809 = enabled
fix 6917633 = disabled
fix 4444536 = disabled
fix 6955210 = enabled
fix 6994194 = enabled
fix 6399597 = disabled
fix 6951776 = disabled
fix 5648287 = 3
fix 6987082 = disabled
fix 7132036 = enabled
fix 6980350 = disabled
fix 5199213 = enabled
fix 7138405 = enabled
fix 7148689 = enabled
fix 6820988 = enabled
fix 7032684 = disabled
fix 6617866 = enabled
fix 7155968 = disabled
fix 7127980 = disabled
fix 6982954 = disabled
fix 7241819 = enabled
fix 6897034 = enabled
fix 7236148 = enabled
fix 7298570 = enabled
fix 7249095 = enabled
fix 7314499 = disabled
fix 7324224 = disabled
fix 7289023 = enabled
fix 7237571 = enabled
fix 7116357 = enabled
fix 7345484 = enabled
fix 7375179 = disabled
fix 6430500 = disabled
fix 5897486 = disabled
fix 6774209 = disabled
fix 7306637 = disabled
fix 6451322 = enabled
fix 7208131 = enabled
fix 7388652 = disabled
fix 7127530 = disabled
fix 6751206 = enabled
fix 6669103 = enabled
fix 7430474 = enabled
fix 6990305 = enabled
fix 7043307 = disabled
fix 6921505 = disabled
fix 7388457 = disabled
fix 3120429 = enabled
fix 7452823 = disabled
fix 6838105 = enabled
fix 6769711 = disabled
fix 7170213 = enabled
fix 6528872 = enabled
fix 7295298 = enabled
fix 5922070 = enabled
fix 7259468 = enabled
fix 6418552 = enabled
fix 4619997 = enabled
fix 7524366 = disabled
fix 6942476 = disabled
fix 6418771 = enabled
fix 7375077 = enabled
fix 5400639 = disabled
fix 4570921 = disabled
fix 7426911 = disabled
fix 5099019 = disabled
fix 7528216 = enabled
fix 7521266 = enabled
fix 7385140 = disabled
fix 7576516 = enabled
fix 7573526 = enabled
fix 7576476 = enabled
fix 7165898 = enabled
fix 7263214 = enabled
fix 3320140 = enabled
fix 7555510 = enabled
fix 7613118 = disabled
fix 7597059 = enabled
fix 7558911 = disabled
fix 5520732 = disabled
fix 7679490 = disabled
fix 7449971 = disabled
fix 3628118 = enabled
fix 4370840 = enabled
fix 7281191 = enabled
fix 7519687 = enabled
fix 5029592 = 0
fix 6012093 = 1
fix 6053861 = disabled
fix 6941515 = disabled
fix 7696414 = enabled
fix 7272039 = enabled
fix 7834811 = enabled
fix 7640597 = enabled
fix 7341616 = enabled
fix 7168184 = disabled
fix 399198 = disabled
fix 7831070 = enabled
fix 7676897 = disabled
fix 7414637 = disabled
fix 7585456 = enabled
fix 8202421 = disabled
fix 7658097 = disabled
fix 8251486 = disabled
fix 7132684 = enabled
fix 7512227 = enabled
fix 6972987 = disabled
fix 7199035 = disabled
fix 8243446 = disabled
fix 7650462 = disabled
fix 6720701 = enabled
fix 7592673 = enabled
fix 7718694 = disabled
fix 7534027 = disabled
fix 7708267 = enabled
fix 5716785 = disabled
fix 7356191 = enabled
fix 7679161 = disabled
fix 7597159 = disabled
fix 7499258 = enabled
fix 8328363 = disabled
fix 7452863 = disabled
fix 8284930 = disabled
fix 7298626 = disabled
fix 7657126 = enabled
fix 8371884 = enabled
fix 8318020 = enabled
fix 8255423 = enabled
fix 7135745 = enabled
fix 8356253 = disabled
fix 7534257 = enabled
fix 8323407 = enabled
fix 7539815 = enabled
fix 8289316 = enabled
fix 8447850 = disabled
fix 7675944 = enabled
fix 8355120 = disabled
fix 7176746 = enabled
fix 8442891 = disabled
fix 8373261 = disabled
fix 7679164 = disabled
fix 7670533 = enabled
fix 8408665 = disabled
fix 8491399 = disabled
fix 8348392 = disabled
fix 8348585 = enabled
fix 8508056 = disabled
fix 8335178 = disabled
fix 8515269 = disabled
fix 8247017 = enabled
fix 7325597 = enabled
fix 8531490 = disabled
fix 6163600 = enabled
fix 8589278 = disabled
fix 8557992 = disabled
fix 7556098 = enabled
fix 8580883 = enabled
fix 5892599 = disabled
fix 8609714 = enabled
fix 8514561 = enabled
fix 8619631 = disabled


Query Block Registry:
SEL$1 0x6d3604 (PARSER) [FINAL]

:
call(in-use=143084, alloc=653452), compile(in-use=197532,
alloc=256168), execution(in-use=28564, alloc=32592)

End of Optimizer State Dump
Dumping Hints
=============
====================== END SQL Statement Dump ======================
Reply With Quote
  #13 (permalink)  
Old 11-04-2009, 03:11 PM
Randolf Geist
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

On Nov 3, 4:29*pm, lsllcm <lsl...@gmail.com> wrote:
> I have one performance issue after upgrade to oracle 11.2.0.1 linux 32
> bit.
>
> The optimizer always choose index of "order by column", not use index
> of "where clause columns". Any comments are appreciated.


This might be caused by some code change / bug introduced in 11.2.0.1,
but since Charles already asked you to run the same with the optimizer
features reverted to 11.1.0.6 and you confirmed that the problem still
persists with this setting, there are some other possibilities:

1. Looking at the 10053 optimizer trace file, we can see that the
optimizer actually estimates that this statement is going to generate
millions of rows, so this is already way off from the 0 rows that it
actually produces. So the starting point of the whole calculation is
already totally wrong, since otherwise the optimizer would recognize
that using the FIRST_ROWS_n mode won't change the outcome of the
query. Looking at the 3 consistent gets with the good plan, it looks
like the whole execution already stops after the first index / table
access to SD, otherwise we probably would see more consistent gets. So
the runtime engine can take a shortcut here with the NESTED LOOP joins
if one the driving row sources generates 0 rows.

2. You're using the FIRST_ROWS_100 optimizer mode together with very
aggressive OPTIMIZER_INDEX_COST_ADJ and OPTIMIZER_INDEX_CACHING
settings which will lower cost of index access paths dramatically, in
particular when performing NESTED LOOP joins. This might lead to
multiple optimizer choices with similar costs, due to the lowering of
the cost. Using the FIRST_ROWS_n modes will introduce additional re-
costing steps by the optimizer for ORDER BY access. This is very
likely the reason why you don't see the effect when omitting the ORDER
BY.

3. You say that you've migrated to 11.2.0.1, but we don't know if the
remaining environment in terms of optimizer settings and object
statistics is the same as in the 10.2 and 11.1 databases you've used
to show the "correct" plan chosen. May be the 11.2 database has re-
gathered table/index statistics and with those modified statistics the
11.1 and 10.2 database might come to the same "bad" execution plan

4. As pointed out by Charles already, you need to be very careful with
testing when bind variables are involved, in order to make sure that
you don't share an execution plan from previous executions available
in the Shared Pool. This is obviously a general issue, and only
partially addressed by the new Adaptive Cursor Sharing introduced with
11.1

What you could try:

1. What cost / plan do you get if you request to use the index
SETDETAILS_SETID_IX?

SELECT /*+ INDEX(SD, SETDETAILS_SETID_IX) */ ...

2. What plan do you get in 11.2 if you're setting
OPTIMIZER_INDEX_COST_ADJ and OPTIMIZER_INDEX_CACHING to default
values:

ALTER SESSION SET OPTIMIZER_INDEX_COST_ADJ = 100;
ALTER SESSION SET OPTIMIZER_INDEX_CACHING = 0;

3. What plan do you get in your 10.2 and 11.1 databases if you use the
same environment as in 11.2? In particular the optimizer settings and
object statistics should be the same. You can either try to export /
import the object statistics manually or (I'm not sure if it requires
an additional license cost, but if your license allows for it) you can
very simply create a test case using the SQL Test Case Builder in 11.2
and try to import this into the 11.1 and 10.2 databases to create a
similar environment, however I'm not sure if this will work due to
potential compatibility issues in the lower version environments.

Use the DBMS_SQLDIAG.EXPORT_SQL_TESTCASE / IMPORT_SQL_TESTCASE to do
so.

See the manuals or e.g. http://optimizermagic.blogspot.com/2...ng-my-tar.html
for more information.

4. A general question: Is your application actually using the
FIRST_ROWS_100 optimizer mode properly? Which means, do you always
fetch only a few rows from a larger result set? Does your application
show only the top N ordered results of a search result in "pagination"
style like Google search? Only then the FIRST_ROWS_100 mode is
reasonable, otherwise you should actually use the ALL_ROWS mode. Given
your aggressive OPTIMIZER_INDEX_COST_ADJ and OPTIMIZER_INDEX_CACHING
the optimizer would still favor index access / nested loop operations
quite a lot even in ALL_ROWS mode.

Regards,
Randolf

Oracle related stuff blog:
http://oracle-randolf.blogspot.com/

SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/
Reply With Quote
  #14 (permalink)  
Old 11-07-2009, 08:31 AM
Jonathan Lewis
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.


"lsllcm" <lsllcm@gmail.com> wrote in message
news:871566ee-22ef-4895-bcc6-753269a7bc3a@f18g2000prf.googlegroups.com...
> The trace file is too long, I use three parts.
>
> *************************************
> PARAMETERS WITH ALTERED VALUES
> ******************************
> Compilation Environment Dump
> optimizer_features_enable = 11.1.0.6
> optimizer_mode = first_rows_100
> optimizer_index_cost_adj = 10
> optimizer_index_caching = 90
> _optimizer_cost_based_transformation = off



Sorry about picking this one up so late.

I've had a quick read through the posts I can see at the moment.
The critical issue is (as Charles and Randolf have pointed out)
the use of first_rows_100, combined with Randolf's observation
that the expected result set is 40 million rows.

>> First K Rows: K = 100.00, N = 40640900.00
>> First K Rows: Setup end


When you don't have the order by clause, Oracle is working on a
plan that will pick up any 100 rows as quickly as possible. When
you add the order by the optimizer "knows" it has to acquire 40M
rows and sort them before returning the first 100. Consequently
any path that avoids doing the sorting is likely to be a good path -
hence the choice of index to drive the query.


--
Regards

Jonathan Lewis
http://jonathanlewis.wordpress.com

Author: Cost Based Oracle: Fundamentals
http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html


Reply With Quote
  #15 (permalink)  
Old 11-07-2009, 01:13 PM
lsllcm
Guest
 
Posts: n/a
Default Re: performance issue after upgrade to oracle 11.2.0.1 linux 32 bit.

Thanks Charles and Randolf for your comments:

Below are test cases and results.

------------------------case
1------------------------------------------------
1. Use hint /*+ index(SD SETDETAILS_SETID_IX) */

Result: the result is same as no index hint

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

SQL> rem set autotrace trace
SQL> set timing on
SQL>
SQL> variable spc varchar2(15);
SQL> variable bfd varchar2(40);
SQL> variable efd varchar2(40);
SQL> variable p1 varchar2(60);
SQL> variable p2 varchar2(60);
SQL> exec :spc:='SACRAMENTO';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.39
SQL> exec :bfd:='2005-12-05';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.07
SQL> exec :efd:='2008-12-04 23:59:59';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.37
SQL> rem exec 1:='254413'
SQL> exec 1:='SET07'

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.03
SQL> exec 2:='Contractor'

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.18
SQL>
SQL> rem alter session set optimizer_index_caching = 0;
SQL> rem alter session set optimizer_index_cost_adj = 100;
SQL> rem alter session set optimizer_mode = ALL_ROWS;
SQL> alter session set optimizer_index_caching = 90;

Session altered.

Elapsed: 00:00:00.03
SQL> alter session set optimizer_index_cost_adj = 10;

Session altered.

Elapsed: 00:00:00.03
SQL> alter session set optimizer_mode = FIRST_ROWS_100;

Session altered.

Elapsed: 00:00:00.00
SQL>
SQL>
SQL> SELECT /*+ index(SD SETDETAILS_SETID_IX) */ xfi.serv_prov_code,
2 xfi.b1_per_id1,
3 xfi.b1_per_id2,
4 xfi.b1_per_id3,
5 xfi.feeitem_seq_nbr,
6 xfi.invoice_nbr,
7 xfi.gf_fee_period,
8 xfi.gf_fee,
9 xfi.gf_des,
10 xfi.gf_unit,
11 xfi.gf_udes,
12 finv.invoice_date AS gf_fee_apply_date,
13 xfi.feeitem_invoice_status,
14 xfi.gf_l1,
15 xfi.gf_l2,
16 xfi.gf_l3,
17 xfi.x4feeitem_invoice_udf1,
18 xfi.x4feeitem_invoice_udf2,
19 xfi.x4feeitem_invoice_udf3,
20 xfi.x4feeitem_invoice_udf4,
21 xfi.gf_fee_schedule,
22 xfi.fee_schedule_version,
23 xfi.rec_date,
24 xfi.rec_ful_nam,
25 xfi.rec_status,
26 f4.GF_COD,
27 f4.GF_PRIORITY
28 FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
F4FEEITEM f4
29 WHERE sd.serv_prov_code = xfi.serv_prov_code
30 AND sd.b1_per_id1 = xfi.b1_per_id1
31 AND sd.b1_per_id2 = xfi.b1_per_id2
32 AND sd.b1_per_id3 = xfi.b1_per_id3
33 AND xfi.serv_prov_code = f4.serv_prov_code
34 AND xfi.b1_per_id1 = f4.b1_per_id1
35 AND xfi.b1_per_id2 = f4.b1_per_id2
36 AND xfi.b1_per_id3 = f4.b1_per_id3
37 And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
38 AND finv.serv_prov_code = xfi.serv_prov_code
39 AND finv.invoice_nbr = xfi.invoice_nbr
40 AND sd.serv_prov_code = :spc
41 AND upper(sd.set_id) = 1
42 AND xfi.rec_status = 'A'
43 AND xfi.feeitem_invoice_status = 'INVOICED'
44 ORDER BY gf_fee_apply_date
45 /

no rows selected

Elapsed: 00:06:07.08
SQL> SELECT * FROM TABLE (DBMS_XPLAN.DISPLAY_CURSOR
(NULL,NULL,'ALLSTATS LAST'

Plan hash value: 1519767420

-----------------------------------------------------------------------------
| Id | Operation | Name | E-
Rows |

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
-----------------------------------------------------------------------------
| 0 | SELECT STATEMENT |
| |
| 1 | NESTED LOOPS |
| |
| 2 | NESTED LOOPS |
| 117 |
| 3 | NESTED LOOPS |
| 1 |
| 4 | NESTED LOOPS |
| 15 |
| 5 | TABLE ACCESS BY INDEX ROWID| F4INVOICE
| 248K|
|* 6 | INDEX RANGE SCAN | F4INVOICE_DATE_IX
| 3 |
|* 7 | TABLE ACCESS BY INDEX ROWID| X4FEEITEM_INVOICE
| 5 |
|* 8 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_NBR_IX
| 5 |
|* 9 | TABLE ACCESS BY INDEX ROWID | SETDETAILS
| 1 |

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
|* 10 | INDEX RANGE SCAN | SETDETAILS_SETID_IX
| 24 |
|* 11 | INDEX UNIQUE SCAN | F4FEEITEM_PK
| 1 |
| 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM
| 101 |
-----------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

6 - access("FINV"."SERV_PROV_CODE"=:SPC)
7 - filter(("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
"XFI"."REC_STATUS"='A'))

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
8 - access("XFI"."SERV_PROV_CODE"=:SPC AND
"FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR")
9 - filter(("SD"."B1_PER_ID1"="XFI"."B1_PER_ID1" AND
"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
"SD"."B1_PER_ID3"="XFI"."B1_PER_ID3"))
10 - access("SD"."SERV_PROV_CODE"=:SPC AND "SD"."SYS_NC00017$"=:P1)
11 - access("F4"."SERV_PROV_CODE"=:SPC AND
"XFI"."B1_PER_ID1"="F4"."B1_PER_ID1" AND
"XFI"."B1_PER_ID2"="F4"."B1_PER_ID2" AND
"XFI"."B1_PER_ID3"="F4"."B1_PER_ID3" AND
"XFI"."FEEITEM_SEQ_NBR"="F4"."FEEITEM_SEQ_NBR" )

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------

Note
-----
- Warning: basic plan statistics not available. These are only
collected when
:

* hint 'gather_plan_statistics' is used for the statement or
* parameter 'statistics_level' is set to 'ALL', at session or
system leve
l



62 rows selected.

Elapsed: 00:00:11.59
SQL> exit

------------------------case
2------------------------------------------------
2. Use hint /*+ LEADING(SD) index(SD SETDETAILS_SETID_IX) */

Result: the result is use SD at first in nested loop.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

SQL> rem set autotrace trace
SQL> set timing on
SQL>
SQL> variable spc varchar2(15);
SQL> variable bfd varchar2(40);
SQL> variable efd varchar2(40);
SQL> variable p1 varchar2(60);
SQL> variable p2 varchar2(60);
SQL> exec :spc:='SACRAMENTO';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> exec :bfd:='2005-12-05';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> exec :efd:='2008-12-04 23:59:59';

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL> rem exec 1:='254413'
SQL> exec 1:='SET07'

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.01
SQL> exec 2:='Contractor'

PL/SQL procedure successfully completed.

Elapsed: 00:00:00.00
SQL>
SQL> rem alter session set optimizer_index_caching = 0;
SQL> rem alter session set optimizer_index_cost_adj = 100;
SQL> rem alter session set optimizer_mode = ALL_ROWS;
SQL> alter session set optimizer_index_caching = 90;

Session altered.

Elapsed: 00:00:00.00
SQL> alter session set optimizer_index_cost_adj = 10;

Session altered.

Elapsed: 00:00:00.01
SQL> alter session set optimizer_mode = FIRST_ROWS_100;

Session altered.

Elapsed: 00:00:00.00
SQL>
SQL>
SQL> SELECT /*+ LEADING(SD) index(SD SETDETAILS_SETID_IX) */
xfi.serv_prov_code,
2 xfi.b1_per_id1,
3 xfi.b1_per_id2,
4 xfi.b1_per_id3,
5 xfi.feeitem_seq_nbr,
6 xfi.invoice_nbr,
7 xfi.gf_fee_period,
8 xfi.gf_fee,
9 xfi.gf_des,
10 xfi.gf_unit,
11 xfi.gf_udes,
12 finv.invoice_date AS gf_fee_apply_date,
13 xfi.feeitem_invoice_status,
14 xfi.gf_l1,
15 xfi.gf_l2,
16 xfi.gf_l3,
17 xfi.x4feeitem_invoice_udf1,
18 xfi.x4feeitem_invoice_udf2,
19 xfi.x4feeitem_invoice_udf3,
20 xfi.x4feeitem_invoice_udf4,
21 xfi.gf_fee_schedule,
22 xfi.fee_schedule_version,
23 xfi.rec_date,
24 xfi.rec_ful_nam,
25 xfi.rec_status,
26 f4.GF_COD,
27 f4.GF_PRIORITY
28 FROM x4feeitem_invoice xfi, setdetails sd, f4invoice finv,
F4FEEITEM f4
29 WHERE sd.serv_prov_code = xfi.serv_prov_code
30 AND sd.b1_per_id1 = xfi.b1_per_id1
31 AND sd.b1_per_id2 = xfi.b1_per_id2
32 AND sd.b1_per_id3 = xfi.b1_per_id3
33 AND xfi.serv_prov_code = f4.serv_prov_code
34 AND xfi.b1_per_id1 = f4.b1_per_id1
35 AND xfi.b1_per_id2 = f4.b1_per_id2
36 AND xfi.b1_per_id3 = f4.b1_per_id3
37 And xfi.feeitem_seq_nbr = f4.feeitem_seq_nbr
38 AND finv.serv_prov_code = xfi.serv_prov_code
39 AND finv.invoice_nbr = xfi.invoice_nbr
40 AND sd.serv_prov_code = :spc
41 AND upper(sd.set_id) = 1
42 AND xfi.rec_status = 'A'
43 AND xfi.feeitem_invoice_status = 'INVOICED'
44 ORDER BY gf_fee_apply_date
45 /

no rows selected

Elapsed: 00:00:00.65
SQL> SELECT * FROM TABLE (DBMS_XPLAN.DISPLAY_CURSOR
(NULL,NULL,'ALLSTATS LAST')) ;

Plan hash value: 3678138156

--------------------------------------------------------------------------------
-----------------------

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------

| Id | Operation | Name | E-
Rows | OM
em | 1Mem | Used-Mem |

--------------------------------------------------------------------------------
-----------------------

| 0 | SELECT STATEMENT |
| |
| | |

| 1 | SORT ORDER BY | |
112K| 10

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
24 | 1024 | |

|* 2 | HASH JOIN | |
112K|
11M| 2154K| 13M (0)|

| 3 | TABLE ACCESS BY INDEX ROWID | F4INVOICE |
248K|
| | |

|* 4 | INDEX RANGE SCAN | F4INVOICE_BATCH_NBR_IX |
248K|
| | |


PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
|* 5 | HASH JOIN | |
90650 | 6
94K| 694K| 214K (0)|

| 6 | NESTED LOOPS |
| |
| | |

| 7 | NESTED LOOPS | |
90650 |
| | |

| 8 | TABLE ACCESS BY INDEX ROWID| SETDETAILS
| 25 |
| | |

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------

|* 9 | INDEX RANGE SCAN | SETDETAILS_SETID_IX
| 25 |
| | |

|* 10 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_PK
| 1 |
| | |

|* 11 | TABLE ACCESS BY INDEX ROWID | X4FEEITEM_INVOICE |
3578 |
| | |

| 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM |
1231K|

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
| | |

|* 13 | INDEX RANGE SCAN | F4FEEITEM_POS_IX |
1231K|
| | |

--------------------------------------------------------------------------------
-----------------------


Predicate Information (identified by operation id):
---------------------------------------------------

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------

2 - access("FINV"."SERV_PROV_CODE"="XFI"."SERV_PROV_CO DE" AND
"FINV"."INVOICE_NBR"="XFI"."INVOICE_NBR")
4 - access("FINV"."SERV_PROV_CODE"=:SPC)
5 - access("XFI"."SERV_PROV_CODE"="F4"."SERV_PROV_CODE " AND
"XFI"."B1_PER_ID1"="F4"."B1_PER_ID1" AND
"XFI"."B1_PER_ID2"="F4"."
B1_PER_ID2" AND

"XFI"."B1_PER_ID3"="F4"."B1_PER_ID3" AND
"XFI"."FEEITEM_SEQ_NBR"="
F4"."FEEITEM_SEQ_NBR")


PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
9 - access("SD"."SERV_PROV_CODE"=:SPC AND "SD"."SYS_NC00017$"=:P1)
10 - access("XFI"."SERV_PROV_CODE"=:SPC AND
"SD"."B1_PER_ID1"="XFI"."B1_PER_ID
1" AND

"SD"."B1_PER_ID2"="XFI"."B1_PER_ID2" AND
"SD"."B1_PER_ID3"="XFI"."
B1_PER_ID3")

11 - filter(("XFI"."FEEITEM_INVOICE_STATUS"='INVOICED' AND
"XFI"."REC_STATUS"=
'A'))

13 - access("F4"."SERV_PROV_CODE"=:SPC)

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------

Note
-----
- Warning: basic plan statistics not available. These are only
collected when
:

* hint 'gather_plan_statistics' is used for the statement or
* parameter 'statistics_level' is set to 'ALL', at session or
system leve
l



60 rows selected.

Elapsed: 00:00:00.32
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release
11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options

E:\tools\syncdata>

------------------------case
3------------------------------------------------
3. combination ALL_ROWS + OICA (10) + OIC (90) + NO HINTS

Result: as below

| Id | Operation | Name | E-
Rows | OMem | 1Mem | Used-Mem |
-------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT |
| | | | |
| 1 | SORT ORDER BY | |
112K| 1024 | 1024 | |
|* 2 | HASH JOIN | |
112K| 11M| 2154K| 13M (0)|
| 3 | TABLE ACCESS BY INDEX ROWID | F4INVOICE |
248K| | | |
|* 4 | INDEX RANGE SCAN | F4INVOICE_BATCH_NBR_IX |
248K| | | |
|* 5 | HASH JOIN | |
90650 | 694K| 694K| 214K (0)|
| 6 | NESTED LOOPS |
| | | | |
| 7 | NESTED LOOPS | |
90650 | | | |
| 8 | TABLE ACCESS BY INDEX ROWID| SETDETAILS
| 25 | | | |
|* 9 | INDEX RANGE SCAN | SETDETAILS_SETID_IX
| 25 | | | |
|* 10 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_PK
| 1 | | | |
|* 11 | TABLE ACCESS BY INDEX ROWID | X4FEEITEM_INVOICE |
3578 | | | |
| 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM |
1231K| | | |
|* 13 | INDEX RANGE SCAN | F4FEEITEM_POS_IX |
1231K| | | |

------------------------case
4------------------------------------------------
4. combination ALL_ROWS + OICA (10) + OIC (0) + NO HINTS

Result: as below

| Id | Operation | Name | E-
Rows | OMem | 1Mem | Used-Mem |
-------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT |
| | | | |
| 1 | SORT ORDER BY | |
112K| 1024 | 1024 | |
|* 2 | HASH JOIN | |
112K| 11M| 2154K| 13M (0)|
| 3 | TABLE ACCESS BY INDEX ROWID | F4INVOICE |
248K| | | |
|* 4 | INDEX RANGE SCAN | F4INVOICE_BATCH_NBR_IX |
248K| | | |
|* 5 | HASH JOIN | |
90650 | 694K| 694K| 1047K (0)|
| 6 | NESTED LOOPS |
| | | | |
| 7 | NESTED LOOPS | |
90650 | | | |
| 8 | TABLE ACCESS BY INDEX ROWID| SETDETAILS
| 25 | | | |
|* 9 | INDEX RANGE SCAN | SETDETAILS_SETID_IX
| 25 | | | |
|* 10 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_PK
| 1 | | | |
|* 11 | TABLE ACCESS BY INDEX ROWID | X4FEEITEM_INVOICE |
3578 | | | |
| 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM |
1231K| | | |
|* 13 | INDEX RANGE SCAN | F4FEEITEM_POS_IX |
1231K| | | |
-------------------------------------------------------------------------------------------------------

------------------------case
5------------------------------------------------
5. combination ALL_ROWS + OICA (100) + OIC (0) + NO HINTS

Result: as below

| Id | Operation | Name | E-
Rows | OMem | 1Mem | Used-Mem |
-------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT |
| | | | |
| 1 | SORT ORDER BY | |
112K| 1024 | 1024 | |
|* 2 | HASH JOIN | |
112K| 11M| 2154K| 13M (0)|
| 3 | TABLE ACCESS BY INDEX ROWID | F4INVOICE |
248K| | | |
|* 4 | INDEX RANGE SCAN | F4INVOICE_BATCH_NBR_IX |
248K| | | |
|* 5 | HASH JOIN | |
90650 | 694K| 694K| 1047K (0)|
| 6 | NESTED LOOPS |
| | | | |
| 7 | NESTED LOOPS | |
90650 | | | |
| 8 | TABLE ACCESS BY INDEX ROWID| SETDETAILS
| 25 | | | |
|* 9 | INDEX RANGE SCAN | SETDETAILS_SETID_IX
| 25 | | | |
|* 10 | INDEX RANGE SCAN | X4FEEITEM_INVOICE_PK
| 1 | | | |
|* 11 | TABLE ACCESS BY INDEX ROWID | X4FEEITEM_INVOICE |
3578 | | | |
| 12 | TABLE ACCESS BY INDEX ROWID | F4FEEITEM |
1231K| | | |
|* 13 | INDEX RANGE SCAN | F4FEEITEM_POS_IX |
1231K| | | |
-------------------------------------------------------------------------------------------------------

------------------------item
6------------------------------------------------
6. If query is expected to retrieve 100,000 rows, but the application
front-end will ONLY read just the first 100 rows and then throw away
the rest of the query results without bother fetching the remaining
rows.
[lsllcm] There are many queries like the case in our environment. So
we use FIRST_ROWS_100. I will test different queries in both
FIRST_ROWS_100 and ALL_ROWS in 10g db and see difference.

------------------------item
7------------------------------------------------
Is it a special case that no rows are returned due to some of the
bind
values used? How many rows does this kind of statement return
typically?

[lsllcm] The data in table SETDETAILS is skew, most of them have less
than 100 rows returned
based on SETDETAILS_SETID_IX. 10 of them have from 10,000 - 40,000
rows returned.

I use below command to gather statistics.

exec dbms_stats.gather_schema_stats
('TEST',estimate_percent=>100,cascade=> TRUE);

Below are histogram of SYS_NC00017$

COLUMN_NAME ENDPOINT_NUMBER ENDPOINT_VALUE
---------------------------------- --------------- --------------
SYS_NC00017$ 0 2.502076227359
SYS_NC00017$ 1 3.388853334909
SYS_NC00017$ 2 3.391679403148
SYS_NC00017$ 3 3.391679403478
SYS_NC00017$ 4 3.391679403525
SYS_NC00017$ 5 3.442991320807
SYS_NC00017$ 6 3.492087683254
SYS_NC00017$ 7 3.495116616164
SYS_NC00017$ 8 3.547450636185
SYS_NC00017$ 9 3.649479141472
SYS_NC00017$ 10 3.699779507944
SYS_NC00017$ 11 3.703217969722
SYS_NC00017$ 12 3.703622906366
SYS_NC00017$ 13 3.857771503121
SYS_NC00017$ 14 3.907648005162
SYS_NC00017$ 15 3.956124399555
SYS_NC00017$ 16 3.964259789323
SYS_NC00017$ 17 4.013711600766
SYS_NC00017$ 38 4.013711600766
SYS_NC00017$ 40 4.013711600766

COLUMN_NAME ENDPOINT_NUMBER ENDPOINT_VALUE
---------------------------------- --------------- --------------
SYS_NC00017$ 41 4.013737736751
SYS_NC00017$ 42 4.013737736908
SYS_NC00017$ 43 4.013739364774
SYS_NC00017$ 44 4.013741723170
SYS_NC00017$ 45 4.013741723170
SYS_NC00017$ 56 4.013748076424
SYS_NC00017$ 63 4.013748076644
SYS_NC00017$ 67 4.013748076645
SYS_NC00017$ 68 4.013748076656
SYS_NC00017$ 69 4.013748076657
SYS_NC00017$ 70 4.013748076669
SYS_NC00017$ 72 4.013748076681
SYS_NC00017$ 73 4.013748076718
SYS_NC00017$ 99 4.013748076765
SYS_NC00017$ 122 4.013748076766
SYS_NC00017$ 123 4.013748076798
SYS_NC00017$ 124 4.013748076801
SYS_NC00017$ 125 4.013748076802
SYS_NC00017$ 140 4.013748076826
SYS_NC00017$ 147 4.013748076826
SYS_NC00017$ 148 4.013748076838

COLUMN_NAME ENDPOINT_NUMBER ENDPOINT_VALUE
---------------------------------- --------------- --------------
SYS_NC00017$ 151 4.013748076838
SYS_NC00017$ 152 4.013748076919
SYS_NC00017$ 161 4.013748881378
SYS_NC00017$ 188 4.013748881378
SYS_NC00017$ 192 4.013748881378
SYS_NC00017$ 211 4.013748881378
SYS_NC00017$ 212 4.013749655139
SYS_NC00017$ 213 4.013751258162
SYS_NC00017$ 214 4.013752022627
SYS_NC00017$ 215 4.013761551658
SYS_NC00017$ 216 4.063638056887
SYS_NC00017$ 222 4.117383319540
SYS_NC00017$ 223 4.167086228207
SYS_NC00017$ 224 4.271108002299
SYS_NC00017$ 225 4.271744272749
SYS_NC00017$ 226 4.273769335395
SYS_NC00017$ 227 4.319380127847
SYS_NC00017$ 228 4.319380127847
SYS_NC00017$ 229 4.319380127847
SYS_NC00017$ 230 4.319380127847
SYS_NC00017$ 231 4.319380127847

COLUMN_NAME ENDPOINT_NUMBER ENDPOINT_VALUE
---------------------------------- --------------- --------------
SYS_NC00017$ 232 4.319380127847
SYS_NC00017$ 233 4.319380127847
SYS_NC00017$ 234 4.319380127847
SYS_NC00017$ 238 4.319380127847
SYS_NC00017$ 240 4.319380127847
SYS_NC00017$ 241 4.319380127847
SYS_NC00017$ 242 4.319380127847
SYS_NC00017$ 243 4.319380127847
SYS_NC00017$ 244 4.319380127847
SYS_NC00017$ 245 4.319380127847
SYS_NC00017$ 247 4.319380127847
SYS_NC00017$ 248 4.319380127847
SYS_NC00017$ 249 4.324469045995
SYS_NC00017$ 250 4.376187633557
SYS_NC00017$ 251 4.377607232242
SYS_NC00017$ 252 4.430327275963
SYS_NC00017$ 253 4.530723636900
SYS_NC00017$ 254 4.690372424101

------------------------item
8------------------------------------------------
[lsllcm] The reason to set "_optimizer_cost_based_transformation is to
check if
the issue is related to the setting. Now I have set it back to
default.

------------------------item
9------------------------------------------------
9. You might try collecting system statistics during a busy time
period.
To collect the system statistics with a 60 minute monitoring period,
enter the following in SQL*Plus (the SQL*Plus command prompt will
return immediately):
EXEC DBMS_STATS.GATHER_SYSTEM_STATS('interval',interval =>60)

[lsllcm] I did not gather system statistics, and I check again
scheduled job, no job
gather system staitstics.

At first I use below command to gather statistics.
exec dbms_stats.gather_schema_stats
('TEST',estimate_percent=>100,cascade=> TRUE);

11g has automatic statistics gathering job too.
BEGIN
DBMS_AUTO_TASK_ADMIN.disable( client_name => 'auto optimizer stats
collection',
operation => NULL,
window_name => NULL);
END;
/

------------------------item
10------------------------------------------------
10. As you suggested, I change the optimizer setting into default as
combination ALL_ROWS + OICA (100) + OIC (0) in test environment. The
result is
system looks like to become stable. Even if the query does not choose
best
execution plan, it chooses not worst execution plan. Like the test
case above,
it has 3 consistent reads in 10g db (it should be best execution
plan). In 11g
(ALL_ROWS), it has 3656 consistent reads (it is not best, but it is
not worst
too). In 11g (FIRST_ROWS_100), it has 2891740 consistent gets(like
worst one).

Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:56 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.