Pular para o conteúdo

Fóruns Banco de dados Oracle dbms_profiler dbms_profiler

#90330
Ishii
Participante

    Olá,

    Então a query

    select line#,
    decode (a.total_occur,null,0,0,0,
    a.total_time/a.total_occur/1000) as Avg,
    substr(c.text,1,20) as Source
    from plsql_profiler_data a, plsql_profiler_units b, user_source c
    where a.runid = 1
    and a.unit_number = 3
    and a.runid = b.runid
    and a.unit_number = b.unit_number
    and b.unit_name = c.name
    and a.line# = c.line
    and rownum < 11
    order by a.total_time desc ;

    Qual o resultado dela?

    Então poderemos ver quais as queries que mais consomem recursos…

    []s Ishii