Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to solve trigger side effects
sybrandb wrote:
> On 6 jul, 13:53, thalio..._at_graffiti.net wrote:
> > One idea would be the first trigger would set a variable in a package, > and the other trigger would read that variable. > If the variable has a specific value then don't proceed. > The package consists of a local variable, a function to get the > contents, and a procedure to set it. > > -- > Sybrand Bakker > Senior Oracle DBA
Another possibility would be something like this:
exec dbms_application_info.set_client_info('Trigger1');
set serveroutput on
DECLARE
x VARCHAR2(100);
BEGIN
dbms_application_info.read_client_info(x); dbms_output.put_line(x); dbms_application_info.set_client_info(NULL);END;
One could also use the dbms_application_info set_module, set_action, or the dbms_session.set_context. All of which would save having another object, a package, to maintain.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Fri Jul 06 2007 - 08:45:04 CDT
![]() |
![]() |