dbTalk Databases Forums  

Triggers

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Triggers in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mtek
 
Posts: n/a

Default Triggers - 06-12-2008 , 09:39 AM







Hi,

We have an update trigger on a table for some auditing purposes. Is
there a way to find the actual program that updated the underlying
table? I hope it is not like 40 lines of code.......

Thanks!

John

Reply With Quote
  #2  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Triggers - 06-12-2008 , 12:20 PM






On Jun 12, 9:39*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Hi,

We have an update trigger on a table for some auditing purposes. *Is
there a way to find the actual program that updated the underlying
table? *I hope it is not like 40 lines of code....... *

Thanks!

John
You can try this, from Tom Kyte:

http://asktom.oracle.com/tkyte/who_called_me/who.sql

And, sorry, it is about 40 lines of code to create the procedure and
function.


David Fitzjarrell


Reply With Quote
  #3  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Triggers - 06-12-2008 , 12:20 PM



On Jun 12, 9:39*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Hi,

We have an update trigger on a table for some auditing purposes. *Is
there a way to find the actual program that updated the underlying
table? *I hope it is not like 40 lines of code....... *

Thanks!

John
You can try this, from Tom Kyte:

http://asktom.oracle.com/tkyte/who_called_me/who.sql

And, sorry, it is about 40 lines of code to create the procedure and
function.


David Fitzjarrell


Reply With Quote
  #4  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Triggers - 06-12-2008 , 12:20 PM



On Jun 12, 9:39*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Hi,

We have an update trigger on a table for some auditing purposes. *Is
there a way to find the actual program that updated the underlying
table? *I hope it is not like 40 lines of code....... *

Thanks!

John
You can try this, from Tom Kyte:

http://asktom.oracle.com/tkyte/who_called_me/who.sql

And, sorry, it is about 40 lines of code to create the procedure and
function.


David Fitzjarrell


Reply With Quote
  #5  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Triggers - 06-12-2008 , 12:20 PM



On Jun 12, 9:39*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Hi,

We have an update trigger on a table for some auditing purposes. *Is
there a way to find the actual program that updated the underlying
table? *I hope it is not like 40 lines of code....... *

Thanks!

John
You can try this, from Tom Kyte:

http://asktom.oracle.com/tkyte/who_called_me/who.sql

And, sorry, it is about 40 lines of code to create the procedure and
function.


David Fitzjarrell


Reply With Quote
  #6  
Old   
DA Morgan
 
Posts: n/a

Default Re: Triggers - 06-12-2008 , 04:28 PM



Mtek wrote:
Quote:
Hi,

We have an update trigger on a table for some auditing purposes. Is
there a way to find the actual program that updated the underlying
table? I hope it is not like 40 lines of code.......

Thanks!

John
http://www.psoug.org/reference/owa_util.html
scroll down to WHO_CALLED_ME.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #7  
Old   
DA Morgan
 
Posts: n/a

Default Re: Triggers - 06-12-2008 , 04:28 PM



Mtek wrote:
Quote:
Hi,

We have an update trigger on a table for some auditing purposes. Is
there a way to find the actual program that updated the underlying
table? I hope it is not like 40 lines of code.......

Thanks!

John
http://www.psoug.org/reference/owa_util.html
scroll down to WHO_CALLED_ME.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #8  
Old   
DA Morgan
 
Posts: n/a

Default Re: Triggers - 06-12-2008 , 04:28 PM



Mtek wrote:
Quote:
Hi,

We have an update trigger on a table for some auditing purposes. Is
there a way to find the actual program that updated the underlying
table? I hope it is not like 40 lines of code.......

Thanks!

John
http://www.psoug.org/reference/owa_util.html
scroll down to WHO_CALLED_ME.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #9  
Old   
DA Morgan
 
Posts: n/a

Default Re: Triggers - 06-12-2008 , 04:28 PM



Mtek wrote:
Quote:
Hi,

We have an update trigger on a table for some auditing purposes. Is
there a way to find the actual program that updated the underlying
table? I hope it is not like 40 lines of code.......

Thanks!

John
http://www.psoug.org/reference/owa_util.html
scroll down to WHO_CALLED_ME.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.