zoukankan      html  css  js  c++  java
  • 审计 FGA_LOG$表清理

    DB 11.2.0.4 ,oracle 12c之后审计表是按照时间切片自动分区

    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

    数据库版本11G

    审计参数DB

    查询system表空间,segment 50G 是FGA_LOG$表

    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;

    实际暂时未操作,计划停库关闭数据库审计功能后清理审计基表。

    --在11G版本中,建议关闭审计选项。

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

  • 相关阅读:
    bootstrap的引用和注意事项
    css样式表的知识点总结
    数据去重宏脚本
    redis总结
    list对象中根据两个参数过滤数据
    dt常用类
    C#删除字符串最后一个字符的几种方法
    C#的split分割的举例
    数据库优化的几个注意点
    两种转换城市的方式
  • 原文地址:https://www.cnblogs.com/lvcha001/p/12744614.html
Copyright © 2011-2022 走看看