1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
SELECT /*+ rule */ pr.imsi, pr.msisdn, TO_CHAR(pr.entdate, 'DD/MM/YYYY'),
pc.offre_id,pc.sale_syst_cust,pc.iccid, pc.imei, TO_CHAR(pc.gencod), pc.co_id,
pc.vente_id, pc.flag_feh_sale, pc.vidpmsold, pc.msisdn,pc.code_plan
FROM ppc_sim_cust_hst pc, ppctn_hist pr, info_contr_text ict
WHERE pr.imsi = pc.imsi
AND ict.co_id = pc.co_id AND ict.text15 IS NULL AND pr.old_state = 1 AND
pr.new_state = 2 AND pr.entdate < (sysdate-(60/1440)) AND (pr.msisdn,
pr.ppctn_reqno) IN (SELECT pp.msisdn, MIN(pp.ppctn_reqno) FROM ppctn_hist pp
WHERE pp.old_state = 1 AND pp.new_state = 2 group by pp.msisdn) AND
pc.STAMSI='P' ;
OPERATION OBJECT OPTIMIZER COST CARD
------------------------------------------------------- ----------------------------------- ---------------- ---------- ----------
SELECT STATEMENT HINT: RULE
FILTER
SORT (GROUP BY)
TABLE ACCESS (BY INDEX ROWID) PPC_SIM_CUST_HST ANALYZED
NESTED LOOPS
NESTED LOOPS
NESTED LOOPS
TABLE ACCESS (FULL) INFO_CONTR_TEXT ANALYZED
TABLE ACCESS (BY INDEX ROWID) PPCTN_HIST ANALYZED
INDEX (RANGE SCAN) PPCTN_HISTI3 (NON-UNIQUE) ANALYZED
TABLE ACCESS (BY INDEX ROWID) PPCTN_HIST ANALYZED
AND-EQUAL
INDEX (RANGE SCAN) IDX_PPCTN_HIST_MSISDN (NON-UNIQUE) ANALYZED
INDEX (RANGE SCAN) PPCTN_HISTI3 (NON-UNIQUE) ANALYZED
INDEX (RANGE SCAN) PPC_SIM_CUST_HST_CO_ID (NON-UNIQUE) ANALYZED
OWNER TABLE_NAME NUM_ROWS AVG_ROW_LEN CHAIN_COUNT BLOCKS EMPTY_BLOCKS AVG_SPACE LAST_ANALYZED GS
------------ ------------------------ ---------- ----------- ---------------- ---------- ------------ ---------- ---------------- --
SYSADM PPC_SIM_CUST_HST 16118 158 0 385 126 1298 27/08/2006 00:11 N
INFO_CONTR_TEXT 1244636 164 440717 35% 39557 9594 2336 27/08/2006 00:13 N
PPCTN_HIST 12822418 90 164 0% 240420 5339 3050 27/08/2006 00:56 N
Mode CHOOSE
OPERATION OBJECT OPTIMIZER COST CARD
------------------------------------------------------- ----------------------------------- ---------------- ---------- ----------
SELECT STATEMENT CHOOSE 41053 1
HASH JOIN (SEMI) 41053 1
TABLE ACCESS (BY INDEX ROWID) PPCTN_HIST ANALYZED 10 38119
NESTED LOOPS 72 1
NESTED LOOPS 62 1
TABLE ACCESS (FULL) PPC_SIM_CUST_HST ANALYZED 60 1
TABLE ACCESS (BY INDEX ROWID) INFO_CONTR_TEXT ANALYZED 2 200437
INDEX (UNIQUE SCAN) PKINFO_CONTR_TEXT (UNIQUE) ANALYZED 1 6
INDEX (RANGE SCAN) PPCTN_HIST_IMSI (NON-UNIQUE) ANALYZED 3 10
VIEW VW_NSO_1 40978 575464
SORT (GROUP BY) 40978 575464
TABLE ACCESS (FULL) PPCTN_HIST ANALYZED 36491 762371 |
Partager