on 2024 Nov 19 9:22 AM
Hello,
When we are trying to access the system view (for example, _SYS_TASK. START_TASK_MESSAGES) as a synonym in the container project, it executes without any error but shows no data.
Same view when accessed from the database SQL console using db user, it shows the data.
Is there any workaround we have to do to make this data visible from container?
Steps to replicate the issue.
System views which are having same issues are as follows.
Does anyone faced the same issue? Is there any workaround for this?
Thank you in advance.
Best Regards,
Ajinkya Jadhav
Request clarification before answering.
Most of system views have some logic to filter the data depending on user system privileges. As you can see in the screenshot, M_TABLE_STATISTICS will return no result if you don't have system privilege CATALOG READ or DATA ADMIN.
When running a data preview in BAS or WebIDE for HANA, the query will execute with the application user of your hdi container (user ..._RT). To grant necessary privilege to application user, you should use .hdbgrants artifact (see https://help.sap.com/docs/SAP_HANA_PLATFORM/4505d0bdaf4948449b7f7379d24d0f0d/f49c1f5c72ee453788bf79f... )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem may be due to user permissions in the container. Ensure the user has the required SELECT privileges on system views. If not, grant them using the GRANT statement, e.g., GRANT SELECT ON _SYS_TASK.START_TASK_MESSAGES TO <user>. Retry accessing system views. If the issue continues, contact SAP Support as it may be a SAP HANA bug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
34 | |
21 | |
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.