Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Lock table and disallow select

RE: Lock table and disallow select

From: STEVE OLLIG <sollig_at_lifetouch.com>
Date: Fri, 14 Feb 2003 08:59:17 -0800
Message-ID: <F001.0054DD30.20030214085917@fatcity.com>


FWIW - this locking scheme is different than some of Oracle's competition. in SQL Server & Sybase writes can block reads. even on those platforms locks should be at the block or row level, but can escalate to the entire table. but reads do wait for writes to complete. at least it used to be that way.

so perhaps the solution for John's duhveloper is to use a different DBMS? ;)

-----Original Message-----
Sent: Friday, February 14, 2003 9:44 AM
To: Multiple recipients of list ORACLE-L

In Oracle writers do not block readers so even locking the table won't do it. You could rename the table and do your work on it under the new name.

Allan

-----Original Message-----
Sent: Friday, February 14, 2003 9:04 AM
To: Multiple recipients of list ORACLE-L

Query from user. can the following be done in PL/SQL?

> I need to be able to lock a table in such a way that not only can no
> other session alter any records in the table, but they cannot read the

> table at all (i.e. do SELECTs on it) until I'm done with it.
>
> Any SELECT statements would pause until I release the lock.
>
> Is such a thing possible?

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: John Dunn
  INET: john.dunn_at_sefas.co.uk

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the
message BODY, include a line containing: UNSUB ORACLE-L (or the name of
mailing list you want to be removed from).  You may also send the HELP
command for other information (like subscribing).



____________________________________________________________________________
__
This email is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information.
Copying, forwarding or distributing this message by persons or entities
other than the addressee is prohibited. If you have received this email in
error, please contact the sender immediately and delete the material from
any computer.  This email may have been monitored for policy compliance.
[021216]

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Nelson, Allan
  INET: anelson_at_midf.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: STEVE OLLIG
  INET: sollig_at_lifetouch.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Feb 14 2003 - 10:59:17 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US