dbms_utility.format_call_stack
April 30, 2008 - 6pm Central time zone
Reviewer: M. Rogel from http://tinyurl.com/4uaw4w
he just could use dbms_utility.format_call_stack in the trigger ?
Followup April 30, 2008 - 8pm Central time zone:
if they wanted to see who called them (probably a program, not even plsql, so it would be "empty")
they want SQL, the actual "delete"
ok
April 30, 2008 - 6pm Central time zone
Reviewer: M. Rogel from http://tinyurl.com/4uaw4w
he wants to see the sql and not the call stack, i see
Followup April 30, 2008 - 8pm Central time zone:
doh, I should have read ahead :) you caught that yourself.
Alternative
April 30, 2008 - 9pm Central time zone
Reviewer: A reader from Sydney, Aus
Why not use ORA_SQL_TXT in the trigger ?
v$open_cursor may miss a delete through a view or a synonym, or a delete resulting from a foreign
key 'on delete cascade'
http://download-west.oracle.com/docs/cd/A97630_01/appdev.920/a96590/adg14evt.htm#1005274
Followup April 30, 2008 - 10pm Central time zone:
because ora_sql_txt is only for system event triggers, not dml triggers.
but valid comment on the view/synonym
capture all deletes - %DELETE%
|