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

Analytic privilege not working with HANA scripted view

$
0
0

Hi,

 

We are facing an awkward situation with our two developed HANA views. We created analytic privileges and added them into Repository roles and then assigned it to restricted user.

But when we run the view in HANA live browser its throws below error:

dberror(PreparedStatement.executeQuery): 258 - insufficient privilege: insufficient privilege: [2950] user is not authorized :

 

 

But strange thing is when we do the same thing for other views it works fine with all privileges and authorization.

 

The Only difference between all the the other view and the two views is that we are consuming scripted view in them.

 

Steps we followed:

  • Created scripted View.

Properties: run with: Invoker's rights, Default Client: Cross Client, Apply Privileges: Classical Analytic privileges

  • Created analytic privilege

Assigned view and  applied filter with fixed value

  • Created the repository role and assigned the analytic privileges.

       Extended Roles: sap.hba.explorer.roles::Developer , RESTRICTED_USER_JDBC_ACCESS.

       // schema privileges

       catalog schema "_SYS_BIC": SELECT, EXECUTE;

       catalog schema "_SYS_BI": SELECT, EXECUTE;

       // analytic privilege

       analytic privilege: Package_Path:ZANP_MM_POC.analyticprivilege;

  • Assigned the created role to restricted user.
  • Executed the query in the HANA live browser.

 

I went through some SCN discussion but answer to this issue is to upgrade to new version(SP6) but we are using SP10.

 

Regards

Rajender Singh


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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