2016-08-03 1 views
-2

enter image description here오라클의 실행 계획 이해

Oracle에서 SQL 쿼리를 실행하고이 실행 계획을 생성했습니다. Oracle 실행 계획에 익숙하지 않습니다. 누군가가 오라클에서 생성 된 실행 계획 아래에서 나를 도울 수 있다면 큰 도움이 될 것입니다.

enter image description here

또한 (빨간색으로 강조 표시) 술어 정보 무슨 뜻입니까? (성능을 향상 할 수 있는지?)

쿼리 세부 당신은 오라클의 EXPLAINPLAN 문을 사용할 필요가

select 
    master.acname,branch.bname, 
    branch.blocation||'-'||branch.barea as blocation, 
    trans.location as location, 
    location.shortcode||'/'||substr(voucherno,1,8)||'-'||vouchertype||substr(voucherno,9,15) as voucherno, 
    transtype.transtype, 
    voucherdate, particular, trans.drcr, 
    case drcr 
     when 'D' then amount 
     else NULL 
    end as debit, 
    case drcr 
     when 'C' then amount 
     else NULL 
    end as credit, 
    master.acname as repeatedname, 
    master.accode as accode 
from 
    trans, branch, master, transtype, location 
where 
    trans.cid = 'BCDTRA0003' 
    --and trans.location=v_location 
    and voucherdate between '01-APR-2015' and '01-APR-2015' 
    and trans.accode in (select accode from master) 
    and trans.deleteinvoice is NULL 
    and trans.MANUAL = 1 
    and trans.voucherprefix = transtype.type 
    and (master.cid = trans.cid or master.cid = '9999999999') 
    and trans.accode = master.accode 
    and trans.cid = branch.cid 
    and trans.bid = branch.bid 
    and branch.blocation = location.blocation 
/
+0

[독서 PLAN 출력 EXPLAIN (https://docs.oracle.com/cd/E11882_01/server.112/e41573/ex_plan.htm#PFGRF94683). –

+0

쿼리 및 실행 계획 게시. – axiac

+0

내 게시물을 방문해 주셔서 감사 Axiac. 나는 단지 실행 계획의 스크린 샷과 사용 된 쿼리를 배치했다. –

답변