Home » RDBMS Server » Performance Tuning » Procedure runs long time (merged) (Oracle Enterprise Edition 10.2.0.4, Solaris 10)
Procedure runs long time (merged) [message #488207] Wed, 05 January 2011 11:36 Go to next message
jesuisantony
Messages: 166
Registered: July 2006
Location: Chennai
Senior Member
Hi All,

One of the applications was not getting completed for a long. When I checked in the backend using gv$sqltext, I found that the below mentioned query was there for a long time.

BEGIN CAGIF_B2C26D_AP_EXTRACT.GPC_AP_EXTRACT(:errbuf,:rc,:A0,:A1,:A2); END;


I tried to run a trace for this procedure from the test environment. But I was unable to proceed further, as it was containing the bind variables like :A0,:A1 etc. Let me know the way to generate the trace in this situation.

Regards,
Antony
Re: Procedure runs long time (merged) [message #488214 is a reply to message #488207] Wed, 05 January 2011 11:46 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:247128500346083854

you need to capture bind values from Production
Re: Procedure runs long time (merged) [message #488215 is a reply to message #488207] Wed, 05 January 2011 11:46 Go to previous messageGo to next message
cookiemonster
Messages: 13958
Registered: September 2008
Location: Rainy Manchester
Senior Member
Find some values you can use in place of the binds?
It's your application, you should know (or at least be able to find out) how that procedure is used and what values can be supplied for the parameters.
Personally I'd just trace the session that's actually going slow in production. Could well be it'll go fast on test (especially if you have less data in there than in production).
Re: Procedure runs long time (merged) [message #488217 is a reply to message #488207] Wed, 05 January 2011 11:47 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
alter session set sql_trace=true;
<your call>
alter session set sql_trace=false;

Regards
Michel

Re: Procedure runs long time (merged) [message #488218 is a reply to message #488214] Wed, 05 January 2011 11:47 Go to previous message
cookiemonster
Messages: 13958
Registered: September 2008
Location: Rainy Manchester
Senior Member
BlackSwan wrote on Wed, 05 January 2011 17:46
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:247128500346083854

you need to capture bind values from Production


Unless test has the exact same data as prod, you might as well just trace prod as do that.
Previous Topic: Procedure taking tomuch time in execution
Next Topic: ADDM Retention
Goto Forum:
  


Current Time: Fri Nov 22 01:49:50 CST 2024