Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: RE: How to locate who dropped a view using log miner?

Re: RE: How to locate who dropped a view using log miner?

From: Mario Alberto Ramos Arellano <alramos_at_capufe.gob.mx>
Date: Wed, 08 Aug 2001 12:38:50 -0700
Message-ID: <F001.00364E67.20010808123257@fatcity.com>

Sure I have. The thing is, what can you do when you get someone else's databases which are in 8.0.6 and had no auditing when "something happened" ? - BTW I would like to know what you DBAs do when you experience something like this. -

To me, blaming others for not doing what it is supposed to is not an option. So I find myself into this oracle internal task which, BTW, I highly recomment to take a look at. It's not that easy, but if you want to get Jonathan or Joe's oracle internal knowledge is worth doing it.

Salu2
Mario Alberto Ramos

>>> ian_at_SLAC.Stanford.EDU 08/08/01 07:40 AM >>>
Have you thought of writing a trigger to capture the drops. See chapter 13 Of the Application Developers Guide Fundamentals

Ian

-----Original Message-----
Sent: Tuesday, August 07, 2001 8:11 PM
To: Multiple recipients of list ORACLE-L

Hi listers,

I know most of you will advice me to turn audit on, but I like the hard way better. I've been able to locate who drops tables based on dml operations on fixed tables. According to note 93370.1 from Oracle, the hint for locating who dropped a table is to look for a DELETE operation on SYS.COL$, SYS.OBJ$ and SYS.TAB$. I.e, SQL> select scn from v$logmnr_contens
2 where operation = 'DELETE' and seg_name = 'COL$' 3 intersect
4 select scn from v$logmnr_contents
5 where operation = 'DELETE' and seg_name = 'OBJ$' 6 intersect
7 select scn from v$logmnr_contents
8 where operation = 'DELETE' and seg_name = 'TAB$';

After this, I will get the SCN that holds drop table statements.



Challenge Question, how can I identify DROP VIEW, DROP INDEX, DROP PROCEDURE and alike, from DROP TABLE statements?

I know this s a question related to oracle internal values so any help would be greatly appreciated.

Salu2

Mario Alberto Ramos

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Mario Alberto Ramos Arellano
  INET: alramos_at_capufe.gob.mx

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_at_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: MacGregor, Ian A.
  INET: ian_at_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_at_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: Mario Alberto Ramos Arellano
  INET: alramos_at_capufe.gob.mx

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_at_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).
Received on Wed Aug 08 2001 - 14:38:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US