Hi All:
I use db2 v8 fp 14 on Aix.
I am facing problems with a stored procedure that is causing a lot of
locks and also goes in the lock wait state ending up hanging the
application.
Tried using the UR isolation mode but it did not help.
Can some one please suggest me how to debug this problem and any
specific step or areas that I need to look at..??
Thanks and Regards,
Racerx... 3 3173
On Jul 2, 8:39 am, Racerx <p.paingan...@g mail.comwrote:
Hi All:
I use db2 v8 fp 14 on Aix.
I am facing problems with a stored procedure that is causing a lot of
locks and also goes in the lock wait state ending up hanging the
application.
Tried using the UR isolation mode but it did not help.
Can some one please suggest me how to debug this problem and any
specific step or areas that I need to look at..??
Thanks and Regards,
Racerx...
Not sure if you realize this, but isolation level only affects select
statements and how long locks are being held by those select
statements (except that select with UR will ignore other locks held by
others). Inserts, updates, and deletes will not ignore locks held by
others even with UR.
If your stored procedure recieves a lock-timeout (error -911 RC=68)
then it was waiting on some locks held by another applicaiton (which
is likely the culprit). If your applicaiton just hangs indefinitely,
then your locktimeout parmerter for the db is probably set to -1 (wait
indefinitely). Try changing it to about 30 seconds (db2 update db cfg
using LOCKTIMEOUT 30). this will not necessarily solve the problem,
but at least your apps will not hang. You need to find out which other
application is holding the locks for more than 30 seconds.
Generally, locks are released when an application issues a COMMIT. You
cannot be too rich, too thin, or commit too often.
On Jul 4, 7:47 am, Mark A <m00...@yahoo.c omwrote:
On Jul 2, 8:39 am, Racerx <p.paingan...@g mail.comwrote:
Hi All:
I use db2 v8 fp 14 on Aix.
I am facing problems with a stored procedure that is causing a lot of
locks and also goes in the lock wait state ending up hanging the
application.
Tried using the UR isolation mode but it did not help.
Can some one please suggest me how to debug this problem and any
specific step or areas that I need to look at..??
Thanks and Regards,
Racerx...
Not sure if you realize this, but isolation level only affects select
statements and how long locks are being held by those select
statements (except that select with UR will ignore other locks held by
others). Inserts, updates, and deletes will not ignore locks held by
others even with UR.
If your stored procedure recieves a lock-timeout (error -911 RC=68)
then it was waiting on some locks held by another applicaiton (which
is likely the culprit). If your applicaiton just hangs indefinitely,
then your locktimeout parmerter for the db is probably set to -1 (wait
indefinitely). Try changing it to about 30 seconds (db2 update db cfg
using LOCKTIMEOUT 30). this will not necessarily solve the problem,
but at least your apps will not hang. You need to find out which other
application is holding the locks for more than 30 seconds.
Generally, locks are released when an application issues a COMMIT. You
cannot be too rich, too thin, or commit too often.
The Lock timeout parameter is set to 90...still i am facing the problem
On Jul 5, 1:30 am, Racerx <p.paingan...@g mail.comwrote:
On Jul 4, 7:47 am, Mark A <m00...@yahoo.c omwrote:
On Jul 2, 8:39 am, Racerx <p.paingan...@g mail.comwrote:
Hi All:
I use db2 v8 fp 14 on Aix.
I am facing problems with a stored procedure that is causing a lot of
locks and also goes in the lock wait state ending up hanging the
application.
Tried using the UR isolation mode but it did not help.
Can some one please suggest me how to debug this problem and any
specific step or areas that I need to look at..??
Thanks and Regards,
Racerx...
Not sure if you realize this, but isolation level only affects select
statements and how long locks are being held by those select
statements (except that select with UR will ignore other locks held by
others). Inserts, updates, and deletes will not ignore locks held by
others even with UR.
If your stored procedure recieves a lock-timeout (error -911 RC=68)
then it was waiting on some locks held by another applicaiton (which
is likely the culprit). If your applicaiton just hangs indefinitely,
then your locktimeout parmerter for the db is probably set to -1 (wait
indefinitely). Try changing it to about 30 seconds (db2 update db cfg
using LOCKTIMEOUT 30). this will not necessarily solve the problem,
but at least your apps will not hang. You need to find out which other
application is holding the locks for more than 30 seconds.
Generally, locks are released when an application issues a COMMIT. You
cannot be too rich, too thin, or commit too often.
The Lock timeout parameter is set to 90...still i am facing the problem- Hide quoted text -
- Show quoted text -
The problem is with the application holding the locks, not with the
one that gets the -911 RC=68.
During the 90 seconds while your application is waiting on a lock to
be released (before it gets a locktimeout error) run a snapshot for
locks on the database to see who is holding the locks you need. The
application who is holding the locks is the offending application and
most likely is the one that needs to be changed. You may have to try
this several times to make sure you get the snapshot when your
application is in lockwait mode. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dinesh prasad |
last post by:
I'm trying to use a servlet to process a form, then send that data to
an SQL server stored procedure. I'm using the WebLogic 8 App. server.
I am able to retrieve database information, so I know my application
server can talk to the database.
I've determined the failure occurs when the the following statement is
executed: cstmt.execute(); (due to the failure of println statements
placed afterwards). I get the following error after trying to...
|
by: Nashat Wanly |
last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and
Visual C# .NET
View products that this article applies to.
This article was previously published under Q310070
For a Microsoft Visual Basic .NET version of this article, see 308049.
For a Microsoft Visual C++ .NET version of this article, see 310071.
For a Microsoft Visual J# .NET version of this article, see 320627.
This article refers to the following Microsoft .NET...
|
by: Rhino |
last post by:
I've spent the last couple of hours trying to figure out how to debug a Java
stored procedure and am just going in circles. The last straw came when I
got "Cannot open input stream for default" when I launched the IBM
Distributed Debugger via
D:\IBMDebug>idebug.exe -qdaemon -quiport=8000,8001
First, a bit of background.
I am running DB2 V7.2 with Fixpack 9 applied on Windows XP Professional (all
critical service applied). I've written...
|
by: Rhino |
last post by:
Is it possible for a Java Stored Procedure in DB2 V7.2 (Windows) to pass a
Throwable back to the calling program as an OUT parameter?
If yes, what datatype should I use when registering the Throwable as an OUT
parameter and what datatype should I use in the CREATE PROCEDURE and DROP
PROCEDURE statements?
Here's what I tried:
- the method signature for the stored procedure included: Throwable
throwable
|
by: Thomasb |
last post by:
With a background in MS SQL Server programming I'm used to temporary
tables. Have just started to work with DB2 ver 7 on z/OS and stumbled
into the concept of GLOBAL TEMPORARY TABLE.
I have created a temporary database with a tables space. Verified that
DECLARE GLOBAL TEMPORARY TABLE TEMP (A INTEGER);
INSERT INTO SESSION.TEMP VALUES(10);
SELECT A FROM SESSION.TEMP;
works from a query tool.
| |
by: Dino L. |
last post by:
How can I run stored procedure (MSSQL) ?
|
by: Amber |
last post by:
Stored procedures are faster and more efficient than in-line SQL
statements. In this article we will look at two SQL Server stored
procedures; one using an input parameter and one not, and see how to
call them from an ASP.Net page
Every modern database system has a stored procedure language. SQL
Server is no different and has a relatively sophisticated and easy to
use system. This article will not attempt to go into depth in
explaining...
|
by: kd |
last post by:
Hi All,
How to debug a stored procedure?
Thanks,
kd
|
by: Dabbler |
last post by:
I'm using an ObjectDataSource with a stored procedure and am getting the
following error when trying to update (ExecuteNonQuery):
System.Data.SqlClient.SqlException: Procedure or Function 'UpdateRegistrant'
expects parameter '@EMail', which was not supplied.
The field value was null in the database and not changed in the FormView so
is null going back into the stored procedure. I'm stumped and would greatly
appreciate any suggestions.
|
by: jed |
last post by:
I have created this example in sqlexpress
ALTER PROCEDURE .
@annualtax FLOAT
AS
BEGIN
SELECT begin1,end1,deductedamount,pecentageextra
FROM tax
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |
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();...
|
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...
| |