Hi.
According to CREATE AUDIT POLICY - SAP HANA SQL and System Views Reference - SAP Library, for the HANA platform it's possible to audit all objects within a schema by using <schema_name>.* when creating the audit policy.
For an example, I have a schema called SCHEMA and a table called MY_TABLE in it:
When I to audit a single object, like a table,it works well:
CREATE AUDIT POLICY all_my_table AUDITING ALL DELETE, INSERT, SELECT, UPDATE ON SCHEMA.MY_TABLE LEVEL CRITICAL;
But when I try to add the audit policy I get a syntax error:
CREATE AUDIT POLICY all_objs_in_schema AUDITING ALL DELETE, INSERT, SELECT, UPDATE ON SCHEMA.* LEVEL CRITICAL;
Has anyone encountered something like that?
Thanks!