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

Home -> Community -> Mailing Lists -> Oracle-L -> OT: My no weekly tip ddl auditing

OT: My no weekly tip ddl auditing

From: Juan Cachito Reyes Pacheco <jreyes_at_dazasoftware.com>
Date: Fri, 30 Apr 2004 15:59:43 -0400
Message-ID: <005c01c42eed$b58dea40$2501a8c0@dazasoftware.com>


( the reason to change the name is because mladlen asked not to do weekly tips, so from now I do no weekly tips)

Hi, to create triggers for ddl auditing, to know who was the responsible to create the table test or drop the table sensitive_data

 you can create database trigger

CREATE OR REPLACE TRIGGER SYS.TGR_DROP
 AFTER
 DROP
 ON DATABASE
BEGIN
END;
/

CREATE OR REPLACE TRIGGER SYS.TGR_CREATE  AFTER
 CREATE
 ON DATABASE
BEGIN
END;
/

To get the object information you can use

DBMS_STANDARD.LOGIN_USER,SYSDATE,
DBMS_STANDARD.DICTIONARY_OBJ_NAME,
DBMS_STANDARD.dictionary_obj_type



Here is an example
http://www.odtug.com/2000papers/cassidy.pdf

Juan Carlos Reyes Pacheco
OCP
Database 9.2 Standard Edition



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Apr 30 2004 - 15:00:59 CDT

Original text of this message

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