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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Serialize access to tables

Re: Serialize access to tables

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 24 Oct 2000 20:42:37 -0000
Message-ID: <972420508.26100.0.nnrp-02.9e984b29@news.demon.co.uk>

It depends on how you want to use the mutex.

Have a look at the dbms_lock package, this may help to do what you want without even creating a table.

--

Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Shelby Cain wrote in message ...

>Is there any way to lock a table (Oracle 8.0.x or 8.1.x) such that only one
>session at a time could access it (even for just reading)? I need to be
>able to implement some sort of mutex in PL/SQL and this is driving me crazy
>as it seems I can lock a table to deny writes to other sessions -- but that
>does little good for me if I'm updating a value and before I've committed
it
>another session reads the old value.
>
>Any help or suggestions would be appreciated.
>
>Regards,
>
>Shelby Cain
>
>
Received on Tue Oct 24 2000 - 15:42:37 CDT

Original text of this message

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