云数据库 GAUSSDB-CREATE AUDIT POLICY:语法格式

时间:2024-11-13 14:46:10

语法格式

CREATE AUDIT POLICY [ IF NOT EXISTS ] policy_name { { privilege_audit_clause | access_audit_clause } [, ... ] [ filter_group_clause ] [ ENABLE | DISABLE ] };
  • privilege_audit_clause:
    1
    PRIVILEGES { DDL | ALL } [ ON LABEL ( resource_label_name [, ... ] ) ]
    
  • access_audit_clause:
    AC CES S { DML | ALL } [ ON LABEL ( resource_label_name [, ... ] ) ]
support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-12-0534.html