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: Delete of child-entry locks father-table

Re: Delete of child-entry locks father-table

From: <hasta_l3_at_hotmail.com>
Date: 9 Dec 2006 23:45:16 -0800
Message-ID: <1165736716.858403.144580@l12g2000cwl.googlegroups.com>


DA Morgan a écrit :

> hasta_l3_at_hotmail.com wrote:
>
> > As I get it,
> > the OP wanted to manually lock in exclusive mode some
> > configuration (or definition or type) tables, to prevent concurrent
> > changes by two users - not a completely stupid idea, IMO.
>
> Couldn't that be accomplished simply with SELECT FOR UPDATE?

Well, I think that the goal of the OP was to understand what was going on, and that goal has been achieved by now, AFAICS.

As for a solution, I dont think that we have enough information to suggest one.

This said, I for sure doesnt have a very satisfying way to prevent concurrent inserts in the configuration table (in the OP situation)

I guess that a dbms_lock enforced by a trigger may do the trick, but that hardly qualifies as an elegant solution, when there are many tables to lock.

I would be very interested to hear of better ones.

Cheers

Received on Sun Dec 10 2006 - 01:45:16 CST

Original text of this message

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