Hello All;
The environment is DB2 AIX 8.1.5 (parallel edition) being accessed by a
Windows 8.1.2 admin client via Quest. I'm trying to use the
snapshot_lockwa it table function and getting unexpected results:
* I run a query to "select * from tableA for update" from a Quest
session with autocommit turned off. Results are returned as expected
* From another Quest session, "selct * from tableA". As expected, no
results are returned and session "hangs" since tableA is being held
exclusuively by the other uncommitted work.
* I run the following query "select a.* from
TABLE(SYSPROC.S NAPSHOT_LOCKWAI T('DBNAME', -1)) as a;" and get no rows
returned. (DBNAME is really the database name of the AIX target
database)
* As soon as I issue the "commit" on 1st session, the 2nd query returns
the rows that were locked pending "commit".
I would expect the 3rd query (referencing the table function would
return rows describing the 2nd session "waiting" for the 1st session to
release locks... I'm stumped. Is there something I'm missing related to
Snapshot_LockWa it? Any help most appreciated.
Pete H 4 2345
>* I run a query to "select * from tableA for update" from a Quest session with autocommit turned off. Results are returned as expected * From another Quest session, "selct * from tableA". As expected, no results are returned and session "hangs" since tableA is being held exclusuively by the other uncommitted work. * I run the following query "select a.* from TABLE(SYSPROC. SNAPSHOT_LOCKWA I*T('DBNAME', -1)) as a;" and get no
rowsreturned. (DBNAME is really the database name of the AIX target database) * As soon as I issue the "commit" on 1st session, the 2nd query
returnsthe rows that were locked pending "commit".
All of the above is still true EXCEPT that I have confirmed that the
lock monitor switch is ON and the call to the table function in step 3
passes -2 as the 2nd parameter to indicate that I want lock waits
across all partitions.
I still get no results. Help!? I would really like to use this feature
to give easy access to lock wait activity for on-call support
personnel.
peteh wrote: * I run a query to "select * from tableA for update" from a Quest session with autocommit turned off. Results are returned as expected * From another Quest session, "selct * from tableA". As expected, no results are returned and session "hangs" since tableA is being held exclusuivel y by the other uncommitted work. * I run the following query "select a.* from TABLE(SYSPROC .SNAPSHOT_LOCKW AI*T('DBNAME', -1)) as a;" and get no
rows
returned. (DBNAME is really the database name of the AIX target database) * As soon as I issue the "commit" on 1st session, the 2nd query
returns
the rows that were locked pending "commit".
All of the above is still true EXCEPT that I have confirmed that the lock monitor switch is ON and the call to the table function in step 3 passes -2 as the 2nd parameter to indicate that I want lock waits across all partitions.
I still get no results. Help!? I would really like to use this feature to give easy access to lock wait activity for on-call support personnel.
Backstage says:
"you need to turn on the default monitor switches for the UDF to return
data. The UDF can't see the switches set in the CLP session."
I have no clue what that means though.... :-(
Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Hi Serge;
That makes sense. Given the monitor switch settings below, would we
incur any significant overhead by turning the "LOCK" switch on? Seems
like if the Statement and Timestamp switches are already on, the impact
would be minimal. Can you (or the the "backstage" ) confirm? Thanks very
much!
Pete H
---------------------------------------------------------------
Default database monitor switches
Buffer pool (DFT_MON_BUFPOO L) = ON
Lock (DFT_MON_LOCK) = OFF
Sort (DFT_MON_SORT) = ON
Statement (DFT_MON_STMT) = ON
Table (DFT_MON_TABLE) = OFF
Timestamp (DFT_MON_TIMEST AMP) = ON
Unit of work (DFT_MON_UOW) = OFF
Monitor health of instance and databases (HEALTH_MON) = OFF
----------------------------------------------------------------
peteh wrote: Hi Serge; That makes sense. Given the monitor switch settings below, would we incur any significant overhead by turning the "LOCK" switch on? Seems like if the Statement and Timestamp switches are already on, the impact would be minimal. Can you (or the the "backstage" ) confirm? Thanks very much!
Pete H
--------------------------------------------------------------- Default database monitor switches Buffer pool (DFT_MON_BUFPOO L) = ON Lock (DFT_MON_LOCK) = OFF Sort (DFT_MON_SORT) = ON Statement (DFT_MON_STMT) = ON Table (DFT_MON_TABLE) = OFF Timestamp (DFT_MON_TIMEST AMP) = ON Unit of work (DFT_MON_UOW) = OFF Monitor health of instance and databases (HEALTH_MON) = OFF ----------------------------------------------------------------
Backstage says impact of the monitor switch should be below 4% (erring
on the save side). I'm told that the LOCK snapshot itself will hit
though unlike the other snapshots. You will see a blip when it's taken.
Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: kittykat |
last post by:
Hey everyone,
I know this is a stupid question, BUT, i have read both the c++ books i
have at home, and have searched through several websites...but i still
can't find the answer. The question is, is there such a thing called
"Vector Table" that is already a function in C++?
By function i mean, like array.
I have written some code that would create the Vector Table, but i was
just wondering if there was a simpler way?
|
by: Arthur Shapiro |
last post by:
I'm the webmaster for a recreational organization. As part of one page of the
site, I have an HTML "Calendar at a Glance" of the organization's events for
the month. It's a simple table of a calendar, 7 across by whatever needed
down, and I manually create it each month - not a big deal.
Every day I go in and darken the background color of the current day's cell
by changing the appropriate <TD> entry to <TD bgcolor="c63800"> and...
|
by: john_williams_800 |
last post by:
Hi;
I am just starting to use the DOM to do some more advanced
javascripting so please be patient with my question if it is an
ignorant question.
I would like to use the DOM to dynamically create an html table via
javascript. While that table is being dynamically created in a
javascript function I would like to dynamically insert text and a
hyperlink with an image into each cell.
|
by: dharmadam |
last post by:
Is it possible to pass a column name or the order of the column name
in the DB2 table table function. For example, I want to update the
address of a person by passing one of the address column name like ZIP
CODE or ADDRESS LINE. I will call the function with three
parameter--UpdateAddress(5,zip_code,person_id) where 5 indicates
ZIP_CODE is the fifth column in the table. If 4 is passed, it
indicates the address line is to be updated.
...
|
by: Chris |
last post by:
I'm using ASP.NET and SQL Server and this might be an obviuos question for
most, but if I have a table that contains several fields that I need to
relate to just one field in another table, how do I do that?
I.e. Table 1 has Integer values for enteredbyID, CoordID, CustContactID
Table 2 is the contacts table with Contact_ID (integer) key. Table 1 uses
that field to bring back First and Last Name's.
So:
Table1 Table 2
| |
by: eskil |
last post by:
Hi,
I want to link products and contacts, products and axctivities and
activities and contacts. I am using one to many links with full
referential integrity. Each table is linked to a table that defines the
possible relationship between either 2 tables.
My question is: does this increase the risk for data corruption or pose
other problems that need be taken into account before plunging in?
|
by: Marty |
last post by:
Is it possible to attach a SQL Server table to Access without using a
DSN? Thanks.
|
by: Ashok |
last post by:
Hi,
I am starting a new project to build a software product using APS.NET 2.0.
In past I have used "frameset" and "frame" to build pages. My current
requirements I have coded using frameset and frame like code below.
My question is, because this is a new development is it good to use frameset
and frame or I can use some thing better. I am looking for expert suggestions
on my code below is this a good way to move or I should not use...
|
by: King Albert |
last post by:
Question :
Is it 'good design' to make an eventhandler a method of your class ?
Problem in the eventhandler below :
I need 'this' to refer to Tabel, not to the clicked element !
function Tabel(dataset, behavior) {
|
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: 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: 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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |