Audit FGA_LOG $ table cleanup

DB 11.2.0.4, audit table after Oracle 12c is automatically partitioned according to time slice

 

Partitioning The AUD$ Table (Doc ID 1379831.1)    

Is it supported to partition the SYS.AUD$ table?
No. Oracle does not support the partitioning of AUD$ in 11g or any of the previous releases. This is because of the architectural
dependencies on these tables. If these tables are partitioned then you risk to encounter the following errors : ORA
-00600: internal error code, arguments: [kcbgtcr_1], [0], [0], [1], [620], [], [], [] ORA-07445: exception encountered: core dump [kgiopn()+1536] [SIGSEGV] [Invalid permissions for mapped object] [0x000000040] [] [] Note: New 12c CLI audit trails (Unified audit trail tables) are time partitioned and there is no plan to support partitioning of
existing audit trail (aud$ and fga_log$) tables

Database version 11G

Audit parameter DB

Query system table space, segment 50G is FGA_LOG $ table

How to cleanup the log table FGA_LOG $? (Doc ID 402528.1 )     
SQL > truncate table fga_log $; 
Table truncated. 
SQL > delete from fga_log $ where timestamp # <sysdate- 14 ; 

Actually no operation, plan to stop the database and close the database audit function After cleaning up the audit base table.

--In the 11G version, it is recommended to turn off the audit option.

alter system set audit_trail='none' scope=spfile sid='*';

 

Guess you like

Origin www.cnblogs.com/lvcha001/p/12744614.html