Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to get the current/last run SQL statement into a string variable?
Depending on your version, there is a stack of error messages and sql
available using things like ora_server_error_msg and ora_sql_txt.
Sometimes used, for example, in an ON SERVERERROR trigger.
http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#i1006519 Received on Sat Apr 07 2007 - 02:00:19 CDT