Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to locate who dropped a view using log miner?
<SPAN
class=470224309-08082001>Hi
<SPAN
class=470224309-08082001>
I dont
find any records in v$logmnr_contents even if i dropped tables /views. Should i
enable any parameter and restart db to get records.
<SPAN
class=470224309-08082001>
<SPAN
class=470224309-08082001>srinivas
<FONT face=Tahoma
size=2>-----Original Message-----From: Nick Wagner
[mailto:Nick.Wagner_at_quest.com]Sent: Tuesday, August 07, 2001 9:06
PMTo: Multiple recipients of list ORACLE-LSubject: RE:
How to locate who dropped a view using log miner?
take a look at the
sys.ind$ table for indexes sys.view$
for views sys.source$ for stored procedures
HTH
Nick Wagner Quest Software
www.quest.com
-----Original Message----- From: Mario
Alberto Ramos Arellano [<A
href="mailto:alramos_at_capufe.gob.mx">mailto:alramos_at_capufe.gob.mx]
Sent: Tuesday, August 07, 2001 4:31 PM <FONT
size=2>To: Multiple recipients of list ORACLE-L <FONT
size=2>Subject: How to locate who dropped a view using log miner?
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 the
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 <FONT
size=2> 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$' <FONT
size=2> 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.
![]() |
![]() |