2016-08-03 13 views
-2

enter image description hereErläuterung des Ausführungsplans in Oracle

Ich habe eine SQL-Abfrage in Oracle ausgeführt und diesen Ausführungsplan erstellt. Ich bin neu in Oracle Ausführungsplänen. Es wird eine große Hilfe sein, wenn jemand mir helfen könnte, den in Oracle erstellten Ausführungsplan zu unterschreiten.

enter image description here

Auch was ist Mittelwert von Predicate Information (rot markiert)?

Abfrage Detail (was getan werden könnte, die Leistung zu verbessern?)

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

[Leseplan Ausgang EXPLAIN] (https://docs.oracle.com/cd/E11882_01/server.112/e41573/ex_plan.htm#PFGRF94683). –

+0

Veröffentlichen Sie die Abfrage und den Ausführungsplan. – axiac

+0

Danke Axiac für den Besuch meiner Post. Ich habe gerade Screenshot des Ausführungsplans und der verwendeten Abfrage platziert. –

Antwort