472,789 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Internal Catalog Cache Lock

Raj
I created a refresh deferred MQT, and during full refresh there were 4
or 5 lock waits, all waiting on a 'S' lock on Internal Catalog Cache ?
Can some one explain how to prevent this from happening?

Jul 6 '06 #1
3 6481
Raj:

Some things to explore.....

1. db2 get snapshot for locks on <dbname>
2. Do u have any indexes on this MQT ?
3. Did u run any EXPLAIN plans on this ?
what did the plan say ? Is that doing a Table scan?
Make sure that u have tuned this particular SQL and try the REFRESH
again.
And see if the problem goes away.
Also check what other applications are doing on the BASE tables while u
are doing this REFRESH.

cheers..
Shashi Mannepalli

Jul 6 '06 #2
Raj

Hi Shashi,
All the applications waiting for locks are doing selects
Following is from the snapshot

Select:
Database partition = 1
Lock Name = 0x000000630000470365F7B0A043
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 3
Hold Count = 0
Lock Object Name = 0
Object Type = Internal Catalog Cache Lock
Mode = S
MQT:
Database partition = 1
Lock Name = 0x000100000780000065E6DA2043
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 255
Hold Count = 0
Lock Object Name = 0
Object Type = Internal Catalog Cache Lock
Mode = X

the select statement used to build the MQT is not doing a tablescan. It
is an MDC table and is using one of the dimentions in the select.
THanks,
Raj

Shashi Mannepalli wrote:
Raj:
Jul 6 '06 #3
Raj:

This is a INTERNAL CATALOG CACHE LOCK with MODE S.
DB2 has often 3 types of Internal locks

P
V
S

These will be obtained when u run a SQL against the database.

As yours is a S lock i will try to explain S mode behaviour. For rest
of the modes check the adminstration guide.

S is a sequence lock to make sure that things happen in right order to
for each agent.
For example....u cannot drop a temporary tablespace is not dropped
while somebody else is using it...etc.

Generally S mode do not lock objects but in some cases they do.
For example

If u have a declared temp table.....it will put a S lock ...on the temp
tablespace so others cannot drop it. So in this case it puts a lock on
the tempspace.

In EEE sytem this is used in APM global cache processing.

Internal S - Package Cache sequencing lock

Please refer to the ADMIN PERFORMANCE GUIDE in what other cased this
will put a LOCK like this......

So that is why i have asked you to TUNE the SQL. So at the moment of
REFRESH it will be hard to avoid this lock. So u need to work around
it...

cheers....
Shashi Mannepalli
Raj wrote:
Hi Shashi,
All the applications waiting for locks are doing selects
Following is from the snapshot

Select:
Database partition = 1
Lock Name = 0x000000630000470365F7B0A043
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 3
Hold Count = 0
Lock Object Name = 0
Object Type = Internal Catalog Cache Lock
Mode = S
MQT:
Database partition = 1
Lock Name = 0x000100000780000065E6DA2043
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 255
Hold Count = 0
Lock Object Name = 0
Object Type = Internal Catalog Cache Lock
Mode = X

the select statement used to build the MQT is not doing a tablescan. It
is an MDC table and is using one of the dimentions in the select.
THanks,
Raj

Shashi Mannepalli wrote:
Raj:
Jul 6 '06 #4

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

Similar topics

9
by: Jane | last post by:
Our db2diag.log is full of messages like this: 2004-05-31-17.15.10.383766 Instance:tminst1 Node:000 PID:394948(db2agent (TMDB1) 0) TID:1 Appid:GA140956.EF26.03A4B1202647 data management ...
3
by: Amy DBA | last post by:
Hi all, I'm not new to DB2, but I am new to Version 8. Does this mean I should increase my CATALOGCACHE_SZ ? The old diag log messages used to mention which specific parameter was causing...
6
by: Mark | last post by:
I understand the concept of catalog cache (memory allocated from the dbheap to allow catalog lookups without the need to access disk each time). But the DB2 catalog tablespace (SYSCATSPACE) is...
1
by: hype | last post by:
Hi, could anyone explain the relationship between the "Catalog cache heap" in the db2mtrk output and the database config parameter catalogcache_sz. Thanks, Hype.
4
by: Mat | last post by:
Hi, I've stumbled onto a problem when using the caching object in ASP.Net. I'm placing a static dataset to the cache as the data only changes once a day. Whilst writing to the cache I'm using...
2
by: rrossney | last post by:
Please look at the "what I've already done" section of this message before responding to it: I believe that I've done everything that the people who experience this error are typically told to do....
1
by: Ramchandra | last post by:
Hi , i am facing problem in package cache hit ratio its between 47-45% which is very less:- here are my configuration related to package cache:- Catalog cache size (4KB) ...
6
by: michael.spoden | last post by:
Hi, how can I fix lock-waits during an online backup? Is an online backup in DB2 V8.2 not realy online? I'm using DB2 V8.2 Fixpak 15 on Linux. The command to perform the backup is: db2 backup...
3
by: Frederick Tant | last post by:
DB2 V9.7 The DB is used by 1 application with no concurrent applications. I got the problem that large update/insert cause lock escalation, to solve the issue I set a lock on the table so...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.