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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).