RE: Recording Destructive DDL

2001-06-11 Thread Hillman, Alex
You are getting current SQL but you need to go thru all SQL for this session to find out if there was alter table drop (column). Alex Hillman Original Message- Sent: Wednesday, June 06, 2001 9:36 PM To: Multiple recipients of list ORACLE-L Obtaining the triggering statement is beyond my

RE: Recording Destructive DDL

2001-06-06 Thread MacGregor, Ian A.
Obtaining the triggering statement is beyond my ken. If I use a "before" trigger and a cursor, select lower(replace( q.sql_text,' ',null)) from v$sql q, v$sql_cursor c, v$session s where s.audsid=audsid and s.prev_sql_addr=q.address and q.address=c.parent_handle; . I get back select low

RE: Recording Destructive DDL

2001-06-06 Thread Hillman, Alex
Also is there any view where I can see statements like create or drop schema object. In v$sqlarea I cannot see this type of DDL. I can see alter schema object. It is 8.1.7 Solaris As to the question - I did not try it but if owner of the trigger has access to$sqlarea you can inside trigger query

Re: Recording Destructive DDL

2001-06-05 Thread Saurabh Sharma
hi, can u tell me, how have u done this. i too require it. can u explain it. saurabh - Original Message - To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]> Sent: Wednesday, June 06, 2001 7:16 AM > I've written a system event trigger which records information on when a tabl