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 -> Re: retrieving the location of a database trigger call..

Re: retrieving the location of a database trigger call..

From: sybrandb <sybrandb_at_gmail.com>
Date: 27 Apr 2007 03:49:50 -0700
Message-ID: <1177670989.957471.224660@t38g2000prd.googlegroups.com>


On Apr 27, 12:22 pm, Nigel Curtis <cn_cur..._at_runbox.com> wrote:
> Hi - in a 10g Oracle 'Before Insert or Update' trigger is there any
> way of find the source of the insert/update...? That is, the name of
> any background process, SQL*Plus script or form which may have done
> the insert/update..?
>
> If such information isn't lost I'd like to try and use it as a
> condition within the trigger but can't see any way of retrieving it.
>
> many thanks, nigel

There are numerous attributes you can retrieve using the SYS_CONTEXT function.
One of them is MODULE. This is the module you can set using DBMS_APPLICATION_INFO. Hth

--
Sybrand Bakker
Senior Oracle DBA
Received on Fri Apr 27 2007 - 05:49:50 CDT

Original text of this message

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