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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Trigger having knowledge of Table Name

Re: Trigger having knowledge of Table Name

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Wed, 06 Sep 2000 18:57:57 +0800
Message-ID: <39B62335.3D6E@yahoo.com>

jlipner_at_my-deja.com wrote:
>
> Is there any way for a trigger to have knowledge of the NAME OF THE
> TABLE that is being INSERTED, UPDATED, or DELETED to, without any
> outside help? We are solve this with global package level variables
> (common_pkg.table_being_processed) but this still requires the
> application to set the value right before the INSERT, UPDATE, or
> DELETE. We're looking for something that will simply tell us the table
> name (accurately, consistently) directly in the trigger, from the
> dictionary or a reserved variable or something else of the kind.
>
> Thanks
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

Possibly name your triggers in some way that includes the table and use dbms_utility.format_call_stack ...

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Wed Sep 06 2000 - 05:57:57 CDT

Original text of this message

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