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

Home -> Community -> Usenet -> c.d.o.misc -> ORA-04091 - PL/SQL sleep procedure

ORA-04091 - PL/SQL sleep procedure

From: Ned Wilson <nwilson_at_bdsinc.com>
Date: 1998/06/27
Message-ID: <MPG.ffefa2c55006582989683@news.connix.com>#1/1

Good afternoon.

I have run into the venerable mutating tables error, and I have been on the internet and read the documentation, and fixed the problem. When I changed the trigger so that it no longer referenced the table being updated, it caused another problem with our employee timesheets. So, I had to put the code back into place, mutating tables be damned.

What I am trying to do is this: I simply want to do a select count(*) statement to count the number of records matching several constraints. Unfortunately, this table is in the process of being updated by yet another trigger, hence the mutate table error.

Is there a way to tell if the offending trigger has completed firing, and committed its changes? If not, is there a PL/SQL equivalent of the sleep command? If there was a way to make the select statement wait until all previous modifications are complete, it would make my life a whole lot easier.

Thanks in advance.

Ned Wilson
In-House Developer
Business Data Services, Inc. Received on Sat Jun 27 1998 - 00:00:00 CDT

Original text of this message

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