Oracle Audit on Types

auditoracle

I found that auditing can be done on oracle schema objects like procedures and views. Is there any possibility to do the auditing on Types?

Best Answer

Types can be altered, granted/revoked privileges on, so why not?

Example:

SQL> select object_type from dba_objects where object_name = 'T1';

no rows selected

SQL> create type t1 is table of varchar2(20);
  2  /

Type created.

SQL> audit all on t1;

Audit succeeded.

SQL> select * from dba_obj_audit_opts where object_name = 'T1';

OWNER                OBJECT_NAME          OBJECT_TYPE             ALT       AUD       COM       DEL       GRA       IND       INS       LOC       REN       SEL       UPD       REF EXE       CRE       REA       WRI       FBK
-------------------- -------------------- ----------------------- --------- --------- --------- --------- --------- --------- --------- --------- --------- --------- --------- --- --------- --------- --------- --------- ---------
BP                   T1                   TYPE                    A/A       A/A       -/-       -/-       A/A       -/-       -/-       -/-       -/-       -/-       -/-       -/- A/A       A/A       -/-       -/-       -/-

See DBA_OBJ_AUDIT_OPTS and AUDIT for details.