Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: locking tables
Kris:
There is no native way of doing this. You would need to write your own data-access methods -- maybe a stored procedure that returns a ref-cursor. The procedure would attempt to lock a table before performing the select. The DML operations on the table would have to lock the same table before the operation can proceed.
Hope this helps
Kevin
-----Original Message-----
Sent: Monday, February 12, 2001 2:31 PM
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).
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 - 07:16:39 CST