Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Table locking

Re: Table locking

From: Ken Gaul (06) <ken_at_gaul-edin.freeserve.co.uk>
Date: Fri, 07 Jan 2000 15:39:53 +0000
Message-ID: <387608C9.15FBA732@gaul-edin.freeserve.co.uk>


Bret wrote:

> I am using Oracle 8.0.5.
> I need to lock an individual table, not only to updates but to queries.
> I cannot find a way to make the server queue queries to a table while I
> am updating it (before I commit the changes). Currently the database
> will queue updates to a table, but will allow queries.
>
> I do not need this behavior for every table, just a few particular
> ones. Could anyone give me any information or hints as to how to
> accomplish this? The documentation is unclear, and I couldn't find this
> question at orafaq.com. Thanks for any help.
>
> Bret

I don't mean to be picky but why do you need to do this. Oracle provides a read consistent view for all queries while your update is running anyway. As long as the changes are broken into logical transactions correctly there shouldn't really be a problem.

Ken. Received on Fri Jan 07 2000 - 09:39:53 CST

Original text of this message

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