procedure running with no end [message #361215] |
Tue, 25 November 2008 06:50 |
srini_thiru
Messages: 133 Registered: May 2008
|
Senior Member |
|
|
Hi to all,
I am using oracle 10.1 version in windows 2003 platform. the problem is when i try to run a procedure in the command prompt it is running continuously with no error or output. Normally this procedure will take half an hour to execute. Four days back it has ran successfully. But from that day it has been creating problem.
I have checked for any session block and there is no such blocks.
Can any one please guide me, where to check why this procedure is running for long time and what is going on in the database.
Thanks in Advance,
Seenu.
|
|
|
|
|
Re: procedure running with no end [message #361362 is a reply to message #361215] |
Wed, 26 November 2008 01:28 |
coleing
Messages: 213 Registered: February 2008
|
Senior Member |
|
|
You might have to do a google search for each of these items if you dont know how to do them, but the first steps are:-
Look in V$SQL where users_executing > 0 and see what SQL it is running.
use DBMS_XPLAN to get the current execution plan of that SQL (using the cursor id from V$SQL).
analyze the tables involved inthe sql and re-run the query and check its explain plan.
|
|
|