473,623 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Key Lock Hashed Resource Text Value not unique?

I have a deadlock situation, part of the problem looks like this;

spid ecid dbid ObjId IndId Type Resource Mode
Status
------ ------ ------ ----------- ------ ---- ---------------- -------
------
404 0 9 792389892 1 KEY (010086470766) SIU
WAIT
72 0 9 792389892 1 KEY (010086470766) SIU
WAIT
115 0 9 792389892 1 KEY (010086470766) SIU
WAIT
61 0 9 792389892 1 KEY (010086470766) IS
WAIT
318 0 9 792389892 1 KEY (010086470766) SIU
WAIT
430 0 9 1112391032 1 KEY (010086470766) X
GRANT

They are key locks I am used to the resource value generally being
unique by table. I am wondering if the other 'WAIT's are indeed
waiting based on the 'unique' resource value. Note that the exclusive
grant is on a different table but, the resource rsc_text value is the
same. Looking it up I get for a key lock that it's a hashed value, my
referance tells me what is is for a non-clustered index but, does not
explain what it would be for a clustered index.

Does it protect this resource based exclusively on resource rsc_text or
is it unique by ObjID/Rsc_text, has anyone seen this before?
Suggestions?

SQL Server 2000/SP3

-Chris

Jul 23 '05 #1
1 2805

Nevermind, the hash as far as I can tell is rowid/key value in this
case 1,1 and 1,1. I reproduced and was able to get exclusive lock on
two tables with same rsc_text value, so lock is unique by
ObjId/Resource (at least). I went thru the lock table again and found a
NULL lock MODE that I had missed that had a GRANT status, expanding the
script to display the expanded modes.

Thanks anyways..

Jake wrote:
I have a deadlock situation, part of the problem looks like this;

spid ecid dbid ObjId IndId Type Resource Mode
Status
------ ------ ------ ----------- ------ ---- ---------------- ------- ------
404 0 9 792389892 1 KEY (010086470766) SIU
WAIT
72 0 9 792389892 1 KEY (010086470766) SIU
WAIT
115 0 9 792389892 1 KEY (010086470766) SIU
WAIT
61 0 9 792389892 1 KEY (010086470766) IS
WAIT
318 0 9 792389892 1 KEY (010086470766) SIU
WAIT
430 0 9 1112391032 1 KEY (010086470766) X
GRANT

They are key locks I am used to the resource value generally being
unique by table. I am wondering if the other 'WAIT's are indeed
waiting based on the 'unique' resource value. Note that the exclusive grant is on a different table but, the resource rsc_text value is the
same. Looking it up I get for a key lock that it's a hashed value, my referance tells me what is is for a non-clustered index but, does not
explain what it would be for a clustered index.

Does it protect this resource based exclusively on resource rsc_text or is it unique by ObjID/Rsc_text, has anyone seen this before?
Suggestions?

SQL Server 2000/SP3

-Chris


Jul 23 '05 #2

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

Similar topics

12
10014
by: M Wells | last post by:
Hi All, I have a table that holds pregenerated member IDs. This table is used to assign an available member id to web site visitors who choose to register with the site So, conceptually the process has been, from the site (in ASP), to: - select the top record from the members table where the assigned flag
5
1900
by: MaRcElO PeReIrA | last post by:
Hi guys, I have a simple table: teste=# \d forn Table "public.forn" Column | Type | Modifiers ---------+---------+------------------------------------------------------ id | integer | not null default nextval('public.forn_id_seq'::text)
5
7948
by: xixi | last post by:
hi, i am using db2 udb v8.1 on windows, i create a index on a unique value column on a table to try to create row lock, here is what i do , sql = select value from table where id=1 for update, the auto commit is true. if the table has more than one row, i got row U lock, but if the table has only one row , i get row X lock, is this right, why is that? i would like this only create row U lock, not row X lock. thanks for advice
2
2692
by: Fernando Rodríguez | last post by:
Hi, I've been reading the multithreading tutorial at http://www.yoda.arachsys.com/csharp/threads/locking.shtml (thanks Jon :-) and there's one thing I don't understand. Why do have to pass a parameter to lock, Monitor.Enter() and Monitor.Exit()? Why is it necessary to create a new readonly variable for this purpose? (see below, counterLock)
1
3998
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ==> .txt files from .resources or .resx files. ==> .resources files from text or .resx files.
5
1933
by: Lloyd Dupont | last post by:
in an ASP.NET page I have some static method which get value for the cache or, if the cache is empty, query the database, put the value in the cache and return it. because ASP.NET is thread intensive I was thinking to lock these method, using a fine grained lock. the best lock I was thinking about was the string key in the cache! however I have one concern, these unique string might be used in other lock, could they? could this be a...
4
2151
by: Mrinal Kamboj | last post by:
Hi , I had a doubt regarding a piece of code with me , that has to do with System.Threading.Thread class . In it user instantiates an array of Thread class and to all of them assign a method for execution using ThreadStart Delegate say "worker" method . Now in the worker method there's a piece of code :
17
1997
by: djc | last post by:
I got great info on related question previously. This link <http://www.yoda.arachsys.com/csharp/threads/volatility.shtml> from Brian Gideon was especially informative. 1) the lock statement does *not* make the processor finish all code in the code block before giving another thread from your process a slice of processor time, it only makes sure other threads cannot run the same code *if* they also adhere to the same lock object....
2
20638
by: rmgalante | last post by:
I am using the standard asp.net membership provider. I have users who forget their password. They attempt to login 5 times and they get locked out. The membership configuration in web.config follows. <add connectionStringName="SomeDB" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="SomeApp" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5"...
0
8165
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8326
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8469
tracyyun
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...
0
7150
agi2029
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...
1
6106
isladogs
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...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4074
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...
0
4164
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1473
bsmnconsultancy
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...

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.