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

Home -> Community -> Usenet -> c.d.o.server -> Re: Locks rows

Re: Locks rows

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Mon, 20 Jan 2003 12:06:51 -0000
Message-ID: <3e2be65b$0$240$ed9e5944@reading.news.pipex.net>


"Norman Dunbar" <Norman.Dunbar_at_lfs.co.uk> wrote in message news:E2F6A70FE45242488C865C3BC1245DA7033105D2_at_lnewton.leeds.lfs.co.uk...
> select whatever
> from tablename
> where condition
> FOR UPDATE;
>
> Now, if there are no locks on those rows, you have selected and locked
> them. When you rollback or commit, the locks will be released. As usual,
> the where clause is optional, but if you want to lock the entire table
> you could use :

That doesn't stop what Francky asked for, which is a second session selecting those rows. It may of course do the job he actually wants.

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer

******************************************
Received on Mon Jan 20 2003 - 06:06:51 CST

Original text of this message

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