How will I know if stmnt SELECT has been issued on a specific Table?

Hello

I have a reporting environment where the tables are populated by selective information from the database of production through batch scripts. These tables have become HUGE over time and management wants to know if any user uses the table either drop them. A USER will be only matter a SELECT command and is not responsible for any INSERT/UPDATE/DELETE to query the table DBA_TAB_MODIFICATIONS is not a great help.

My question is: is there a way to know if one of these tables under the concern had been interrogated (using SELECT) in the recent past?

Thanks in advance!

Arindam

Hello

Best option is to use the audit of fine-grained and information once it is collected, you can drop this policy; Using entire audit will be an overdose.

GRANT SELECT ON dba_fga_audit_trail TO ;

grant exexute on dbms_fga to ;

declare
BEGIN

   DBMS_FGA.add_policy (object_schema => 'SCHEMA_NAME',
                        object_name => 'TABLE_NAME',
                        policy_name => 'TABLE_DML',
                        enable => TRUE,
                        statement_types => 'SELECT',
                        audit_trail => DBMS_FGA,
                        audit_column_opts => DBMS_FGA.any_columns
   );
END;
/

http://www.Oracle-base.com/articles/10G/Auditing_10gR2.php#fine_grained_auditing

Concerning

Tags: Database

Similar Questions

Maybe you are looking for