PL/SQL (MOSC)

MOSC Banner

Oracle SQL Query Slow IO Slave Wait

edited Jun 7, 2017 6:16AM in PL/SQL (MOSC) 3 commentsAnswered

Hi,

Recently the below query taking long to execute.

As per check, it wait for io slave wait event.

Can i get some advise on how to fine tune this query.

SELECT b.*,        Round(fwrpt.utl_cal.DELTA(start_assy, received_assy), 2)     ASSY_CT,        Round(fwrpt.utl_cal.DELTA(ordercreationtime, invoice_date), 2) DTD_CT FROM   (SELECT a.shipment_year,                a.shipment_per,                a.shipment_ww,                a.customercode,                a.customerlotnumber,                a.device,                a.PACKAGE,                a.leadcount,                a.shippedqty,                a.actualshipmentdate,                a.lottype,                a.alias,                a.received_assy,                a.start_assy,                ASSY1 COMPLETION_ASSY,                ordercreationtime,                invoice_date         FROM   (SELECT shipment_year,                        shipment_per,                        shipment_ww,                        customercode,                        customerlotnumber,                        device,                        PACKAGE,                        leadcount,                        shippedqty,                        actualshipmentdate,                        lottype,                        alias,                        diesreceiptdate                    RECEIVED_ASSY,                        timedstoasy                        START_ASSY,                        ordercreationtime,                        invoice_date,                       (SELECT Max(txntimestamp)                         FROM   fwwiptransaction b                         WHERE  b.wipid IN (SELECT sublotid                                            FROM   fwrpt.t_sublot_cyctm d
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center