I'm fairly new at PL-SQL, so forgive mi if this question sounds
stupid...
I'm trying to write a trigger on a certain table. Is it possible to
retrieve the name of that table within the code of it's trigger?
My goal is to write a code for universal trigger (it would do the same
thing on all tables). That trigger would call a procedure and pass the
name of it's parent table as a parameter.
Hello, I'm fairly new at PL-SQL, so forgive mi if this question sounds stupid... I'm trying to write a trigger on a certain table. Is it possible to retrieve the name of that table within the code of it's trigger? My goal is to write a code for universal trigger (it would do the same thing on all tables). That trigger would call a procedure and pass the name of it's parent table as a parameter. Regards, Taras
Look at the ORA_DICT_OBJ_NAME system event environment variable. You
will find it documented at http://tahiti.oracle.com and a live demo
in Morgan's Library at www.psoug.org.
--
Daniel Morgan
University of Washington
Puget Sound Oracle Users Group
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service