473,382 Members | 1,441 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,382 software developers and data experts.

internal lock

can someone explain to me what is internal p lock, internal s lock,
internal v lock? when i have IS lock or IX lock , i always have these
internal locks together for the application handle

Application handle = 261
Application ID =
AC100482.GD3A.00F85FE51898
Sequence number = 0006
Application name = db2jccmain
Authorization ID = WCADMIN
Application status = UOW Waiting
Status change time = Not Collected
Application code page = 1208
Locks held = 1
Total wait time (ms) = Not Collected

List Of Locks
Lock Name = 0x5359534C564C303153304E4441
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 0
Object Type = Internal P Lock
Mode = S
Nov 12 '05 #1
3 9473
They are used by IBM developer or support people. You don't need worry
about them.

xixi wrote:
can someone explain to me what is internal p lock, internal s lock,
internal v lock? when i have IS lock or IX lock , i always have these
internal locks together for the application handle

Application handle = 261
Application ID =
AC100482.GD3A.00F85FE51898
Sequence number = 0006
Application name = db2jccmain
Authorization ID = WCADMIN
Application status = UOW Waiting
Status change time = Not Collected
Application code page = 1208
Locks held = 1
Total wait time (ms) = Not Collected

List Of Locks
Lock Name = 0x5359534C564C303153304E4441
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 0
Object Type = Internal P Lock
Mode = S


Nov 12 '05 #2
Actually these locks are part of the general execution of DB2.

A p-lock is a lock on the package cache:
Any execution of SQL, whether static or dynamic, must be done while holding a 'package lock'. This ensures that no-one can drop the package that is being executed.

A v-lock is a variation lock :
Any execution of dynamic SQL is done via an entry in the SQL cache known as a variation. In order to ensure that the variation remains valid during the execution, V locks are acquired on behalf of the entry.

An s-lock is a sequence lock:
Not sure if I am allowed to tell you what it is used for :)

--

Bob
Consulting I/T Specialist
IBM Toronto Lab
IBM Software Services for Data Management
[My comments are solely my own and are not meant to represent an official IBM position - ask my cat!]
"Fan Ruo Xin" <fa*****@sbcglobal.net> wrote in message news:3F**************@sbcglobal.net...
They are used by IBM developer or support people. You don't need worry
about them.

xixi wrote:
can someone explain to me what is internal p lock, internal s lock,
internal v lock? when i have IS lock or IX lock , i always have these
internal locks together for the application handle

Application handle = 261
Application ID =
AC100482.GD3A.00F85FE51898
Sequence number = 0006
Application name = db2jccmain
Authorization ID = WCADMIN
Application status = UOW Waiting
Status change time = Not Collected
Application code page = 1208
Locks held = 1
Total wait time (ms) = Not Collected

List Of Locks
Lock Name = 0x5359534C564C303153304E4441
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 0
Object Type = Internal P Lock
Mode = S


Nov 12 '05 #3
Hi Bob

Just wondering - is there ANYTHING that I can do to lower the amount of Internal P Locks I find in a system?

I found a place where it states:
"Internal P locks are package locks. An application will have an S (shared lock) lock whenever that application is using the package. A rebind can not be done while the package is in use, so at that time a rebind will wait to acquire an X (exclusive) lock.".
and
"These locks are freed when the SQL statement is committed. "

I am not doing any binding/rebinding on the system. I tend to have a couple of packagecache overflows. Do not know if these are related? Or is it just the frequency of which these transactions are initiated that causes the P locking?

Thanks for any insight on how to avoid this.

Best regards - Ole
Actually these locks are part of the general execution of DB2.

A p-lock is a lock on the package cache:
Any execution of SQL, whether static or dynamic, must be done while holding a 'package lock'. This ensures that no-one can drop the package that is being executed.

A v-lock is a variation lock :
Any execution of dynamic SQL is done via an entry in the SQL cache known as a variation. In order to ensure that the variation remains valid during the execution, V locks are acquired on behalf of the entry.

An s-lock is a sequence lock:
Not sure if I am allowed to tell you what it is used for :)

--

Bob
Consulting I/T Specialist
IBM Toronto Lab
IBM Software Services for Data Management
[My comments are solely my own and are not meant to represent an official IBM position - ask my cat!]
"Fan Ruo Xin" <fanruox@sbcglobal.net> wrote in message news:3F95E997.41D9E74@sbcglobal.net...
They are used by IBM developer or support people. You don't need worry
about them.

xixi wrote:
[color=blue]
> can someone explain to me what is internal p lock, internal s lock,
> internal v lock? when i have IS lock or IX lock , i always have these
> internal locks together for the application handle
>
> Application handle = 261
> Application ID =
> AC100482.GD3A.00F85FE51898
> Sequence number = 0006
> Application name = db2jccmain
> Authorization ID = WCADMIN
> Application status = UOW Waiting
> Status change time = Not Collected
> Application code page = 1208
> Locks held = 1
> Total wait time (ms) = Not Collected
>
> List Of Locks
> Lock Name = 0x5359534C564C303153304E4441
> Lock Attributes = 0x00000000
> Release Flags = 0x40000000
> Lock Count = 1
> Hold Count = 0
> Lock Object Name = 0
> Object Type = Internal P Lock
> Mode = S[/color]
Feb 9 '06 #4

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

Similar topics

0
by: Bruce Pullen | last post by:
DB2 v7.2 (FP7 - DB2 v7.1.0.68) on AIX 5.2.0.0. We're seeing unexpected single row (then commit) insert locking behaviour. We're seeing Applications that already hold row-level W locks in...
7
by: Sunny | last post by:
Hi, I can not understend completely the lock statement. Actally what is locked: 1. the part of the code between {...} or 2. the object in lock() In the docs is written: for 1: The lock...
0
by: Nashat Wanly | last post by:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaskdr/html/askgui06032003.asp Don't Lock Type Objects! Why Lock(typeof(ClassName)) or SyncLock GetType(ClassName) Is Bad Rico...
6
by: Damien Sawyer | last post by:
Hello - I'm having a serious problem with IIS on Windows XP pro. Whenever I try to run ASP pages, I get HTTP 500 - Internal server error This behaviour happens identically, on two 'totally...
2
by: mike_li | last post by:
On Window 2000 Professional Server DB2 UDB Level: DB2 code release "SQL07029" with level identifie "030A0105" and informational tokens "DB2 v7.1.0.98", "n040510" and "WR21337". In the...
0
by: db2group88 | last post by:
Hi, we are using db2 v8.2 on windows , EE edition. Sometimes while i execute Create Table like oldTable to try to create a copy table, i got sql error 911 with dead lock message, but when i do...
3
by: Raj | last post by:
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?
2
by: shenanwei | last post by:
DB2 V8.2 on AIX, type II index is created. I see this from deadlock event monitor. 5) Deadlocked Connection ... Participant no.: 2 Lock wait start time: 09/18/2006 23:04:09.911774 .........
94
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.