oracle - Query very slow after a few execution -
i'm new of oracle , i'm becoming crazy following situation. i'm working on oracle 11g database , many times happening run query sql developer , correctly executed in 5/6 seconds, others time instead same query take 300/400 second executed. there tools debug happening when query employs 300/400 second?
update 1 sql developer screenshot problem seems direct path read temp
update 2 report
update 3 report2
any suggestion?
try setting trace. user being whatever user experiencing delay
sys:
grant alter session user;
as user executing trace:
alter session set events '10046 trace name context forever, level 8'; alter session set tracefile_identifier = "my_test_session";
produce error/issue, user testing:
alter session set events '10046 trace name context off';
as system find out trace files kept:
show parameter background_dump_dest;
go directory , .trc/.trm files containing my_test_session
. example orcl_ora_29772_my_test_session.trc.
after tkprof files. in linux:
tkprof orcl_ora_29772_my_test_session.trc output=orcl_ora_29772_my_test_session.tkprof explain=user/password sys=no
read tkprof file , will show wait times on given statements.
more info on tkprof read this. more info on enabling/disabling trace read this.
Comments
Post a Comment