Re: nowait cursors in triggers
Oh dear... How obvious ...what a goose I am
Chalk up another pebkac problem for me...
(pebkac =3D "problem exists between keyboard and chair")
On 6/9/05, Khemmanivanh, Somckit <somckit.khemmanivanh@(protected)=
> I'm no trigger expert and may be way off, but...
> Just trying to work out the event flow here...
> Session 1 deletes where x =3D 1 (this sets the lock on this row), then th=
> trigger fires and locks the remaining rows
> Session 2 tries to delete where x =3D 2, but Sess 1's trigger would have
> acquired a lock on this row, thus session 2 waits.
> To me the trigger for session 2 would not have fired yet since it's
> being blocked on the delete process. The trigger is an AFTER delete
> trigger but the delete never gets a chance to complete due to the lock
> acquired by the first trigger.
> Sess 2's select ... for update nowait statement never gets a chance to
> execute...By the way is there a way to check if a trigger has fired?
> Feel free to correct me if I'm way off.
"Semper in excremento, sole profundum qui variat"