Symptom
When creating a SQL view in SAP Dataphere, the Validation Messages shows below error:
insufficient privilege: Detailed info for this error can be found with guid 'xxx', Code: 258, SOL State: HY000
This KBA describes the steps about how to figure out which user missing what privileges.
"Images/data in this KBA are from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP Datasphere
Reproducing the Issue
- Create a SQL view in SAP Dataphere.
- Click "Validate SQL" button to show the error message.
Resolution
- Create a Database Analysis User - SAP Help Portal Documentation: Create a Database Analysis User to Debug Database Issues
- There are two ways to check the details.
- Use SAP HANA Cockpit.
- Click "Open SAP HANA Cockpit" and logon.
- Select "Security and User Management".
- In "Insufficient Privilege Details" tile, input the GUID string, press Enter button to show the details, and even click "Assign Privileges" to grant missing permission to the user.
- Click "Open SAP HANA Cockpit" and logon.
- Use Database Explorer.
- Click "Open Database Explorer" and logon.
- Open SQL console by clicking the icon.
- Run below SQL(replace <GUID> with the one in the error message):
CALL GET_INSUFFICIENT_PRIVILEGE_ERROR_DETAILS('<GUID>', ?);
The result likes below. TESTUSER is missing SELECT object privilege on table CUSTOMERS of schema SYSTEM, just grant what's missing.
- Click "Open Database Explorer" and logon.
- Use SAP HANA Cockpit.
See Also
KBA 3271174 - How to parse the GUID string in insufficient privilege error message of HANA database?
Keywords
missing authorization, logon hana DB, , KBA , DS-MD-VIW , Views , DS-DI , Data Integration/Data Builder , DS-SEC , Security (Users, Roles) , How To
Product
Attachments
Pasted image.png |
Pasted image.png |
Pasted image.png |
Pasted image.png |
Pasted image.png |
Pasted image.png |