You could probably "fake" this by renaming the table or playing with synonyms, or by revoking privileges, but I don't know of a pl/sql command or procedure that can prevent a user from performing SELECT against a table. Even then, I don't think the SELECT statement will ever pause until the lock is released. It would probably just raise an error. Maybe you can convince the "user" to re-think the requirement. hth chaim
John Dunn <[EMAIL PROTECTED]>@fatcity.com on 02/14/2003 10:04:05 AM Please respond to [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]> cc: 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: [EMAIL PROTECTED] 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: [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.net -- Author: INET: [EMAIL PROTECTED] 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: [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).
