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

时间:2024-11-02 18:46:42

语法格式

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-v3-gaussdb/gaussdb-12-0509.html