SAP Knowledge Base Article - Preview

3467636 - Creating HANA audit policy fails with "sql syntax error: incorrect syntax near "ON""

Symptom

Following 2_s4hana_hana_audit_policy_recommended.sql to create HANA audit policy: _SAPS4_02 Schema Data Definition, it failed with error below.

Could not execute 'CREATE AUDIT POLICY "_SAPS4_02 Schema Data Definition" AUDITING ALL ALTER TABLE ON SCHEMA SAPABAP1...'
SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near "ON": line 4 col 5 (at pos 94) 

 "Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


Read more...

Environment

SAP HANA, platform edition 2.0

Product

SAP HANA, platform edition 2.0

Keywords

HANA, create audit, sql syntax error: incorrect syntax near "ON", on schema , KBA , HAN-DB-SEC , SAP HANA Security & User Management , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.