473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

BIZZARE MQT-BASE Table Locking Behaviour

I have come across a bizzare behaviour with DB2/UDB 8.2 on SuSE Linux
2.41

When I have a MQT Refresh going on (complete refresh) it appears to
lock the underlying base tables used to build the MQT.

When I attempt to SELECT these tables in other sessions, it simply
refuses to yield and are waiting for the MQT to finish.

Any clues ? Is this the intended behaviour?

With capability for Rollback and Read Consistency that DB2 does not
have (in comparison to Oracle), it appears to be reasonable behaviour
if extremely annoying behaviour.

If I could not have a incremental refresh, let me know how to get this
MQT refreshed short of having to have it USER MANAGED.

Nov 12 '05 #1
1 2241
Even more bizarre is the following behaviour:

First let me out line the situation.

Session A of the DB2 command line has REFRESH TABLE statement running
on a MQT (based on a join of several tables)

Session B of the DB2 CLP (with or without Auto commit options)
ISSUES
a) SELECT on one of the tables that the MQT is based off
The command line does not return and the session appears to be
locked because the MQT holds a lock (this we verified by checking the
locks/waits on the system)

b) I issued a CONTROL-C on this Session B, it displayed the data
for SELECT

c) I issued the statement again...IT displayed the data for the
SELECT with no hesitation (Locks held by the MQT disappared on the base
table).

d) I terminated session, started a new session and issued the same
select, it returns all the rows for the SELECT with no locks.

e) The SELECT on the table where the CONTROL-C was issued returned
results after this point, even though the MQT was still running.

I could repeat the same behaviour for all the tables in the MQT.
Here is my concern:

The Locking of the Base tables I can sympathise with

But how can a CONTROL-C issued in a session waiting for Locks
to be released, release the locks in the Holding session.

Simply beyond me.

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Paul Reddin | last post by:
Hi, I am trying to investigate if some of our fairly complex views couldn't be materialised with MQT's. Unfortunately the error message returned when the fullselect is invalid is as shown at...
4
by: rajesh.balu | last post by:
I created a MQT defined as: select a.col1,a.col2,a.col3,b.col1.b.col2 from a , b where a.id = b.id Now, I execute this query which get rewritten to the MQT: select a.col1,b.col1, c.val from...
7
by: Martin Pritchard | last post by:
Hi, Sorry for my ignorance, but I'm a bit new to C++. I've been handed over a C++ app written in VS2002 which I have to convert to VS2005. Apparently it's been written in a C style, but cannot...
8
by: Michael.Guppenberger | last post by:
Hello everyone, I am currently trying to create a materialized query table which should be in-sync all the time. So my first attempt was to use the "REFRESH IMMEDIATE" option of the create table...
0
by: daniel.stahr | last post by:
Hi, I figured out that MQT's can not perform outer joins if you choose refresh immediate. Does anybody know if this feature is planned for any future fixpacks or versions? If not, any ideas for...
1
by: Toralf =?utf-8?q?F=C3=B6rster?= | last post by:
We tried to use MQT in our environment, but with the biggest MQT we always run into this problem: DB21034E The command was processed as an SQL statement because it was not a valid Command Line...
2
by: BD | last post by:
Hi, all. I'm trying to implement a REFRESH IMMEDIATE MQT to help with performance of a particularly sluggish query. I cannot create it with REFRESH IMMEDIATE, because of reason code "10",...
11
by: peter | last post by:
I am trying to get a SQL stored procedure to use user maintained MQT implicitly which raises questions on when they are used or not used. In theory you would expect the stored procedure to pick up...
3
by: uwcssa | last post by:
i have two questions: 1. A query plan only shows estimated cost and size at each operator. is it possible to show the actual cost/cardinality of each plan operator after running the query? 2....
1
by: uwcssa | last post by:
I am runnig v95. I have a query "select * from A, B where B.b<2000" I create a MQT as "select * from A,B where B.b<2000" (identitcal to the query), and the optimizer will use this MQT to...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.