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: locking tables

RE: locking tables

From: Mark Leith <mark_at_cool-tools.co.uk>
Date: Tue, 13 Feb 2001 02:29:21 -0800
Message-ID: <F001.002B2473.20010213020025@fatcity.com>

You can lock a table with:

lock table scott.emp in exclusive mode

This should lock that table for the session you are in, not sure what permissions you need for it though?

Mark

-----Original Message-----
Sent: Monday, February 12, 2001 07:31
To: Multiple recipients of list ORACLE-L

hi list,

how can you prevent another session from selecting from the table until your update has committed?

we have a procedure that is querying and updating the table as one transaction. theoretically, we'd like to prevent any other session from accessing that table.

is this possible? we cannot limit the oracle account to one session. many sessions need to be open since this is an ecommerce database application.

we are running oracle 8.1.6 on solaris.

thanks!
kris

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Kris Austin
  INET: kaustin_at_advance.net

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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.com -- Author: Mark Leith INET: mark_at_cool-tools.co.uk Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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 Tue Feb 13 2001 - 04:29:21 CST

Original text of this message

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