473,804 Members | 3,433 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why is SQL stored procedure taking long time to complete?

7 New Member
Hi All,

I have SQL db2 stored procedure and currently on db2 9.5 version. Its federated environment where the stored proc queries certain tables in one database and loads that data in another database. Both the database are in the same instance. This Stored procedure call was getting completed in one or two minutes max. But from last one week this stored procedure is taking 40-50 mins to complete. There is nothing that has changed recently. It is also quering around 10 lacs rows.. which is very little interms of db2 handling millions of rows.
I performed reorg on all tables, Runstats, rebind on all packages. But no use? please help any investigation steps or alternate to fix the issue.
I have also stopped and started the instance, refreshed federated objects(infact dropped and re-created). Tried all possibilities. Not sure what went wrong :-(

Regards
Pramod
Feb 5 '11 #1
0 1956

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5464
by: Dino L. | last post by:
How can I run stored procedure (MSSQL) ?
2
3499
by: TJS | last post by:
in a script, a stored procedure is called. I want to verify the procedure is complete before proceeding ahead. How can I have the script wait until a stored procedure is verified as complete before proceeding ahead ??
4
1944
by: madhusudan.hv | last post by:
hi, Can you tell me when an application might take long time to dump core? The linux o.s is indicating that a process is dumping core, and only after 40 mins i am seeing the core file. What might be the problem? regards, Madhusudan
0
1945
by: devkumar | last post by:
I have a SP having 5 tables out of which 3 are temporary tables. This stored procedure is used to insert millions of records into one of the table. The problem is that its taking long time to execute this SP and even at the time when we insert into the values. I have also used the group by clause and the indexing on this query but still not able to get the desired performance. - Can you please suggest me how and where to do indexing and will it...
4
5079
by: barmatt80 | last post by:
I am stumped on the error reporting with sql server. I was told i need to return @SQLCode(code showing if successful or not) and @ErrMsg(and the message returned). I am clueless on this. I wrote this procedure: ALTER PROCEDURE . @Emp_SSN int, @Annual_Forward decimal(10,2),
1
1457
by: anandanies | last post by:
I am having a new server which has SQL 2005 standard edition SP2 installed on it (OS windows 2003 server) On migrating from SQL 2000 to SQL 2005 , I observe certain procedures taking almost 10 times the normal run times. However certain procedures in SQL 2005 run much quicker. On observation , it is found that the procedures having loops , cursors take more time in SQL 2005 . Is there some setting to be done to enable SP’s having loops...
4
5182
by: resmi318 | last post by:
I am running a query similar to given below. CREATE TABLE ABC_08 AS (SELECT x.col1, trim(x.col2), x.col3, x.col4, x.col5 FROM Table1 x
0
1648
by: kavin | last post by:
our Customer used to take export backup of a particular schema, previously it used to finish within 30 Minutes. As of now it is taking almost 12 Hours. Export is consuming more time while taking the backup of three particular tables.This tables contains row sizes of 15 lakhs,one lakhs, 75 lakhs respectively
1
3186
by: kavin | last post by:
our Customer used to take backup all the tables of a particular schema using export utility, previously the export operation used to finish within 30 Minutes. As of now it is taking almost 12 Hours. mainly while taking the backup of three particular tables.This tables contains row sizes of 15 lakhs,one lakhs, 75 lakhs records respectively
7
2484
by: kiranrajenimbalkar | last post by:
Hi, when i am executing the below SQL its taking long time for execution so please provide me the solution. SELECT A.ID, A.IDTYPE, A.USERNAME, A.FIRSTNAME, A.LASTNAME, A.STATUS,
0
10575
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10076
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9144
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7616
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3816
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.