1. 程式人生 > >oracle 11g新特性,UNPIVOT 效能測試

oracle 11g新特性,UNPIVOT 效能測試

根據業務需要,我們有900列轉為3列900行資料的需求。 親們,你們測試過piovt與 unpivot的效能嗎?確定沒有bug嗎? 等測試完後我再去Metalink尋找一下。

下面是我測試的效能。

--200 列 

SELECT  substr(dt.y,1,INSTR(dt.y,',')-1) x,substr(dt.y,INSTR(dt.y,',')+1) y,dt.z FROM (
SELECT * FROM (
                          SELECT /*+ parallel(8)   */ 
sum("13,47") "13,47",sum("13,49") "13,49",sum("13,52") "13,52",sum("13,54") "13,54",sum("13,56") "13,56",sum("13,58") "13,58",sum("13,61") "13,61",sum("13,63") "13,63",sum("0,1") "0,1",sum("0,10") "0,10",sum("0,20") "0,20",sum("0,29") "0,29",sum("0,38") "0,38",sum("0,48") "0,48",sum("0,57") "0,57",sum("1,2") "1,2",sum("1,11") "1,11",sum("1,21") "1,21",sum("1,30") "1,30",sum("1,39") "1,39",sum("1,49") "1,49",sum("2,2") "2,2",sum("2,23") "2,23",sum("2,43") "2,43",sum("3,2") "3,2",sum("3,23") "3,23",sum("3,43") "3,43",sum("4,0") "4,0",sum("4,21") "4,21",sum("4,43") "4,43",sum("5,0") "5,0",sum("5,21") "5,21",sum("5,41") "5,41",sum("6,0") "6,0",sum("6,21") "6,21",sum("6,41") "6,41",sum("6,62") "6,62",sum("7,21") "7,21",sum("7,41") "7,41",sum("7,62") "7,62",sum("8,21") "8,21",sum("8,42") "8,42",sum("8,62") "8,62",sum("9,21") "9,21",sum("9,42") "9,42",sum("9,62") "9,62",sum("10,21") "10,21",sum("10,34") "10,34",sum("10,44") "10,44",sum("10,54") "10,54",sum("10,63") "10,63",sum("11,9") "11,9",sum("11,18") "11,18",sum("11,28") "11,28",sum("11,38") "11,38",sum("11,47") "11,47",sum("11,57") "11,57",sum("12,3") "12,3",sum("12,12") "12,12",sum("12,29") "12,29",sum("12,49") "12,49",sum("13,6") "13,6",sum("13,26") "13,26",sum("13,46") "13,46",sum("1,56") "1,56",sum("2,15") "2,15",sum("2,40") "2,40",sum("3,1") "3,1",sum("3,24") "3,24",sum("3,49") "3,49",sum("4,8") "4,8",sum("4,33") "4,33",sum("4,56") "4,56",sum("5,17") "5,17",sum("0,0") "0,0",sum("0,2") "0,2",sum("0,3") "0,3",sum("0,4") "0,4",sum("0,5") "0,5",sum("0,6") "0,6",sum("0,7") "0,7",sum("0,8") "0,8",sum("0,9") "0,9",sum("0,11") "0,11",sum("0,12") "0,12",sum("0,13") "0,13",sum("0,14") "0,14",sum("0,15") "0,15",sum("0,16") "0,16",sum("0,17") "0,17",sum("0,18") "0,18",sum("0,19") "0,19",sum("0,21") "0,21",sum("0,22") "0,22",sum("0,23") "0,23",sum("0,24") "0,24",sum("0,25") "0,25",sum("0,26") "0,26",sum("0,27") "0,27",sum("0,28") "0,28",sum("0,30") "0,30",sum("0,31") "0,31",sum("0,32") "0,32",sum("0,33") "0,33",sum("0,34") "0,34",sum("0,35") "0,35",sum("0,36") "0,36",sum("0,37") "0,37",sum("0,39") "0,39",sum("0,40") "0,40",sum("0,41") "0,41",sum("0,42") "0,42",sum("0,43") "0,43",sum("0,44") "0,44",sum("0,45") "0,45",sum("0,46") "0,46",sum("0,47") "0,47",sum("0,49") "0,49",sum("0,50") "0,50",sum("0,51") "0,51",sum("0,52") "0,52",sum("0,53") "0,53",sum("0,54") "0,54",sum("0,55") "0,55",sum("0,56") "0,56",sum("0,58") "0,58",sum("0,59") "0,59",sum("0,60") "0,60",sum("0,61") "0,61",sum("0,62") "0,62",sum("0,63") "0,63",sum("1,0") "1,0",sum("1,1") "1,1",sum("1,3") "1,3",sum("1,4") "1,4",sum("1,5") "1,5",sum("1,6") "1,6",sum("1,7") "1,7",sum("1,8") "1,8",sum("1,9") "1,9",sum("1,10") "1,10",sum("1,12") "1,12",sum("1,13") "1,13",sum("1,14") "1,14",sum("1,15") "1,15",sum("1,16") "1,16",sum("1,17") "1,17",sum("1,18") "1,18",sum("1,19") "1,19",sum("1,20") "1,20",sum("1,22") "1,22",sum("1,23") "1,23",sum("1,24") "1,24",sum("1,25") "1,25",sum("1,26") "1,26",sum("1,27") "1,27",sum("1,28") "1,28",sum("1,29") "1,29",sum("1,31") "1,31",sum("1,32") "1,32",sum("1,33") "1,33",sum("1,34") "1,34",sum("1,35") "1,35",sum("1,36") "1,36",sum("1,37") "1,37",sum("1,38") "1,38",sum("1,40") "1,40",sum("1,41") "1,41",sum("1,42") "1,42",sum("1,43") "1,43",sum("1,44") "1,44",sum("1,45") "1,45",sum("1,46") "1,46",sum("1,47") "1,47",sum("1,48") "1,48",sum("1,50") "1,50",sum("1,51") "1,51",sum("1,52") "1,52",sum("1,54") "1,54",sum("1,57") "1,57",sum("1,59") "1,59",sum("1,61") "1,61",sum("1,63") "1,63",sum("2,4") "2,4",sum("2,7") "2,7",sum("2,9") "2,9",sum("2,11") "2,11",sum("2,14") "2,14",sum("2,16") "2,16",sum("2,18") "2,18",sum("2,20") "2,20",sum("2,25") "2,25",sum("2,27") "2,27",sum("2,30") "2,30",sum("2,32") "2,32",sum("2,34") "2,34",sum("2,36") "2,36",sum("2,39") "2,39",sum("2,41") "2,41"
 FROM (
      SELECT /*+ parallel(8) dynamic_sampling(dt 0) */dt.cgi,
      sum(TA12UPPERRXLEV47COUNT) "13,47",sum(TA12UPPERRXLEV49COUNT) "13,49",sum(TA12UPPERRXLEV52COUNT) "13,52",sum(TA12UPPERRXLEV54COUNT) "13,54",sum(TA12UPPERRXLEV56COUNT) "13,56",sum(TA12UPPERRXLEV58COUNT) "13,58",sum(TA12UPPERRXLEV61COUNT) "13,61",sum(TA12UPPERRXLEV63COUNT) "13,63",sum(TA0RXLEV1COUNT) "0,1",sum(TA0RXLEV10COUNT) "0,10",sum(TA0RXLEV20COUNT) "0,20",sum(TA0RXLEV29COUNT) "0,29",sum(TA0RXLEV38COUNT) "0,38",sum(TA0RXLEV48COUNT) "0,48",sum(TA0RXLEV57COUNT) "0,57",sum(TA1RXLEV2COUNT) "1,2",sum(TA1RXLEV11COUNT) "1,11",sum(TA1RXLEV21COUNT) "1,21",sum(TA1RXLEV30COUNT) "1,30",sum(TA1RXLEV39COUNT) "1,39",sum(TA1RXLEV49COUNT) "1,49",sum(TA2RXLEV2COUNT) "2,2",sum(TA2RXLEV23COUNT) "2,23",sum(TA2RXLEV43COUNT) "2,43",sum(TA3RXLEV2COUNT) "3,2",sum(TA3RXLEV23COUNT) "3,23",sum(TA3RXLEV43COUNT) "3,43",sum(TA4RXLEV0COUNT) "4,0",sum(TA4RXLEV21COUNT) "4,21",sum(TA4RXLEV43COUNT) "4,43",sum(TA5RXLEV0COUNT) "5,0",sum(TA5RXLEV21COUNT) "5,21",sum(TA5RXLEV41COUNT) "5,41",sum(TA6RXLEV0COUNT) "6,0",sum(TA6RXLEV21COUNT) "6,21",sum(TA6RXLEV41COUNT) "6,41",sum(TA6RXLEV62COUNT) "6,62",sum(TA7RXLEV21COUNT) "7,21",sum(TA7RXLEV41COUNT) "7,41",sum(TA7RXLEV62COUNT) "7,62",sum(TA8RXLEV21COUNT) "8,21",sum(TA8RXLEV42COUNT) "8,42",sum(TA8RXLEV62COUNT) "8,62",sum(TA9RXLEV21COUNT) "9,21",sum(TA9RXLEV42COUNT) "9,42",sum(TA9RXLEV62COUNT) "9,62",sum(TA10RXLEV21COUNT) "10,21",sum(TA10RXLEV34COUNT) "10,34",sum(TA10RXLEV44COUNT) "10,44",sum(TA10RXLEV54COUNT) "10,54",sum(TA10RXLEV63COUNT) "10,63",sum(TA11RXLEV9COUNT) "11,9",sum(TA11RXLEV18COUNT) "11,18",sum(TA11RXLEV28COUNT) "11,28",sum(TA11RXLEV38COUNT) "11,38",sum(TA11RXLEV47COUNT) "11,47",sum(TA11RXLEV57COUNT) "11,57",sum(TA12RXLEV3COUNT) "12,3",sum(TA12RXLEV12COUNT) "12,12",sum(TA12RXLEV29COUNT) "12,29",sum(TA12RXLEV49COUNT) "12,49",sum(TA12UPPERRXLEV6COUNT) "13,6",sum(TA12UPPERRXLEV26COUNT) "13,26",sum(TA12UPPERRXLEV46COUNT) "13,46",sum(TA1RXLEV56COUNT) "1,56",sum(TA2RXLEV15COUNT) "2,15",sum(TA2RXLEV40COUNT) "2,40",sum(TA3RXLEV1COUNT) "3,1",sum(TA3RXLEV24COUNT) "3,24",sum(TA3RXLEV49COUNT) "3,49",sum(TA4RXLEV8COUNT) "4,8",sum(TA4RXLEV33COUNT) "4,33",sum(TA4RXLEV56COUNT) "4,56",sum(TA5RXLEV17COUNT) "5,17",sum(TA0RXLEV0COUNT      ) "0,0",sum(TA0RXLEV2COUNT) "0,2",sum(TA0RXLEV3COUNT) "0,3",sum(TA0RXLEV4COUNT) "0,4",sum(TA0RXLEV5COUNT) "0,5",sum(TA0RXLEV6COUNT) "0,6",sum(TA0RXLEV7COUNT) "0,7",sum(TA0RXLEV8COUNT) "0,8",sum(TA0RXLEV9COUNT) "0,9",sum(TA0RXLEV11COUNT) "0,11",sum(TA0RXLEV12COUNT) "0,12",sum(TA0RXLEV13COUNT) "0,13",sum(TA0RXLEV14COUNT) "0,14",sum(TA0RXLEV15COUNT) "0,15",sum(TA0RXLEV16COUNT) "0,16",sum(TA0RXLEV17COUNT) "0,17",sum(TA0RXLEV18COUNT) "0,18",sum(TA0RXLEV19COUNT) "0,19",sum(TA0RXLEV21COUNT) "0,21",sum(TA0RXLEV22COUNT) "0,22",sum(TA0RXLEV23COUNT) "0,23",sum(TA0RXLEV24COUNT) "0,24",sum(TA0RXLEV25COUNT) "0,25",sum(TA0RXLEV26COUNT) "0,26",sum(TA0RXLEV27COUNT) "0,27",sum(TA0RXLEV28COUNT) "0,28",sum(TA0RXLEV30COUNT) "0,30",sum(TA0RXLEV31COUNT) "0,31",sum(TA0RXLEV32COUNT) "0,32",sum(TA0RXLEV33COUNT) "0,33",sum(TA0RXLEV34COUNT) "0,34",sum(TA0RXLEV35COUNT) "0,35",sum(TA0RXLEV36COUNT) "0,36",sum(TA0RXLEV37COUNT) "0,37",sum(TA0RXLEV39COUNT) "0,39",sum(TA0RXLEV40COUNT) "0,40",sum(TA0RXLEV41COUNT) "0,41",sum(TA0RXLEV42COUNT) "0,42",sum(TA0RXLEV43COUNT) "0,43",sum(TA0RXLEV44COUNT) "0,44",sum(TA0RXLEV45COUNT) "0,45",sum(TA0RXLEV46COUNT) "0,46",sum(TA0RXLEV47COUNT) "0,47",sum(TA0RXLEV49COUNT) "0,49",sum(TA0RXLEV50COUNT) "0,50",sum(TA0RXLEV51COUNT) "0,51",sum(TA0RXLEV52COUNT) "0,52",sum(TA0RXLEV53COUNT) "0,53",sum(TA0RXLEV54COUNT) "0,54",sum(TA0RXLEV55COUNT) "0,55",sum(TA0RXLEV56COUNT) "0,56",sum(TA0RXLEV58COUNT) "0,58",sum(TA0RXLEV59COUNT) "0,59",sum(TA0RXLEV60COUNT) "0,60",sum(TA0RXLEV61COUNT) "0,61",sum(TA0RXLEV62COUNT) "0,62",sum(TA0RXLEV63COUNT) "0,63",sum(TA1RXLEV0COUNT) "1,0",sum(TA1RXLEV1COUNT) "1,1",sum(TA1RXLEV3COUNT) "1,3",sum(TA1RXLEV4COUNT) "1,4",sum(TA1RXLEV5COUNT) "1,5",sum(TA1RXLEV6COUNT) "1,6",sum(TA1RXLEV7COUNT) "1,7",sum(TA1RXLEV8COUNT) "1,8",sum(TA1RXLEV9COUNT) "1,9",sum(TA1RXLEV10COUNT) "1,10",sum(TA1RXLEV12COUNT) "1,12",sum(TA1RXLEV13COUNT) "1,13",sum(TA1RXLEV14COUNT) "1,14",sum(TA1RXLEV15COUNT) "1,15",sum(TA1RXLEV16COUNT) "1,16",sum(TA1RXLEV17COUNT) "1,17",sum(TA1RXLEV18COUNT) "1,18",sum(TA1RXLEV19COUNT) "1,19",sum(TA1RXLEV20COUNT) "1,20",sum(TA1RXLEV22COUNT) "1,22",sum(TA1RXLEV23COUNT) "1,23",sum(TA1RXLEV24COUNT) "1,24",sum(TA1RXLEV25COUNT) "1,25",sum(TA1RXLEV26COUNT) "1,26",sum(TA1RXLEV27COUNT) "1,27",sum(TA1RXLEV28COUNT) "1,28",sum(TA1RXLEV29COUNT) "1,29",sum(TA1RXLEV31COUNT) "1,31",sum(TA1RXLEV32COUNT) "1,32",sum(TA1RXLEV33COUNT) "1,33",sum(TA1RXLEV34COUNT) "1,34",sum(TA1RXLEV35COUNT) "1,35",sum(TA1RXLEV36COUNT) "1,36",sum(TA1RXLEV37COUNT) "1,37",sum(TA1RXLEV38COUNT) "1,38",sum(TA1RXLEV40COUNT) "1,40",sum(TA1RXLEV41COUNT) "1,41",sum(TA1RXLEV42COUNT) "1,42",sum(TA1RXLEV43COUNT) "1,43",sum(TA1RXLEV44COUNT) "1,44",sum(TA1RXLEV45COUNT) "1,45",sum(TA1RXLEV46COUNT) "1,46",sum(TA1RXLEV47COUNT) "1,47",sum(TA1RXLEV48COUNT) "1,48",sum(TA1RXLEV50COUNT) "1,50",sum(TA1RXLEV51COUNT) "1,51",sum(TA1RXLEV52COUNT) "1,52",sum(TA1RXLEV54COUNT) "1,54",sum(TA1RXLEV57COUNT) "1,57",sum(TA1RXLEV59COUNT) "1,59",sum(TA1RXLEV61COUNT) "1,61",sum(TA1RXLEV63COUNT) "1,63",sum(TA2RXLEV4COUNT) "2,4",sum(TA2RXLEV7COUNT) "2,7",sum(TA2RXLEV9COUNT) "2,9",sum(TA2RXLEV11COUNT) "2,11",sum(TA2RXLEV14COUNT) "2,14",sum(TA2RXLEV16COUNT) "2,16",sum(TA2RXLEV18COUNT) "2,18",sum(TA2RXLEV20COUNT) "2,20",sum(TA2RXLEV25COUNT) "2,25",sum(TA2RXLEV27COUNT) "2,27",sum(TA2RXLEV30COUNT) "2,30",sum(TA2RXLEV32COUNT) "2,32",sum(TA2RXLEV34COUNT) "2,34",sum(TA2RXLEV36COUNT) "2,36",sum(TA2RXLEV39COUNT) "2,39",sum(TA2RXLEV41COUNT) "2,41"
       FROM Radio_TARxLev dt
      WHERE dt.TIMEMARK >= SYSDATE and dt.TIMEMARK< sysdate
       and entrytype = 0
      GROUP BY dt.cgi
) dt,v_bsccell v_bsccell_cgi
WHERE dt.cgi=v_bsccell_cgi.cgi(+)
) 
UNPIVOT ( z FOR y IN ( "13,47", "13,49", "13,52", "13,54", "13,56", "13,58", "13,61", "13,63", "0,1", "0,10", "0,20", "0,29", "0,38", "0,48", "0,57", "1,2", "1,11", "1,21", "1,30", "1,39", "1,49", "2,2", "2,23", "2,43", "3,2", "3,23", "3,43", "4,0", "4,21", "4,43", "5,0", "5,21", "5,41", "6,0", "6,21", "6,41", "6,62", "7,21", "7,41", "7,62", "8,21", "8,42", "8,62", "9,21", "9,42", "9,62", "10,21", "10,34", "10,44", "10,54", "10,63", "11,9", "11,18", "11,28", "11,38", "11,47", "11,57", "12,3", "12,12", "12,29", "12,49", "13,6", "13,26", "13,46", "1,56", "2,15", "2,40", "3,1", "3,24", "3,49", "4,8", "4,33", "4,56", "5,17", "0,0", "0,2", "0,3", "0,4", "0,5", "0,6", "0,7", "0,8", "0,9", "0,11", "0,12", "0,13", "0,14", "0,15", "0,16", "0,17", "0,18", "0,19", "0,21", "0,22", "0,23", "0,24", "0,25", "0,26", "0,27", "0,28", "0,30", "0,31", "0,32", "0,33", "0,34", "0,35", "0,36", "0,37", "0,39", "0,40", "0,41", "0,42", "0,43", "0,44", "0,45", "0,46", "0,47", "0,49", "0,50", "0,51", "0,52", "0,53", "0,54", "0,55", "0,56", "0,58", "0,59", "0,60", "0,61", "0,62", "0,63", "1,0", "1,1", "1,3", "1,4", "1,5", "1,6", "1,7", "1,8", "1,9", "1,10", "1,12", "1,13", "1,14", "1,15", "1,16", "1,17", "1,18", "1,19", "1,20", "1,22", "1,23", "1,24", "1,25", "1,26", "1,27", "1,28", "1,29", "1,31", "1,32", "1,33", "1,34", "1,35", "1,36", "1,37", "1,38", "1,40", "1,41", "1,42", "1,43", "1,44", "1,45", "1,46", "1,47", "1,48", "1,50", "1,51", "1,52", "1,54", "1,57", "1,59", "1,61", "1,63", "2,4", "2,7", "2,9", "2,11", "2,14", "2,16", "2,18", "2,20", "2,25", "2,27", "2,30", "2,32", "2,34", "2,36", "2,39", "2,41")  ) 


)dt 
 ;


以上是200列跑不出資料,我懷疑是執行計劃被改變,看有沒有hint改變它的執行計劃,或者用with as 來解決。              

  --20列               
EXPLAIN PLAN FOR SELECT  substr(dt.y,1,INSTR(dt.y,',')-1) x,substr(dt.y,INSTR(dt.y,',')+1) y,dt.z FROM (
  SELECT * FROM (
          SELECT /*+ parallel(8)   */ 
        sum("13,47") "13,47",sum("13,49") "13,49",sum("13,52") "13,52",sum("13,54") "13,54",sum("13,56") "13,56",sum("13,58") "13,58",sum("13,61") "13,61",sum("13,63") "13,63",sum("0,1") "0,1",sum("0,10") "0,10",sum("0,20") "0,20",sum("0,29") "0,29",sum("0,38") "0,38",sum("0,48") "0,48",sum("0,57") "0,57",sum("1,2") "1,2",sum("1,11") "1,11",sum("1,21") "1,21",sum("1,30") "1,30"
         FROM (
        SELECT /*+ parallel(8)  dynamic_sampling(dt 0) */dt.cgi,
        sum(TA12UPPERRXLEV47COUNT) "13,47",sum(TA12UPPERRXLEV49COUNT) "13,49",sum(TA12UPPERRXLEV52COUNT) "13,52",sum(TA12UPPERRXLEV54COUNT) "13,54",sum(TA12UPPERRXLEV56COUNT) "13,56",sum(TA12UPPERRXLEV58COUNT) "13,58",sum(TA12UPPERRXLEV61COUNT) "13,61",sum(TA12UPPERRXLEV63COUNT) "13,63",sum(TA0RXLEV1COUNT) "0,1",sum(TA0RXLEV10COUNT) "0,10",sum(TA0RXLEV20COUNT) "0,20",sum(TA0RXLEV29COUNT) "0,29",sum(TA0RXLEV38COUNT) "0,38",sum(TA0RXLEV48COUNT) "0,48",sum(TA0RXLEV57COUNT) "0,57",sum(TA1RXLEV2COUNT) "1,2",sum(TA1RXLEV11COUNT) "1,11",sum(TA1RXLEV21COUNT) "1,21",sum(TA1RXLEV30COUNT) "1,30"
         FROM Radio_TARxLev dt
        WHERE dt.TIMEMARK >= sysdate-200 and dt.TIMEMARK< sysdate
         and entrytype = 0
        GROUP BY dt.cgi
        ) dt,v_bsccell v_bsccell_cgi
        WHERE dt.cgi=v_bsccell_cgi.cgi(+)
) 
 UNPIVOT ( z FOR y IN ( "13,47", "13,49", "13,52", "13,54", "13,56", "13,58", "13,61", "13,63", "0,1", "0,10", "0,20", "0,29", "0,38", "0,48", "0,57", "1,2", "1,11", "1,21", "1,30")  )
  )dt 
;
      
1秒內,能出資料。 執行計劃,我明天貼出來。

 以下是引數調整後
SQL> set pages 200
SQL> select component,current_size/1024/1024 current_size_mb,min_size/1024/1024 min_size_mb,max_size/1024/1024 max_size_mb,
  2  user_specified_size/1024/1024 user_specified_size_mb,oper_count,last_oper_type,last_oper_mode,last_oper_time,granule_size
from V$SGA_DYNAMIC_COMPONENTS;
  3  
COMPONENT							 CURRENT_SIZE_MB MIN_SIZE_MB MAX_SIZE_MB USER_SPECIFIED_SIZE_MB OPER_COUNT LAST_OPER_TYP LAST_OPER LAST_OPER_TI GRANULE_SIZE
---------------------------------------------------------------- --------------- ----------- ----------- ---------------------- ---------- ------------- --------- ------------ ------------
shared pool								    2048	2048	    2048		   2048 	 0 STATIC				    67108864
large pool								      64	  64	      64		      0 	 0 STATIC				    67108864
java pool								      64	  64	      64		      0 	 0 STATIC				    67108864
streams pool								     128	 128	     128		      0 	 0 STATIC				    67108864
DEFAULT buffer cache							    4992	4992	    4992		      0 	 0 INITIALIZING 			    67108864
KEEP buffer cache							       0	   0	       0		      0 	 0 STATIC				    67108864
RECYCLE buffer cache							       0	   0	       0		      0 	 0 STATIC				    67108864
DEFAULT 2K buffer cache 						       0	   0	       0		      0 	 0 STATIC				    67108864
DEFAULT 4K buffer cache 						       0	   0	       0		      0 	 0 STATIC				    67108864
DEFAULT 8K buffer cache 						       0	   0	       0		      0 	 0 STATIC				    67108864
DEFAULT 16K buffer cache						       0	   0	       0		      0 	 0 STATIC				    67108864
DEFAULT 32K buffer cache						       0	   0	       0		      0 	 0 STATIC				    67108864
Shared IO Pool								       0	   0	       0		      0 	 0 STATIC				    67108864
ASM Buffer Cache							       0	   0	       0		      0 	 0 STATIC				    67108864


14 rows selected.   
                
 


先看看執行200的10046吧,硬 parse太多,執行sql只需要1秒

TKPROF: Release 11.2.0.1.0 - Development on Fri Aug 31 13:42:52 2012

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Trace file: orcl_ora_18566.trc
Sort options: default

********************************************************************************
count    = number of times OCI procedure was executed
cpu      = cpu time in seconds executing 
elapsed  = elapsed time in seconds executing
disk     = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows     = number of rows processed by the fetch or execute call
********************************************************************************

SELECT SUBSTR(DT.Y, 1, INSTR(DT.Y, ',') - 1) X,
       SUBSTR(DT.Y, INSTR(DT.Y, ',') + 1) Y,
       DT.Z
  FROM (SELECT *
          FROM (SELECT /*+ parallel(8) use_hash(v_bsccell_cgi) swap_join_inputs(v_bsccell_cgi)  */
                 SUM("13,47") "13,47",
                 SUM("13,49") "13,49",
                 SUM("13,52") "13,52",
                 SUM("13,54") "13,54",
                 SUM("13,56") "13,56",
                 SUM("13,58") "13,58",
                 SUM("13,61") "13,61",
                 SUM("13,63") "13,63",
                 SUM("0,1") "0,1",
                 SUM("0,10") "0,10",
                 SUM("0,20") "0,20",
                 SUM("0,29") "0,29",
                 SUM("0,38") "0,38",
                 SUM("0,48") "0,48",
                 SUM("0,57") "0,57",
                 SUM("1,2") "1,2",
                 SUM("1,11") "1,11",
                 SUM("1,21") "1,21",
                 SUM("1,30") "1,30",
                 SUM("1,39") "1,39",
                 SUM("1,49") "1,49",
                 SUM("2,2") "2,2",
                 SUM("2,23") "2,23",
                 SUM("2,43") "2,43",
                 SUM("3,2") "3,2",
                 SUM("3,23") "3,23",
                 SUM("3,43") "3,43",
                 SUM("4,0") "4,0",
                 SUM("4,21") "4,21",
                 SUM("4,43") "4,43",
                 SUM("5,0") "5,0",
                 SUM("5,21") "5,21",
                 SUM("5,41") "5,41",
                 SUM("6,0") "6,0",
                 SUM("6,21") "6,21",
                 SUM("6,41") "6,41",
                 SUM("6,62") "6,62",
                 SUM("7,21") "7,21",
                 SUM("7,41") "7,41",
                 SUM("7,62") "7,62",
                 SUM("8,21") "8,21",
                 SUM("8,42") "8,42",
                 SUM("8,62") "8,62",
                 SUM("9,21") "9,21",
                 SUM("9,42") "9,42",
                 SUM("9,62") "9,62",
                 SUM("10,21") "10,21",
                 SUM("10,34") "10,34",
                 SUM("10,44") "10,44",
                 SUM("10,54") "10,54",
                 SUM("10,63") "10,63",
                 SUM("11,9") "11,9",
                 SUM("11,18") "11,18",
                 SUM("11,28") "11,28",
                 SUM("11,38") "11,38",
                 SUM("11,47") "11,47",
                 SUM("11,57") "11,57",
                 SUM("12,3") "12,3",
                 SUM("12,12") "12,12",
                 SUM("12,29") "12,29",
                 SUM("12,49") "12,49",
                 SUM("13,6") "13,6",
                 SUM("13,26") "13,26",
                 SUM("13,46") "13,46",
                 SUM("1,56") "1,56",
                 SUM("2,15") "2,15",
                 SUM("2,40") "2,40",
                 SUM("3,1") "3,1",
                 SUM("3,24") "3,24",
                 SUM("3,49") "3,49",
                 SUM("4,8") "4,8",
                 SUM("4,33") "4,33",
                 SUM("4,56") "4,56",
                 SUM("5,17") "5,17",
                 SUM("0,0") "0,0",
                 SUM("0,2") "0,2",
                 SUM("0,3") "0,3",
                 SUM("0,4") "0,4",
                 SUM("0,5") "0,5",
                 SUM("0,6") "0,6",
                 SUM("0,7") "0,7",
                 SUM("0,8") "0,8",
                 SUM("0,9") "0,9",
                 SUM("0,11") "0,11",
                 SUM("0,12") "0,12",
                 SUM("0,13") "0,13",
                 SUM("0,14") "0,14",
                 SUM("0,15") "0,15",
                 SUM("0,16") "0,16",
                 SUM("0,17") "0,17",
                 SUM("0,18") "0,18",
                 SUM("0,19") "0,19",
                 SUM("0,21") "0,21",
                 SUM("0,22") "0,22",
                 SUM("0,23") "0,23",
                 SUM("0,24") "0,24",
                 SUM("0,25") "0,25",
                 SUM("0,26") "0,26",
                 SUM("0,27") "0,27",
                 SUM("0,28") "0,28",
                 SUM("0,30") "0,30",
                 SUM("0,31") "0,31",
                 SUM("0,32") "0,32",
                 SUM("0,33") "0,33",
                 SUM("0,34") "0,34",
                 SUM("0,35") "0,35",
                 SUM("0,36") "0,36",
                 SUM("0,37") "0,37",
                 SUM("0,39") "0,39",
                 SUM("0,40") "0,40",
                 SUM("0,41") "0,41",
                 SUM("0,42") "0,42",
                 SUM("0,43") "0,43",
                 SUM("0,44") "0,44",
                 SUM("0,45") "0,45",
                 SUM("0,46") "0,46",
                 SUM("0,47") "0,47",
                 SUM("0,49") "0,49",
                 SUM("0,50") "0,50",
                 SUM("0,51") "0,51",
                 SUM("0,52") "0,52",
                 SUM("0,53") "0,53",
                 SUM("0,54") "0,54",
                 SUM("0,55") "0,55",
                 SUM("0,56") "0,56",
                 SUM("0,58") "0,58",
                 SUM("0,59") "0,59",
                 SUM("0,60") "0,60",
                 SUM("0,61") "0,61",
                 SUM("0,62") "0,62",
                 SUM("0,63") "0,63",
                 SUM("1,0") "1,0",
                 SUM("1,1") "1,1",
                 SUM("1,3") "1,3",
                 SUM("1,4") "1,4",
                 SUM("1,5") "1,5",
                 SUM("1,6") "1,6",
                 SUM("1,7") "1,7",
                 SUM("1,8") "1,8",
                 SUM("1,9") "1,9",
                 SUM("1,10") "1,10",
                 SUM("1,12") "1,12",
                 SUM("1,13") "1,13",
                 SUM("1,14") "1,14",
                 SUM("1,15") "1,15",
                 SUM("1,16") "1,16",
                 SUM("1,17") "1,17",
                 SUM("1,18") "1,18",
                 SUM("1,19") "1,19",
                 SUM("1,20") "1,20",
                 SUM("1,22") "1,22",
                 SUM("1,23") "1,23",
                 SUM("1,24") "1,24",
                 SUM("1,25") "1,25",
                 SUM("1,26") "1,26",
                 SUM("1,27") "1,27",
                 SUM("1,28") "1,28",
                 SUM("1,29") "1,29",
                 SUM("1,31") "1,31",
                 SUM("1,32") "1,32",
                 SUM("1,33") "1,33",
                 SUM("1,34") "1,34",
                 SUM("1,35") "1,35",
                 SUM("1,36") "1,36",
                 SUM("1,37") "1,37",
                 SUM("1,38") "1,38",
                 SUM("1,40") "1,40",
                 SUM("1,41") "1,41",
                 SUM("1,42") "1,42",
                 SUM("1,43") "1,43",
                 SUM("1,44") "1,44",
                 SUM("1,45") "1,45",
                 SUM("1,46") "1,46",
                 SUM("1,47") "1,47",
                 SUM("1,48") "1,48",
                 SUM("1,50") "1,50",
                 SUM("1,51") "1,51",
                 SUM("1,52") "1,52",
                 SUM("1,54") "1,54",
                 SUM("1,57") "1,57",
                 SUM("1,59") "1,59",
                 SUM("1,61") "1,61",
                 SUM("1,63") "1,63",
                 SUM("2,4") "2,4",
                 SUM("2,7") "2,7",
                 SUM("2,9") "2,9",
                 SUM("2,11") "2,11",
                 SUM("2,14") "2,14",
                 SUM("2,16") "2,16",
                 SUM("2,18") "2,18",
                 SUM("2,20") "2,20",
                 SUM("2,25") "2,25",
                 SUM("2,27") "2,27",
                 SUM("2,30") "2,30",
                 SUM("2,32") "2,32",
                 SUM("2,34") "2,34",
                 SUM("2,36") "2,36",
                 SUM("2,39") "2,39",
                 SUM("2,41") "2,41"
                  FROM (SELECT /*+ parallel(8) dynamic_sampling(dt 0) */
                         DT.CGI,
                         SUM(TA12UPPERRXLEV47COUNT) "13,47",
                         SUM(TA12UPPERRXLEV49COUNT) "13,49",
                         SUM(TA12UPPERRXLEV52COUNT) "13,52",
                         SUM(TA12UPPERRXLEV54COUNT) "13,54",
                         SUM(TA12UPPERRXLEV56COUNT) "13,56",
                         SUM(TA12UPPERRXLEV58COUNT) "13,58",
                         SUM(TA12UPPERRXLEV61COUNT) "13,61",
                         SUM(TA12UPPERRXLEV63COUNT) "13,63",
                         SUM(TA0RXLEV1COUNT) "0,1",
                         SUM(TA0RXLEV10COUNT) "0,10",
                         SUM(TA0RXLEV20COUNT) "0,20",
                         SUM(TA0RXLEV29COUNT) "0,29",
                         SUM(TA0RXLEV38COUNT) "0,38",
                         SUM(TA0RXLEV48COUNT) "0,48",
                         SUM(TA0RXLEV57COUNT) "0,57",
                         SUM(TA1RXLEV2COUNT) "1,2",
                         SUM(TA1RXLEV11COUNT) "1,11",
                         SUM(TA1RXLEV21COUNT) "1,21",
                         SUM(TA1RXLEV30COUNT) "1,30",
                         SUM(TA1RXLEV39COUNT) "1,39",
                         SUM(TA1RXLEV49COUNT) "1,49",
                         SUM(TA2RXLEV2COUNT) "2,2",
                         SUM(TA2RXLEV23COUNT) "2,23",
                         SUM(TA2RXLEV43COUNT) "2,43",
                         SUM(TA3RXLEV2COUNT) "3,2",
                         SUM(TA3RXLEV23COUNT) "3,23",
                         SUM(TA3RXLEV43COUNT) "3,43",
                         SUM(TA4RXLEV0COUNT) "4,0",
                         SUM(TA4RXLEV21COUNT) "4,21",
                         SUM(TA4RXLEV43COUNT) "4,43",
                         SUM(TA5RXLEV0COUNT) "5,0",
                         SUM(TA5RXLEV21COUNT) "5,21",
                         SUM(TA5RXLEV41COUNT) "5,41",
                         SUM(TA6RXLEV0COUNT) "6,0",
                         SUM(TA6RXLEV21COUNT) "6,21",
                         SUM(TA6RXLEV41COUNT) "6,41",
                         SUM(TA6RXLEV62COUNT) "6,62",
                         SUM(TA7RXLEV21COUNT) "7,21",
                         SUM(TA7RXLEV41COUNT) "7,41",
                         SUM(TA7RXLEV62COUNT) "7,62",
                         SUM(TA8RXLEV21COUNT) "8,21",
                         SUM(TA8RXLEV42COUNT) "8,42",
                         SUM(TA8RXLEV62COUNT) "8,62",
                         SUM(TA9RXLEV21COUNT) "9,21",
                         SUM(TA9RXLEV42COUNT) "9,42",
                         SUM(TA9RXLEV62COUNT) "9,62",
                         SUM(TA10RXLEV21COUNT) "10,21",
                         SUM(TA10RXLEV34COUNT) "10,34",
                         SUM(TA10RXLEV44COUNT) "10,44",
                         SUM(TA10RXLEV54COUNT) "10,54",
                         SUM(TA10RXLEV63COUNT) "10,63",
                         SUM(TA11RXLEV9COUNT) "11,9",
                         SUM(TA11RXLEV18COUNT) "11,18",
                         SUM(TA11RXLEV28COUNT) "11,28",
                         SUM(TA11RXLEV38COUNT) "11,38",
                         SUM(TA11RXLEV47COUNT) "11,47",
                         SUM(TA11RXLEV57COUNT) "11,57",
                         SUM(TA12RXLEV3COUNT) "12,3",
                         SUM(TA12RXLEV12COUNT) "12,12",
                         SUM(TA12RXLEV29COUNT) "12,29",
                         SUM(TA12RXLEV49COUNT) "12,49",
                         SUM(TA12UPPERRXLEV6COUNT) "13,6",
                         SUM(TA12UPPERRXLEV26COUNT) "13,26",
                         SUM(TA12UPPERRXLEV46COUNT) "13,46",
                         SUM(TA1RXLEV56COUNT) "1,56",
                         SUM(TA2RXLEV15COUNT) "2,15",
                         SUM(TA2RXLEV40COUNT) "2,40",
                         SUM(TA3RXLEV1COUNT) "3,1",
                         SUM(TA3RXLEV24COUNT) "3,24",
                         SUM(TA3RXLEV49COUNT) "3,49",
                         SUM(TA4RXLEV8COUNT) "4,8",
                         SUM(TA4RXLEV33COUNT) "4,33",
                         SUM(TA4RXLEV56COUNT) "4,56",
                         SUM(TA5RXLEV17COUNT) "5,17",
                         SUM(TA0RXLEV0COUNT) "0,0",
                         SUM(TA0RXLEV2COUNT) "0,2",
                         SUM(TA0RXLEV3COUNT) "0,3",
                         SUM(TA0RXLEV4COUNT) "0,4",
                         SUM(TA0RXLEV5COUNT) "0,5",
                         SUM(TA0RXLEV6COUNT) "0,6",
                         SUM(TA0RXLEV7COUNT) "0,7",
                         SUM(TA0RXLEV8COUNT) "0,8",
                         SUM(TA0RXLEV9COUNT) "0,9",
                         SUM(TA0RXLEV11COUNT) "0,11",
                         SUM(TA0RXLEV12COUNT) "0,12",
                         SUM(TA0RXLEV13COUNT) "0,13",
                         SUM(TA0RXLEV14COUNT) "0,14",
                         SUM(TA0RXLEV15COUNT) "0,15",
                         SUM(TA0RXLEV16COUNT) "0,16",
                         SUM(TA0RXLEV17COUNT) "0,17",
                         SUM(TA0RXLEV18COUNT) "0,18",
                         SUM(TA0RXLEV19COUNT) "0,19",
                         SUM(TA0RXLEV21COUNT) "0,21",
                         SUM(TA0RXLEV22COUNT) "0,22",
                         SUM(TA0RXLEV23COUNT) "0,23",
                         SUM(TA0RXLEV24COUNT) "0,24",
                         SUM(TA0RXLEV25COUNT) "0,25",
                         SUM(TA0RXLEV26COUNT) "0,26",
                         SUM(TA0RXLEV27COUNT) "0,27",
                         SUM(TA0RXLEV28COUNT) "0,28",
                         SUM(TA0RXLEV30COUNT) "0,30",
                         SUM(TA0RXLEV31COUNT) "0,31",
                         SUM(TA0RXLEV32COUNT) "0,32",
                         SUM(TA0RXLEV33COUNT) "0,33",
                         SUM(TA0RXLEV34COUNT) "0,34",
                         SUM(TA0RXLEV35COUNT) "0,35",
                         SUM(TA0RXLEV36COUNT) "0,36",
                         SUM(TA0RXLEV37COUNT) "0,37",
                         SUM(TA0RXLEV39COUNT) "0,39",
                         SUM(TA0RXLEV40COUNT) "0,40",
                         SUM(TA0RXLEV41COUNT) "0,41",
                         SUM(TA0RXLEV42COUNT) "0,42",
                         SUM(TA0RXLEV43COUNT) "0,43",
                         SUM(TA0RXLEV44COUNT) "0,44",
                         SUM(TA0RXLEV45COUNT) "0,45",
                         SUM(TA0RXLEV46COUNT) "0,46",
                         SUM(TA0RXLEV47COUNT) "0,47",
                         SUM(TA0RXLEV49COUNT) "0,49",
                         SUM(TA0RXLEV50COUNT) "0,50",
                         SUM(TA0RXLEV51COUNT) "0,51",
                         SUM(TA0RXLEV52COUNT) "0,52",
                         SUM(TA0RXLEV53COUNT) "0,53",
                         SUM(TA0RXLEV54COUNT) "0,54",
                         SUM(TA0RXLEV55COUNT) "0,55",
                         SUM(TA0RXLEV56COUNT) "0,56",
                         SUM(TA0RXLEV58COUNT) "0,58",
                         SUM(TA0RXLEV59COUNT) "0,59",
                         SUM(TA0RXLEV60COUNT) "0,60",
                         SUM(TA0RXLEV61COUNT) "0,61",
                         SUM(TA0RXLEV62COUNT) "0,62",
                         SUM(TA0RXLEV63COUNT) "0,63",
                         SUM(TA1RXLEV0COUNT) "1,0",
                         SUM(TA1RXLEV1COUNT) "1,1",
                         SUM(TA1RXLEV3COUNT) "1,3",
                         SUM(TA1RXLEV4COUNT) "1,4",
                         SUM(TA1RXLEV5COUNT) "1,5",
                         SUM(TA1RXLEV6COUNT) "1,6",
                         SUM(TA1RXLEV7COUNT) "1,7",
                         SUM(TA1RXLEV8COUNT) "1,8",
                         SUM(TA1RXLEV9COUNT) "1,9",
                         SUM(TA1RXLEV10COUNT) "1,10",
                         SUM(TA1RXLEV12COUNT) "1,12",
                         SUM(TA1RXLEV13COUNT) "1,13",
                         SUM(TA1RXLEV14COUNT) "1,14",
                         SUM(TA1RXLEV15COUNT) "1,15",
                         SUM(TA1RXLEV16COUNT) "1,16",
                         SUM(TA1RXLEV17COUNT) "1,17",
                         SUM(TA1RXLEV18COUNT) "1,18",
                         SUM(TA1RXLEV19COUNT) "1,19",
                         SUM(TA1RXLEV20COUNT) "1,20",
                         SUM(TA1RXLEV22COUNT) "1,22",
                         SUM(TA1RXLEV23COUNT) "1,23",
                         SUM(TA1RXLEV24COUNT) "1,24",
                         SUM(TA1RXLEV25COUNT) "1,25",
                         SUM(TA1RXLEV26COUNT) "1,26",
                         SUM(TA1RXLEV27COUNT) "1,27",
                         SUM(TA1RXLEV28COUNT) "1,28",
                         SUM(TA1RXLEV29COUNT) "1,29",
                         SUM(TA1RXLEV31COUNT) "1,31",
                         SUM(TA1RXLEV32COUNT) "1,32",
                         SUM(TA1RXLEV33COUNT) "1,33",
                         SUM(TA1RXLEV34COUNT) "1,34",
                         SUM(TA1RXLEV35COUNT) "1,35",
                         SUM(TA1RXLEV36COUNT) "1,36",
                         SUM(TA1RXLEV37COUNT) "1,37",
                         SUM(TA1RXLEV38COUNT) "1,38",
                         SUM(TA1RXLEV40COUNT) "1,40",
                         SUM(TA1RXLEV41COUNT) "1,41",
                         SUM(TA1RXLEV42COUNT) "1,42",
                         SUM(TA1RXLEV43COUNT) "1,43",
                         SUM(TA1RXLEV44COUNT) "1,44",
                         SUM(TA1RXLEV45COUNT) "1,45",
                         SUM(TA1RXLEV46COUNT) "1,46",
                         SUM(TA1RXLEV47COUNT) "1,47",
                         SUM(TA1RXLEV48COUNT) "1,48",
                         SUM(TA1RXLEV50COUNT) "1,50",
                         SUM(TA1RXLEV51COUNT) "1,51",
                         SUM(TA1RXLEV52COUNT) "1,52",
                         SUM(TA1RXLEV54COUNT) "1,54",
                         SUM(TA1RXLEV57COUNT) "1,57",
                         SUM(TA1RXLEV59COUNT) "1,59",
                         SUM(TA1RXLEV61COUNT) "1,61",
                         SUM(TA1RXLEV63COUNT) "1,63",
                         SUM(TA2RXLEV4COUNT) "2,4",
                         SUM(TA2RXLEV7COUNT) "2,7",
                         SUM(TA2RXLEV9COUNT) "2,9",
                         SUM(TA2RXLEV11COUNT) "2,11",
                         SUM(TA2RXLEV14COUNT) "2,14",
                         SUM(TA2RXLEV16COUNT) "2,16",
                         SUM(TA2RXLEV18COUNT) "2,18",
                         SUM(TA2RXLEV20COUNT) "2,20",
                         SUM(TA2RXLEV25COUNT) "2,25",
                         SUM(TA2RXLEV27COUNT) "2,27",
                         SUM(TA2RXLEV30COUNT) "2,30",
                         SUM(TA2RXLEV32COUNT) "2,32",
                         SUM(TA2RXLEV34COUNT) "2,34",
                         SUM(TA2RXLEV36COUNT) "2,36",
                         SUM(TA2RXLEV39COUNT) "2,39",
                         SUM(TA2RXLEV41COUNT) "2,41"
                          FROM RADIO_TARXLEV DT
                         WHERE DT.TIMEMARK >= SYSDATE - 150
                           AND DT.TIMEMARK < SYSDATE
                           AND ENTRYTYPE = 1
                         GROUP BY DT.CGI) DT,
                       V_BSCCELL V_BSCCELL_CGI
                 WHERE DT.CGI = V_BSCCELL_CGI.CGI(+)) UNPIVOT(Z FOR Y IN("13,47",
                                                                         "13,49",
                                                                         "13,52",
                                                                         "13,54",
                                                                         "13,56",
                                                                         "13,58",
                                                                         "13,61",
                                                                         "13,63",
                                                                         "0,1",
                                                                         "0,10",
                                                                         "0,20",
                                                                         "0,29",
                                                                         "0,38",
                                                                         "0,48",
                                                                         "0,57",
                                                                         "1,2",
                                                                         "1,11",
                                                                         "1,21",
                                                                         "1,30",
                                                                         "1,39",
                                                                         "1,49",
                                                                         "2,2",
                                                                         "2,23",
                                                                         "2,43",
                                                                         "3,2",
                                                                         "3,23",
                                                                         "3,43",
                                                                         "4,0",
                                                                         "4,21",
                                                                         "4,43",
                                                                         "5,0",
                                                                         "5,21",
                                                                         "5,41",
                                                                         "6,0",
                                                                         "6,21",
                                                                         "6,41",
                                                                         "6,62",
                                                                         "7,21",
                                                                         "7,41",
                                                                         "7,62",
                                                                         "8,21",
                                                                         "8,42",
                                                                         "8,62",
                                                                         "9,21",
                                                                         "9,42",
                                                                         "9,62",
                                                                         "10,21",
                                                                         "10,34",
                                                                         "10,44",
                                                                         "10,54",
                                                                         "10,63",
                                                                         "11,9",
                                                                         "11,18",
                                                                         "11,28",
                                                                         "11,38",
                                                                         "11,47",
                                                                         "11,57",
                                                                         "12,3",
                                                                         "12,12",
                                                                         "12,29",
                                                                         "12,49",
                                                                         "13,6",
                                                                         "13,26",
                                                                         "13,46",
                                                                         "1,56",
                                                                         "2,15",
                                                                         "2,40",
                                                                         "3,1",
                                                                         "3,24",
                                                                         "3,49",
                                                                         "4,8",
                                                                         "4,33",
                                                                         "4,56",
                                                                         "5,17",
                                                                         "0,0",
                                                                         "0,2",
                                                                         "0,3",
                                                                         "0,4",
                                                                         "0,5",
                                                                         "0,6",
                                                                         "0,7",
                                                                         "0,8",
                                                                         "0,9",
                                                                         "0,11",
                                                                         "0,12",
                                                                         "0,13",
                                                                         "0,14",
                                                                         "0,15",
                                                                         "0,16",
                                                                         "0,17",
                                                                         "0,18",
                                                                         "0,19",
                                                                         "0,21",
                                                                         "0,22",
                                                                         "0,23",
                                                                         "0,24",
                                                                         "0,25",
                                                                         "0,26",
                                                                         "0,27",
                                                                         "0,28",
                                                                         "0,30",
                                                                         "0,31",
                                                                         "0,32",
                                                                         "0,33",
                                                                         "0,34",
                                                                         "0,35",
                                                                         "0,36",
                                                                         "0,37",
                                                                         "0,39",
                                                                         "0,40",
                                                                         "0,41",
                                                                         "0,42",
                                                                         "0,43",
                                                                         "0,44",
                                                                         "0,45",
                                                                         "0,46",
                                                                         "0,47",
                                                                         "0,49",
                                                                         "0,50",
                                                                         "0,51",
                                                                         "0,52",
                                                                         "0,53",
                                                                         "0,54",
                                                                         "0,55",
                                                                         "0,56",
                                                                         "0,58",
                                                                         "0,59",
                                                                         "0,60",
                                                                         "0,61",
                                                                         "0,62",
                                                                         "0,63",
                                                                         "1,0",
                                                                         "1,1",
                                                                         "1,3",
                                                                         "1,4",
                                                                         "1,5",
                                                                         "1,6",
                                                                         "1,7",
                                                                         "1,8",
                                                                         "1,9",
                                                                         "1,10",
                                                                         "1,12",
                                                                         "1,13",
                                                                         "1,14",
                                                                         "1,15",
                                                                         "1,16",
                                                                         "1,17",
                                                                         "1,18",
                                                                         "1,19",
                                                                         "1,20",
                                                                         "1,22",
                                                                         "1,23",
                                                                         "1,24",
                                                                         "1,25",
                                                                         "1,26",
                                                                         "1,27",
                                                                         "1,28",
                                                                         "1,29",
                                                                         "1,31",
                                                                         "1,32",
                                                                         "1,33",
                                                                         "1,34",
                                                                         "1,35",
                                                                         "1,36",
                                                                         "1,37",
                                                                         "1,38",
                                                                         "1,40",
                                                                         "1,41",
                                                                         "1,42",
                                                                         "1,43",
                                                                         "1,44",
                                                                         "1,45",
                                                                         "1,46",
                                                                         "1,47",
                                                                         "1,48",
                                                                         "1,50",
                                                                         "1,51",
                                                                         "1,52",
                                                                         "1,54",
                                                                         "1,57",
                                                                         "1,59",
                                                                         "1,61",
                                                                         "1,63",
                                                                         "2,4",
                                                                         "2,7",
                                                                         "2,9",
                                                                         "2,11",
                                                                         "2,14",
                                                                         "2,16",
                                                                         "2,18",
                                                                         "2,20",
                                                                         "2,25",
                                                                         "2,27",
                                                                         "2,30",
                                                                         "2,32",
                                                                         "2,34",
                                                                         "2,36",
                                                                         "2,39",
                                                                         "2,41"))) DT

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1    144.37     144.42          0        398          0           0
Execute      1      0.01       0.09          0         12          0           0
Fetch       15      0.00       0.14          0          0          0         199
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total       17    144.39     144.66          0        410          0         199

Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 118  

Rows     Row Source Operation
-------  ---------------------------------------------------
    199  VIEW  (cr=12 pr=0 pw=0 time=198 us cost=75402 size=3383 card=199)
    199   UNPIVOT  (cr=12 pr=0 pw=0 time=0 us)
      1    VIEW  (cr=12 pr=0 pw=0 time=0 us cost=379 size=2587 card=1)
      1     SORT AGGREGATE (cr=12 pr=0 pw=0 time=0 us)
      8      PX COORDINATOR  (cr=12 pr=0 pw=0 time=63 us)
      0       PX SEND QC (RANDOM) :TQ10002 (cr=0 pr=0 pw=0 time=0 us)
      0        SORT AGGREGATE (cr=0 pr=0 pw=0 time=0 us)
      0         HASH JOIN RIGHT OUTER (cr=0 pr=0 pw=0 time=0 us cost=379 size=24585717 card=9409)
      0          PX RECEIVE  (cr=0 pr=0 pw=0 time=0 us cost=3 size=6539 card=503)
      0           PX SEND BROADCAST :TQ10000 (cr=0 pr=0 pw=0 time=0 us cost=3 size=6539 card=503)
      0            VIEW  V_BSCCELL (cr=0 pr=0 pw=0 time=0 us cost=3 size=6539 card=503)
      0             NESTED LOOPS  (cr=0 pr=0 pw=0 time=0 us cost=3 size=9054 card=503)
      0              PX BLOCK ITERATOR (cr=0 pr=0 pw=0 time=0 us)
      0               TABLE ACCESS FULL CFG_CELL (cr=0 pr=0 pw=0 time=0 us cost=3 size=7322 card=523)
      0              INDEX UNIQUE SCAN PK_CFG_BSC (cr=0 pr=0 pw=0 time=0 us cost=0 size=4 card=1)(object id 1703233)
      0          VIEW  (cr=0 pr=0 pw=0 time=0 us cost=375 size=24463400 card=9409)
      0           HASH GROUP BY (cr=0 pr=0 pw=0 time=0 us cost=375 size=4064688 card=9409)
      0            PX RECEIVE  (cr=0 pr=0 pw=0 time=0 us cost=374 size=4746816 card=10988)
      0             PX SEND HASH :TQ10001 (cr=0 pr=0 pw=0 time=0 us cost=374 size=4746816 card=10988)
      0              FILTER  (cr=0 pr=0 pw=0 time=0 us)
      0               PX BLOCK ITERATOR (cr=0 pr=0 pw=0 time=0 us cost=374 size=4746816 card=10988)
      0                TABLE ACCESS FULL RADIO_TARXLEV (cr=0 pr=0 pw=0 time=0 us cost=374 size=4746816 card=10988)


Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  PX Deq: Join ACK                               15        0.00          0.00
  PX Deq Credit: send blkd                        7        0.00          0.00
  PX Deq: Parse Reply                             8        0.00          0.01
  SQL*Net message to client                      15        0.00          0.00
  PX Deq: Execute Reply                         109        0.02          0.12
  PX qref latch                                   1        0.00          0.00
  PX Deq: Signal ACK RSG                          6        0.00          0.00
  SQL*Net message from client                    15       93.20         93.21
  PX Deq: Signal ACK EXT                          7        0.00          0.00
  PX Deq: Slave Session Stats                     6        0.00          0.00
********************************************************************************

SQL ID: 06nvwn223659v
Plan Hash: 0
alter session set events '10046 trace name context off'


call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        2      0.00       0.00          0          0          0           0

Misses in library cache during parse: 0
Parsing user id: 118  



********************************************************************************

OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        2    144.37     144.42          0        398          0           0
Execute      2      0.01       0.09          0         12          0           0
Fetch       15      0.00       0.14          0          0          0         199
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total       19    144.39     144.66          0        410          0         199

Misses in library cache during parse: 1

Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to client                      16        0.00          0.00
  SQL*Net message from client                    16       93.20        103.53
  SQL*Net more data from client                   4        0.00          0.00
  PX Deq: Join ACK                               15        0.00          0.00
  PX Deq Credit: send blkd                        7        0.00          0.00
  PX Deq: Parse Reply                             8        0.00          0.01
  PX Deq: Execute Reply                         109        0.02          0.12
  PX qref latch                                   1        0.00          0.00
  PX Deq: Signal ACK RSG                          6        0.00          0.00
  PX Deq: Signal ACK EXT                          7        0.00          0.00
  PX Deq: Slave Session Stats                     6        0.00          0.00


OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse      199      0.01       0.01          0          0          0           0
Execute    199      0.00       0.00          0          0          0           0
Fetch      199      0.00       0.00          0        398          0         199
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total      597      0.02       0.02          0        398          0         199

Misses in library cache during parse: 0

    2  user  SQL statements in session.
  199  internal SQL statements in session.
  201  SQL statements in session.
********************************************************************************
Trace file: orcl_ora_18566.trc
Trace file compatibility: 11.1.0.7
Sort options: default

       1  session in tracefile.
       2  user  SQL statements in trace file.
     199  internal SQL statements in trace file.
     201  SQL statements in trace file.
       3  unique SQL statements in trace file.
    2539  lines in trace file.
     238  elapsed seconds in trace file.