Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Audit ddl on schema objects

Jerome FerrettiNov 24 2011 — edited Nov 25 2011
Hello,

I want to audit all DDL commands from all users on all objects within a schema .

I think .. The best way is to use a triggger like :

under sys user:

CREATE TABLE AUDIT_DDL ... ;

CREATE OR REPLACE TRIGGER after ddl
ON toto.SCHEMA
begin
...
insert into audit_ddl....
..
end;


then i connect with toto and create a table .

I can see my create statment.

But if i create a table in schema toto with another user like SYS or SYSTEM i can't see the create statement..

Could you please help me?

any idea?

CAn i use an audit trail function instead of this trigger? (i think no..)

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2011
Added on Nov 24 2011
7 comments
1,447 views