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

时间:2024-11-02 18:52:14

语法格式

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/centralized-devg-v2-gaussdb/gaussdb_42_0400.html