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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: lock modes

Re: lock modes

From: Eric D. Pierce <PierceED_at_csus.edu>
Date: Thu, 12 Apr 2001 10:20:19 -0700
Message-ID: <F001.002E861C.20010412100627@fatcity.com>

Partial answer only:

See below for a code example (something I use to irritate users if run during normal data enty times!).

It shows how how to lock a table for "mass update" while running in SQL*plus (amazing enough, it was probably originally found in an Oracle manual).

Regards,
Eric

---begin---

    whenever sqlerror exit sql.code ;
    lock table STUDENT_MASTER in exclusive mode nowait ;     whenever sqlerror continue ;

---end---

On 12 Apr 2001, at 9:26, Bunyamin K.Karadeniz wrote:

Date sent:              Thu, 12 Apr 2001 09:26:40 -0800
To:                     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>

> Can anyone explain the lock modes written below.What do they mean . And how will I
>open the lock?
> Regards
>
> Exclusive
> Row Excl.
> None

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Eric D. Pierce
  INET: PierceED_at_csus.edu

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 Thu Apr 12 2001 - 12:20:19 CDT

Original text of this message

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