Skip to content

AUDIT_DEFS

功能描述

audit_defs系统视图用于具有审计管理员权限用户查询数据库审计定义信息。

字段说明

字段名类型说明
DB_IDINTEGER库ID
USER_IDINTEGER用户ID
OBJ_IDINTEGER对象ID
OBJ_TYPEINTEGER对象类别
AUDIT_MASKBIGINT审计项目掩码
RESERVED1CHAR(-1)保留字段
RESERVED2CHAR(128)保留字段

AUDIT_MASK

审计项目成功失败所有
AUDIT_CONNECT4812
AUDIT_DATABASE163248
AUDIT_USER64128192
AUDIT_ROLE256512768
AUDIT_SCHEMA102420483072
AUDIT_TABLE4096819212288
AUDIT_VIEW163843276849152
AUDIT_INDEX65536131072196608
AUDIT_PROCEDURE262144524288786432
AUDIT_TRIGGER104857620971523145728
AUDIT_SEQUENCE4194304838860812582912
AUDIT_GRANT167772163355443250331648
AUDIT_REVOKE67108864134217728201326592
AUDIT_AUDIT268435456536870912805306368
AUDIT_NOAUDIT107374182421474836483221225472
AUDIT_INSERT4294967296858993459212884901888
AUDIT_UPDATE171798691843435973836851539607552
AUDIT_DELETE68719476736137438953472206158430208
AUDIT_SELECT274877906944549755813888824633720832
AUDIT_LOCK_TAB109951162777621990232555523298534883328
AUDIT_EXECUTE4398046511104879609302220813194139533312
AUDIT_POLICY175921860444163518437208883252776558133248
AUDIT_USER_POLICY70368744177664140737488355328211106232532992
AUDIT_TAB_POLICY281474976710656562949953421312844424930131968
AUDIT_SPACE112589990684262022517998136852503377699720527870
AUDIT_PACKAGE4503599627370500900719925474099013510798882111500
AUDIT_TYPE180143985094820003602879701896400054043195528446000
AUDIT_DB_LINK72057594037927900144115188075856000216172782113784000
AUDIT_SYNONYM288230376151712000576460752303423000864691128455135000
AUDIT_DOMAIN115292150460685000023058430092136900003458764513820540000

示例

  • 查询审计项目审计实际等信息

    sql
    auditor:
    SQL> AUDIT TABLE;
    
    auditor:
    SQL> SELECT * FROM audit_defs;
    
    DB_ID | USER_ID | OBJ_ID | OBJ_TYPE | AUDIT_MASK | RESERVED1 | RESERVED2 | 
    ------------------------------------------------------------------------------
    1 | 0 | 0 | <NULL>| 12288 | <NULL>| <NULL>|
  • 查询审计对象等信息

相关系统表

sys_audit_results