Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Delete of child-entry locks father-table
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