Home » RDBMS Server » Server Administration » get sql_text within trigger
get sql_text within trigger [message #370040] Mon, 04 December 2000 13:05
Jasmine
Messages: 23
Registered: December 2000
Junior Member
Now I'm meeting a trouble and really need some help. My task is : keep track of
changes of oracle db tables and write into a dbm file only the exact sql statement that did the change.

I know how to get the old and new values by new.column_name and old.column_name. But I just need the original dml statement that fire my trigger. I can use "select sql_text from v$open_cursor" get some sql statement but not suitable for this sutiation.

Can any body here tell me if it is possible for capturing the whole sql text in my trigger script? Thank you in advance and any help will be appreciated.
Previous Topic: Is there a query for this case?
Next Topic: Re: storing time and date
Goto Forum:
  


Current Time: Wed May 01 18:57:44 CDT 2024