Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h1EKX5o25602
 for <oracle-l@orafaq.net>; Fri, 14 Feb 2003 14:33:05 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h1EKX3Q25590
 for <oracle-l@orafaq.net>; Fri, 14 Feb 2003 14:33:04 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id JAA88252;
 Fri, 14 Feb 2003 09:16:39 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 0054DCB3; Fri, 14 Feb 2003 08:48:53 -0800
Message-ID: <F001.0054DCB3.20030214084853@fatcity.com>
Date: Fri, 14 Feb 2003 08:48:53 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Jay Hostetter" <jhostetter@decommunications.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Jay Hostetter" <jhostetter@decommunications.com>
Subject: Re: Lock table and disallow select
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit

I agree with Raj - why does your user want to do this?  Nobody will see the changes until a commit occurs anyway.




Jay Hostetter
Oracle DBA
D. & E. Communications
Ephrata, PA  USA

>>> john.dunn@sefas.co.uk 02/14/03 10:04AM >>>
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@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@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).





**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the use of the individual or entity to which they are addressed and may contain information that is privileged, proprietary and confidential. If you are not the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received this communication in error, please notify the sender and delete this e-mail message. The contents do not represent the opinion of D&E except to the extent that it relates to their official business.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jay Hostetter
  INET: jhostetter@decommunications.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@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).

