Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to check and reduce the call time for stored proc?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
vinay_care

New User


Joined: 22 Sep 2006
Posts: 17

PostPosted: Fri Feb 13, 2009 5:47 pm    Post subject: how to check and reduce the call time for stored proc?
Reply with quote

Hi,

We have multiple systems speaking to DB2, and those are inter connected by some middle wear applications.
those applications provides trigger to DB2 Stored procedures and internally in this SP we have call to common subroutine program verifying the login info? and this call is taking a long time
and this wait time is letting the system to crash because the threads get inactive after a certain wait time and new threads are put in queues.

so its been difficult to track or resolve this, please suggest. your input is very valuable.

Thanks,
Vinay
Back to top
View user's profile Send private message

Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Tue Feb 17, 2009 4:04 pm    Post subject:
Reply with quote

You can run strobe to check the time taken by the SP.

If you have identified the program/routine which is taking time, then try to reduce the burden on it.

If it is a routine, then make sure the call is static. Check the SQL statements in the routine, if there is a better way to write the SQL ( better performing), then go ahead and change it. Try to reduce unnecessary statements in the program.

Quote:
we have call to common subroutine program verifying the login info? and this call is taking a long time


If it is doing just that, then it should not take much time. Suggest you analyze the program again for unnecessary loopings.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us