Unix Technical Forum

Locks

This is a discussion on Locks within the DB2 forums, part of the Database Server Software category; --> Can lock be obtained for index-key?...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:32 AM
John Smith
 
Posts: n/a
Default Locks


Can lock be obtained for index-key?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:32 AM
Rhino
 
Posts: n/a
Default Re: Locks


"John Smith" <john.smith@microsoft.com> wrote in message
news:0b8qg.4096$oj5.1390516@news.siol.net...
>
> Can lock be obtained for index-key?

You _can_ lock a table via the LOCK TABLE statement but there is no LOCK
INDEX statement. DB2 will lock as much of an index as it needs to but your
application cannot specifically request a lock on an index.

--
Rhino


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 08:32 AM
Art S. Kagel
 
Posts: n/a
Default Re: Locks

John Smith wrote:
> Can lock be obtained for index-key?
>
>

Depending on isolation level and the actual index used in the query, locks
are acquired by the engine automatically as needed. There is no explicit
locking commands except at the table level.

Art S. Kagel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com