dbTalk Databases Forums  

exclusively locked table

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss exclusively locked table in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mike7411@gmail.com
 
Posts: n/a

Default exclusively locked table - 08-11-2006 , 01:38 PM






If a table is exclusively locked and someone else tries an insert on
it, will Oracle simply wait forever for it to be unlocked before doing
the insert?

Thanks.


Reply With Quote
  #2  
Old   
Sybrand Bakker
 
Posts: n/a

Default Re: exclusively locked table - 08-11-2006 , 02:02 PM






On 11 Aug 2006 11:38:22 -0700, mike7411 (AT) gmail (DOT) com wrote:

Quote:
If a table is exclusively locked and someone else tries an insert on
it, will Oracle simply wait forever for it to be unlocked before doing
the insert?

Thanks.
Which version?
In most versions the default lock mode is
lock... wait
so the statement will wait forever.
This is typically a topic which is addressed in the Concepts Manual of
your version and which you apparently avoid to read.

--
Sybrand Bakker, Senior Oracle DBA


Reply With Quote
  #3  
Old   
DA Morgan
 
Posts: n/a

Default Re: exclusively locked table - 08-11-2006 , 03:53 PM



mike7411 (AT) gmail (DOT) com wrote:
Quote:
If a table is exclusively locked and someone else tries an insert on
it, will Oracle simply wait forever for it to be unlocked before doing
the insert?

Thanks.
What kind of lock in what version? Being accessed with what SQL statement?

Look at the variations on SELECT FOR UPDATE syntax.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.