Download PLATOThe free tool for auditing and tuning your database Version 52 now available  Jul 12, 2010
The DBA-Village forum
as RSS feed
Site Statistics| Ever registered | 41916 | | Total active users | 26385 | | Act. users last 24h | 104 | | Act. users last hour | 4 | | Hits last week | 5303 | | Hits last month | 21663 |
|
Go up
Where to look about procedure progress
| Subject: |
Where to look about procedure progress |
| Author: |
sandesh deshmukh, India |
| Date: |
Mar 11, 2010, 182 days ago |
| Message: |
I have one procedure that is taking so much of time to get execute,So could anyody guide how can i monitor the performance of the procedure while procedure is still running?
Where can i look for to get information about the progress of the procedure?
Thanks in advance.
|
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: Where to look about procedure progress |
| Author: |
kishore pagadala, India |
| Date: |
Mar 11, 2010, 182 days ago |
| Message: |
Hi,
If you are using TOAD and have DBA role you can check the current progress in TOAD -> Database-> Monitor -> Session Browser.
Thanks
|
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: Where to look about procedure progress |
| Author: |
Umesh Sharma, India |
| Date: |
Mar 11, 2010, 182 days ago |
| Message: |
1 ) Trace the session
2) simultaneously find the current query running in the procedure
|
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: Where to look about procedure progress |
| Author: |
Pierre Rabau, France |
| Date: |
Mar 12, 2010, 181 days ago |
| Message: |
Hi,
Query the view v$session_longops, it may help you.
Regards
Pierre |
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
| Subject: |
Re: Where to look about procedure progress |
| Author: |
Bruno Vroman, Belgium |
| Date: |
Mar 12, 2010, 181 days ago |
| Score: |
       |
| Message: |
Hello,
if you can edit the code of the procedure, it might be useful to insert some calls to
DBMS_APPLICATION_INFO.SET_CLIENT_INFO( ... )
(the "message" can be simple like 'I am here', but it might be more complex, like 'step ' || l_i1 || ' out of ' || l_i2 || ' started at ' || to_char( sysdate, 'DD-MON-YY HH24:MI:SS' ) or anything that suits your needs.
(good practice: do not forget to "reset" the message at the end of the procedure).
Then when the procedure is run in a session, you can query
SELECT client_info FROM v$session WHERE sid = ...
(or more simply: SELECT DISTINCT client_info FROM v$session)
HTH,
Bruno Vroman. |
| Your rating?: |
This reply is Good Excellent |
| Goto: |
Reply - Top of page |
If you think this item violates copyrights, please click here
|