We have an "Insert into XYZ_Table(seq_nbr, abc,def) select 3, abc,def
from XYZ_TABLE where abc > ### " query in our application. This query
is an COBOL Stored Procedure residing on DB2 Mainframes. When multiple
users access the application and call this Stored Procedure
simultaneously, then we are seeing LOCK/WAIT state of some of the
threads. The table XYZ_Table is having Locksize of row.Each of the
threads will have a different value for ## and hence no two threads
will be trying to selecting same record. But still some threads either
time-out or go into IOWAIT state.
Can someone please help me on this. Is it an issue with the query or
with memory/CPU allocation for DB?
TiA,
Naveen 3 3178
<na*************@gmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com... We have an "Insert into XYZ_Table(seq_nbr, abc,def) select 3, abc,def from XYZ_TABLE where abc > ### " query in our application. This query is an COBOL Stored Procedure residing on DB2 Mainframes. When multiple users access the application and call this Stored Procedure simultaneously, then we are seeing LOCK/WAIT state of some of the threads. The table XYZ_Table is having Locksize of row.Each of the threads will have a different value for ## and hence no two threads will be trying to selecting same record. But still some threads either time-out or go into IOWAIT state.
Can someone please help me on this. Is it an issue with the query or with memory/CPU allocation for DB?
TiA, Naveen
Try this:
Insert into XYZ_Table(seq_nbr, abc,def) select 3, abc,def
from XYZ_TABLE where abc > ### with ur
Unfortunately, "WITH UR" doesnt work when the select stmt is part of
INSERT/UPDATE/DELETE :(
Thanks,
Naveen
My system has a very high number of concurrent transactions. When I
face a lock-wait scenarios, I usually see bad access plans. Reorg your
table and update your statistics. Then rebind your packages
HTH This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lars Rasmussen |
last post by:
I tried that, but i dont work either.
I need to insert a way that mysql doese'nt complain when i copy some
records that have the same id (or that it just gives it an id according
to the...
|
by: Nick |
last post by:
Im trying to insert a bunch of rows into a table. If the row already
exists id like to update the row 'counter'. For example...
INSERT INTO table1
SELECT field1, field2
FROM table2
ON...
|
by: Frank Py |
last post by:
I need a query that looks at one table and appends another if new
customer data is added. I think I need an Insert, Select statement using
the NOT IN clause.
I need to compare Division,...
|
by: Robert |
last post by:
Hi!
I was wondering if the was any way to determine the state of the caps
lock key, on or off.
Of course I can capture the key events and see whether the caps lock is
pressed, but that does not...
|
by: Donius |
last post by:
Hello team. I'm running mysql 4.0.20-standard and i'm trying to do a
query like this:
INSERT IGNORE
INTO `DonorPledges` (
nDonor_id,
nPledgeYear,
nTotalPaid,
nTotalPledge )
SELECT
|
by: suslikovich |
last post by:
Hi all,
I am getting this error when insert values from one table to another in
the first table the values are varchar (10). In the second they are
datetime. The format of the data is mm/dd/yyyy...
|
by: Peter Nurse |
last post by:
For reasons that are not relevant (though I explain them below *), I
want, for all my users whatever privelige level, an SP which creates
and inserts into a temporary table and then another SP...
|
by: Vinnie123 |
last post by:
Is it possible to have mysql ignore the case when performing a search?
I am making a user signup script. I want the usernames to be case sensitive (i.e. I do not want to store only lowercase...
|
by: sticky |
last post by:
Hi
I need to be able to lock a table against INSERT and UPDATE, but not
SELECT, for the duration of a transaction.
The transaction will be defined at the application level in c#, and
then use...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |