Long running Stored Procedure [message #483378] |
Sun, 21 November 2010 09:44  |
jesuisantony
Messages: 166 Registered: July 2006 Location: Chennai
|
Senior Member |
|
|
Hi All,
We have a concurrent program running for long hours. By using the v$ views, I found that the program was running stored procedure. I was just able to see that it is running. I was unable to drill down as why it is running long. The final view used for drilling was v$sqltext. Can you let me know the steps to rectify the issue?
Regards,
Antony
|
|
|
|
|
|
Re: Long running Stored Procedure [message #483396 is a reply to message #483394] |
Sun, 21 November 2010 12:43   |
Its_me_ved
Messages: 979 Registered: October 2009 Location: India
|
Senior Member |
|
|
Do you know what this procedure dbms_stats.gather_database_stats does? Gathering stats should be done at off peak hours as they generally take huge resources.It takes time depending on database size , sampling, parallelism option , CPUs etc.
Regards
Ved
[Updated on: Sun, 21 November 2010 12:47] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Long running Stored Procedure [message #483718 is a reply to message #483712] |
Wed, 24 November 2010 04:33  |
John Watson
Messages: 8974 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I am now totally confused (like you). I have asked several times if you know which concurrent manager request it is, and what the request does: you say you do, but you have NEVER given any detail. How is the request defined? What does it do? What makes you think that it is running DBMS_STATS procedure?
Aloso, you said earlier that you do know what dbms_Stats does, so you should be able to answer your question about whether it does any DML.
|
|
|