From Alex.Hillman@usmint.treas.gov Wed, 06 Jun 2001 09:38:10 -0700
From: "Hillman, Alex" <Alex.Hillman@usmint.treas.gov>
Date: Wed, 06 Jun 2001 09:38:10 -0700
Subject: RE: Recording Destructive DDL
Message-ID: <F001.0031E392.20010606075133@fatcity.com>
MIME-Version: 1.0
Content-Type: text/plain


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 v$sqlarea for current session and
check if there are any alter... drop statements. Strange that oracle does
not provide SQL statement as one of the trigger attributs.

Alex Hillman  

-----Original Message-----
Sent: Tuesday, June 05, 2001 9:46 PM
To: Multiple recipients of list ORACLE-L


I've written a system event trigger which records  information on when a
table was dropped or truncated.   I would also like 
to record when  someone does an "alter table drop column..."  The problem is
determining when the alter statement includes  the drop column clause.  It
looks like I have to use the ora_is_drop_column function, calling it for
each column in the table and checking the return code.  Is there a way of
determing whether "drop column" was issued without using this function?

Ian MacGregor
Stanford Linear Accelerator Center
ian@slac.stanford.edu
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: MacGregor, Ian A.
  INET: ian@SLAC.Stanford.EDU

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Hillman, Alex
  INET: Alex.Hillman@usmint.treas.gov

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


