delete statement taking forever [message #516780] |
Wed, 20 July 2011 16:31 |
varunvir
Messages: 389 Registered: November 2007
|
Senior Member |
|
|
Hi Experts,
One of my delete statement is taking forever
to delete the record.The execution plan is
same which we was being used before when it was fine.
When I look at v@session and v$session_wait,session is showing active.
Can you please tell me where can i concentrate
looking at database to know the reason behind it.
I would like to know how to pursue on this to interpret the
reason behind it.Is there any way I can figure out what exactly
is happening on the background when it is trying to delete.
Thanks,
Varun
CM: removed [code] tags - they're for code not text.
[Updated on: Wed, 20 July 2011 17:55] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: delete statement taking forever [message #516995 is a reply to message #516991] |
Thu, 21 July 2011 12:01 |
varunvir
Messages: 389 Registered: November 2007
|
Senior Member |
|
|
Hi Experts,
I am not able to attach file because of the size of file.
I am putting some part of it.Please let me know how could
i attach 5.49 mb file********************************************************************************
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 0 0.00 0.00 0 0 0 0
Misses in library cache during parse: 0
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file scattered read 133 0.37 4.21
db file sequential read 1 0.00 0.00
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 3110 0.04 0.11 1 2 20 0
Execute 3110 872.93 1444.55 1984225 43191547 22326 0
Fetch 2491 0.98 1.27 15 182635 0 2491
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 8711 873.96 1445.94 1984241 43374184 22346 2491
Misses in library cache during parse: 6
Misses in library cache during execute: 6
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file scattered read 26132 0.56 511.40
db file sequential read 11411 0.36 60.29
latch free 1 0.00 0.00
latch: cache buffers chains 19 0.00 0.00
619 user SQL statements in session.
2491 internal SQL statements in session.
3110 SQL statements in session.
********************************************************************************
Trace file: pismnwrk_ora_4664.trc
Trace file compatibility: 11.1.0.7
Sort options: default
1 session in tracefile.
619 user SQL statements in trace file.
2491 internal SQL statements in trace file.
3110 SQL statements in trace file.
6 unique SQL statements in trace file.
80053 lines in trace file.
2097469 elapsed seconds in trace file.
|
|
|
|
|
Re: delete statement taking forever [message #517117 is a reply to message #517024] |
Fri, 22 July 2011 13:18 |
varunvir
Messages: 389 Registered: November 2007
|
Senior Member |
|
|
Hi Experts,
It was one the weird error.After going through all the steps,
I tried to delete the row manually and realized that child
record is still in the database.There were two refernce keys
in the table referring to two different columns of child table.
Deveoper put only one key in the join condition in the proc and as a
result it was getting stuck on parent table as other key was missing in join condition.
Thanks for you help though.
-Varun
[Updated on: Fri, 22 July 2011 13:19] Report message to a moderator
|
|
|