Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Auditing all objects withing a schema with a wildcard '*'

$
0
0

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!


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>